Solution : https://service.sap.com/sap/support/notes/549563 (SAP Service marketplace login required)
Summary :
When utilizing BAPIs such as BAPI_SALESORDER_CREATEFROMDAT2 and BAPI_SALESORDER_CHANGE, specific fields in configuration structures must be accurately populated. For linkage between sales order items and configurations, utilize POSEX in both ORDER_ITEMS_IN and ORDER_ITEM_INX, and ensure consistent item numbering. Completeness of configuration data within tables CFGS_REF, CFGS_INST, CFGS_PART_OF, and CFGS_VALUE is crucial for both creating and changing sales order items. Notably, the CFGS_REF structure must include the SCE flag, along with KBNAME and KBVERSION for external configurations.
Key words :
cfgs_inst config_id inst_id object_type class_type obj_key 000001 00000001 mara 300 prod111 000001 00000002 mara 300 prod112 000002 00000003 mara 300 prod121 000002 00000004 mara 300 prod122, cfgs_ref posex config_id root_id sce kbname kbversion 000010 000001 00000001 1 prod111 001 000030 000002 00000003 1 prod121 001 2, cfgs_part_of config_id parent_id inst_id part_of_no obj_key 000001 00000001 00000002 0010 prod112 000002 00000003 00000004 0010 prod122, pos10 configurable main items pos30 / \ / \ pos20 configurable subitems pos40item 10, terms bapi_salesorder_createfromdat2 bapi_salesorder_change bapisdorder_getdetailedlist solution answer, cfgs_ref posex config_id root_id 000010 000001 00000001 000030 000002 00000003, separate inst_id config_id, config_id inst_id charc, configurable subitems part_of_no, 000002 00000003 merk3 300 000002 00000004 merk4 xy characteristics
Related Notes :
1614827 | BAPI_SALESORDER_CREATEFROMDAT2 - Order BOM |
774347 | Collective SAP note: BOMs |
774346 | Composite SAP Note: Material variants |
550431 | FAQ: BAPI in sales - general questions |
93091 | Information about the BAPIs in Sales and Distribution |