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 value is not getting update

0 Likes
541

Dear All,

   I'm adding sales item with reference of contract(value) through BAPI_SALESORDER_CHANGE, Item is adding in sales order,But item value is not getting realse from contract.Already sales order is created with reference of contract through create BAPI.

In BAPI Item structure im passing this parameter

           it_sales_items-ref_doc = contract no.
           it_sales_items-ref_doc_it = item no(contract)
           it_sales_items-ref_doc_ca = 'G'.

and 

           it_sales_itemsx-ref_doc = 'X'.
           it_sales_itemsx-ref_doc_it = 'X'.
           it_sales_itemsx-ref_doc_ca = 'X'.


Please suggest me if i need to pass more parameter?

if i create through standard screen contract value is getting update.

Dear All,

   I'm adding sales item with reference of contract(value) through BAPI_SALESORDER_CHANGE, Item is adding in sales order,But item value is not getting realse from contract.Already sales order is created with reference of contract through create BAPI.

In BAPI Item structure im passing this parameter

           it_sales_items-ref_doc = contract no.
           it_sales_items-ref_doc_it = item no(contract)
           it_sales_items-ref_doc_ca = 'G'.

and 

           it_sales_itemsx-ref_doc = 'X'.
           it_sales_itemsx-ref_doc_it = 'X'.
           it_sales_itemsx-ref_doc_ca = 'X'.


Please suggest me if i need to pass more parameter?

if i create through standard screen contract value is getting update.

1 REPLY 1
Read only

SujeetMishra
Active Contributor
0 Likes
491

Hi,

Please try it using BAPI_CONTRACT_CREATEFROMDATA..

also let me know what parameter you are passing in BAPI_SALESORDER_CHANGE.

Regards,

Sujeet Mishra