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

BAPI name to create value contract

Former Member
0 Likes
584

Hi Experts,

I have created customer contract using the BAPI "BAPI_CONTRACT_CREATEFROMDATA" and now I am in need of creating value contract by passing the assortment module number to the field VBAP-SKOPF, which is in VA41 T-code. Which BAPI I can use to create contract for this? Help me.

Thanks and regards,

Venkat.

1 REPLY 1
Read only

Former Member
0 Likes
416

Hello

Use FM 'SD_SALESDOCUMENT_CHANGE' for change contract.

Search SDN for code example.

You need fill:

ITEM_IN-ASSORT_MOD

ITEM_INX-ASSORT_MOD

or 'BAPI_CUSTOMERCONTRACT_CHANGE'

CONTRACT_ITEMS_IN-ASSORT_MOD

CONTRACT_ITEMS_INX-ASSORT_MOD

And for create - use "BAPI_CONTRACT_CREATEFROMDATA"

CONTRACT_ITEMS_IN-ASSORT_MOD

CONTRACT_ITEMS_INX-ASSORT_MOD