on 07-16-2007 4:49 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.