Application Development 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: 

SD-ABAP:Create SO:BAPI_SALESORDER_CREATEFROMDAT2: Line Item Structure Tab

Former Member
0 Kudos

Hi SD-ABAP,

I'm currently creating SO using BAPI_SALESORDER_CREATEFROMDAT2.

I'm populating the following:

IMPORT: SALESDOCUMENTIN, ORDER_HEADER_IN, ORDER_HEADER_INX

TABLES: ORDER_ITEMS_IN, ORDER_ITEMS_INX,

ORDER_PARTNERS,

ORDER_SCHEDULES_IN, ORDER_SCHEDULES_INX,

ORDER_CONDITIONS_IN, ORDER_CONDITIONS_INX,

ORDER_TEXT

I have a BOM material A, with subMaterial A1, A2, A3. By creating manually (VA01), this will automatically appear on the the Line Item of the BOM Material > Structure tab. The structure tab will contain the subMaterial A1, A2, A3.

What I need is to automatically populate the SubMaterial in the Structure Tab of the Line Item having a BOM material.

Has anyone encountered this scenario? I'm not sure if I need to populate: ORDER_CFGS_PART_OF?

Thanks.

FYI, already checked some SD-BOM related OSS notes.

1 REPLY 1

Former Member
0 Kudos

Hi Jamie,

It will not automatically populated in BAPi, but i think an user exit (Standard SAP code) is doing it for you. I will say not to change the program in the BAPI instead of that use MOVE FIELD TO VBAP userexit to solve this issue. This is quite common scenario and lot of posts are available over the net.

Best Regards,

Tapodipta Khan.