‎2022 Jul 13 3:35 AM
Dear members,
I have a requirement to upload contracts using BAPI_CONTRACT_CREATEFROMDATA having variant configuration material. My contract will look like as given below.
Item10 G7A01AC is a parent configurable item.
Item 20, 40, and 60 are the components of Item10 G7A01AC.

Item 20, 40 and 60 are linked to the product item AM382A. Pls refer to the HgLvIt column in the below screenshot.

I need help with how to populate the below structures in the BAPI.
CONTRACT_CFGS_REF STRUCTURE BAPICUCFG OPTIONAL
CONTRACT_CFGS_INST STRUCTURE BAPICUINS OPTIONAL
CONTRACT_CFGS_PART_OF STRUCTURE BAPICUPRT OPTIONAL
CONTRACT_CFGS_VALUE STRUCTURE BAPICUVAL OPTIONAL
CONTRACT_CFGS_VK STRUCTURE BAPICUVK OPTIONAL
Could you please anyone throw some light on this topic as soon as possible.
Thanks in advance,
Saji
‎2022 Jul 13 9:08 PM
Contract is also a sales document, so you can look at the example for sales order and do the same. You'll need to fill in the reference table as shown in the example and provide the characteristics values.
The spreadsheet doesn't give you any of this information though. It shows the result, how the lines would look, not how the data is entered, from what I see. I'd clarify if this is actually VC driven or is a fixed BOM (unsure of terminology here, it's been a while?) where you just enter these as line items. How is this entered in VA41?
It just seems odd that all the components are already listed with quantities and all. If this is VC, then you need to know what characteristics to enter, and then that would drive the component list.