Hello dearest ABAP experts,
Good day to all.
Its been so long that I am testing how I could use this BAPI (BAPI_TRADINGCONTRACT_CHANGE) to update the batch in the item of the Tender Contract. I tried to search the net but no samples I had found. I read the documentation of this BAPI but no to avail I found a sample code to use. I tried by myself to pass items such as the table ITEMDATAIN and ITEMDATAINX where batch field is located. But to my dismay, I ended into an error on the RETURN table. The error is "Maintain external number for trading contract". When I check the Tender Contract, the field TKONN_EX is filled up. Even I debug the BAPI itself, this field TKONN_EX has a value.
I am not sure if I missed something to pass into the tables. Here are the inputs I passed:
TRADINGCONTRACTNO = 10000190
ITEMDATAIN = item No ("00010)
ITEMDATAINX = item No ("00010)
Any suggestions are much appreciated.