06-07-2011 2:37 PM
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
06-07-2011 2:38 PM
06-07-2011 2:56 PM
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
06-13-2011 2:21 PM
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".