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

Contract creation using BAPI_CONTRACT_CREATEFROMDATA having Variant configuration material

0 Likes
1,134

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

1 REPLY 1
Read only

Jelena_Perfiljeva
Active Contributor
0 Likes
1,037

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.