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 create a Trading contract using -->BAPI_TRADINGCONTRACT_CREATE.

Former Member
0 Kudos

Hi gurus,

I have a Requirement to create a trading contract using BAPI_TRADINGCONTRACT_CREATE . I tested the BAPI from 'se37' with giving inputs

1. HEADDATAIN.

2. ITEMDATAIN.

3. SCHEDULEDATAIN.

4. BUSINESSDATAIN.

After executing this i get an output in HEADDATAOUT and TRADINGCONTRACTNO. BUT as soon as i close it and check in wb22 that trading contract number doesnot exist . I even checked in table WBHK. Its not there ,its not getting saved ,

please do throw some light on this

thanks & regards

Gaja@sap

3 REPLIES 3

Former Member
0 Kudos

i suppose a call of BAPI_TRANSACTION_COMMIT is missing.

0 Kudos

hi Florian Kemmer ,

Thanks for replying , and it would be really helpful if you can explain what i must do when i execute it from se37 .

thanks & regards

Gaja@sap

Former Member
0 Kudos

While creating a BAPI ,according to me it is source oreinted it depends on where you call it from ,

1. call it from the program

2. use "BAPI_TRANSACTION_COMMIT" after the execution of the "BAPI_TRADINGCONTRACT_CREATE".

3. While entering "TESTRUN' column in HEADERDATA dont enter anything let it be blank.

4. for debugging it will be easy to check with the return table "RETURN".