SAP ABAP Message Class SPRX Message Number 072 (Item is part of recursion (see long text for additional information))
Hierarchy
SAP_BASIS (Software Component) SAP Basis Component
   BC-DWB-PRX (Application Component) Proxy Generation
     SAI_PROXY_GENTIME (Package) ES Tools: Proxy Generation
Attribute
Message class SPRX  
Short Description Proxy Generation    
Message Number 072  
Documentation status       Space: object requires documentation
Authorization check Error Message      
Changed On 20130531   
Message Text
Item is part of recursion (see long text for additional information)
Help Document

Diagnosis

The type contains recursions. This means that a type references itself (possibly indirectly).

Example:
A packing unit is described by its length, width, height, and content. The content can also consist of packing units.
<complexType name="PackingUnit">
<sequence>
<element name="length" type="int"/>
<element name="width" type="int"/>
<element name="height" type="int"/>
<element name="content" type="PackingUnit"
maxOccurs="unbounded"/>
</sequence>
</complexType>

In ABAP, recursively defined structures are not possible.

Currently, the only solution is to replace a recursive reference by a reference to the data element XSDANY, so that the structure looks like this:
Dictionary structure PACKING_UNIT
Field LENGTH TYPE INT4
Field WIDTH TYPE INT4
Field HEIGHT TYPE INT4
Field CONTENT TYPE PACKING_UNIT_CONTENT_TAB
Dictionary table type PACKING_UNIT_CONTENT_TAB
Line type XSDANY (not TYPE PACKING_UNIT)


The programmer must fill this XSDANY field correctly. For more information see Handling raw XML data.

System Response

The system displays a warning for each type which is part of a recursion. The type cannot be activated if the DDIC type to be generated also contains a recursion.

Procedure

To be able to activate the proxy you have to "break" the recursion by mapping at least on chain of each recursion to XSDANY. This is done by setting the flag Untyped mapping in the detail vie of the corrosponding data type.

Procedure for System Administration

History
Last changed on/by 20140121  SAP 
SAP Release Created in   620