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

Issue in using BAPI_TRADINGCONTRACT_CHANGE

Former Member
0 Likes
1,375

Hi Experts ,

I am trying to chnage the Trading contract item quantity using BAPI_TRADINGCONTRACT_CHANGE. But it is not getting updated in the TC.

The fields I am populating are given below

ITEMDATAIN-TRCONT_ITEM

ITEMDATAIN-REQ_QTY

ITEMDATAIN-ORDERED

ITEMDATAINX-TRCONT_ITEM

ITEMDATAINX-UPDATEFLAG  = 'U'.

ITEMDATAINX-REQ_QTY  = 'X'

ITEMDATAINX-ORDERED = 'X'

PS: I could update other fields for eg. storage location etc. Facing the probelm with quantity field now.

Any pointers will be really helpful.

Thanks

Sanu

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,250

Are there message in RETURN parameter ?

Regards,

Raymond

7 REPLIES 7
Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,251

Are there message in RETURN parameter ?

Regards,

Raymond

Read only

0 Likes
1,250

There are no error messages. Success message comes as ' Trading contract XXXX saved succesfully'.

Read only

0 Likes
1,250

Try passing the quantity in Schedule Line SCHEDULEDATAIN. Make sure pass the relevant data in SCHEDULEDATAINX table as well.

Regards,

R

Read only

0 Likes
1,250

Issue solved. The schedule line items should have been updated with the values.
Thanks Rudra.
Thank you all for the responses.

Read only

former_member194152
Contributor
0 Likes
1,250

Hi,

After executing function module BAPI_TRADINGCONTRACT_CHANGE, call commit statement like "

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.

Regards,

Gagan

Read only

0 Likes
1,250

BAPI_TRANSACTION_COMMIT is already there. I have mentioned in the post that ,other fields are getting updated.

Read only

0 Likes
1,250

Are you able to change that quantity manually means by using standard TCODE for trading contract change?