Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI_SALESORDER_CREATEFROMDAT2 with BOM

Former Member
0 Likes
2,031

Hi,

currently I'm using the BAPI_SALESORDER_CREATEFROMDAT2 to create sales order via .NET, it works beautifully when the materials used are not BOM. However, when I test the BAPI out with BOM materials, it does not get exploded.

Please help. Thanks.

Regards,

Norman

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,346

Hi!

With BAPI_SALESORDER_CREATEFROMDAT2 in case of BOM explosion you have to manually fill corresponding structures for items, schedules and configuration for all target materials.

Please refer to SAP Note 774346 - composite SAP note for configuration.

And welcome here on SDN!

Regards,

Maxim.

4 REPLIES 4
Read only

Former Member
0 Likes
1,347

Hi!

With BAPI_SALESORDER_CREATEFROMDAT2 in case of BOM explosion you have to manually fill corresponding structures for items, schedules and configuration for all target materials.

Please refer to SAP Note 774346 - composite SAP note for configuration.

And welcome here on SDN!

Regards,

Maxim.

Read only

0 Likes
1,346

Hi Maxim,

thanks for the replay. But was looking through the notes, still don't understand what I need to do. I tested the BAPI via ABAP program, it works fine. The BOM get exploded as expected. However, when I try it via .NET program, it did not work.

BTW, what's configuration? Any idea what are the data I need to put in to make the BAPI work with BOM?

Regards,

Norman

Read only

Madjid_Khanevadegi
Participant
0 Likes
1,346

Hello

i have a same problem in sap s4 hana.

with the bapi "BAPI_SALESORDER_CREATEFROMDAT2" i create a sales order
and in item of sales order authomaticaly created new item from BOM, but when this function run with another user , the sales order is create without BOM item , and the bapi return successful without any error.

after thaet you mus be call SU53 tcode for show more error in authorization object and grant them to user .


thanks

Read only

0 Likes
957
Hello, could you please share the ABAP code? I'm having trouble with the BAPI to create the "BOM" explosion of the materials.