cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

how to add new xml item(BAPI requset)?

Former Member
0 Likes
300

Hello

i want to create bom to ERP from mii

how to add new xml item(BAPI requset)?

i use bapi CAD_CREATE_BOM_WITH_SUB_ITEMS

this bapi's format is

<table>

<item>

<col1>1111</col1>

<col2>bbbb</col2>

</item>

</table>

i want to add <item>

like this

<table>

<item>

<col1>1111</col1>

<col2>bbbb</col2>

</item>

<item>

<col1>22222</col1>

<col2>bbbb</col2>

</item>

</table>

how to set trx?

i tryed

SAP_JCo_Interface_0.Request{/CAD_CREATE_BOM_WITH_SUB_ITEMS/TABLES/BOM_ITEM/item[2]/SORTF}

when error occured

use MII12.0

Edited by: Atsushi Iwasaki on May 18, 2010 6:22 AM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Likes

Hi,

Please go through this blog it may give you some idea

[http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/13519] [original link is broken] [original link is broken] [original link is broken];

Answers (2)

Answers (2)

Former Member
0 Likes

thank you

krishna chaitanya

Shalaka Tekale

i could add new item.

Former Member
0 Likes

Check the help on the link types (Assign/Append/Replace) - these were designed to handle this exact situation.

Former Member
0 Likes

Hi,

You can try this alternative

Step 1) Create XML Document with required structure which you want to pass it to BAPI request.

Step 2) Populate the XML Row with required contents and map it to above created XML document

Step 3) Map above created XML Document to BAPI request (use assign XML option dfrom link editor rather tha assign value)

This will help to map dynamic contents to your BAPI request.

Regards,

Shalaka

Ask a Question