Application Development 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: 

how to modify Tender Contract using BAPI_TRADINGCONTRACT_CHANGE?

Former Member
0 Kudos

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:

Import Parameter

TRADINGCONTRACTNO = 10000190

Tables

ITEMDATAIN = item No ("00010)

batch ("12345678CL")

ITEMDATAINX = item No ("00010)

batch ("X")

Any suggestions are much appreciated.

2 REPLIES 2

Former Member
0 Kudos

I solved it now. Thanks to all. Use extensionin table.

Former Member
0 Kudos

closed