cancel
Showing results for 
Search instead for 
Did you mean: 

ABAP inbound proxy deep structure

Former Member
0 Kudos

Hello Experts,

This is regarding ABAP inbound proxy structures.

I have a structure in XI which looks like this

<Bill of Material> (0:unbounded)

<Material> (0:unbounded)

</Material>

</Bill of Material>

When I generate a proxy structure for this message, a similar structure will get generated in proxy with table types for 0:unbounded types.

Here, how can I loop through the structure and extract the materials associated with each Bill of materials? I have to call BAPI for creating material first if not exists and then BOM for each BOM in the structure.

Any help with sample coding is really appreciated.

Thanks

Ricky

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Ricky !

Try with something like this:

LOOP AT your_bill_of_material_object.

WRITE: your_bill_of_material_object-material_field.

END-LOOP.

where the outer object is the bill of material and inside the loop make a reference to the current fields of the bill of material record. You may need another loop inside this one to recover each material record once your are pointing to the current bill of material.

Regards,

Matias.

Former Member
0 Kudos

it will be as follows

loop at input-<Zmessage_type>-<destination row> into structure

endloop.

<destination row> = BOM

<zmessage_type> = message structure on Server proxy side