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,
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?
FYI, already checked some SD-BOM related OSS notes.
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.