2012 Oct 05 1:21 PM
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
2012 Oct 05 1:29 PM
2012 Oct 05 1:29 PM
2012 Oct 05 1:32 PM
There are no error messages. Success message comes as ' Trading contract XXXX saved succesfully'.
2012 Oct 05 1:38 PM
Try passing the quantity in Schedule Line SCHEDULEDATAIN. Make sure pass the relevant data in SCHEDULEDATAINX table as well.
Regards,
R
2012 Oct 05 1:46 PM
Issue solved. The schedule line items should have been updated with the values.
Thanks Rudra.
Thank you all for the responses.
2012 Oct 05 1:37 PM
Hi,
After executing function module BAPI_TRADINGCONTRACT_CHANGE, call commit statement like "
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
Regards,
Gagan
2012 Oct 05 1:39 PM
BAPI_TRANSACTION_COMMIT is already there. I have mentioned in the post that ,other fields are getting updated.
2012 Oct 05 1:42 PM
Are you able to change that quantity manually means by using standard TCODE for trading contract change?