‎2008 Dec 03 5:10 AM
Hi
I am calling BAPI_RESERVATION_CREATE1 in the implicit enhancement when I push save button in the COR1 transaction.
After calling function module commit work is executed.
Problem: when I saves process order then process order is only created.
But if I push save button and go to debugging mode in that enhancement both
process order and reservation are successfully created. Why?
‎2008 Dec 03 5:51 AM
Hi,
the reason is this bapi is not a auto commit Bapi so in normal mode it is not reflected in the DB table.
When you are working in Debugging , the system performs a commit work itself and you can see as a Sucess message in the debugger saying "COMMIT WORK executed by system".
Double click on the message you will get a self explanatory message.Also this is not carried out in Production environments.
hence the the Reservation is saved in debugging,
Hope this helps you.
Raj
Edited by: Raj on Dec 3, 2008 6:52 AM
‎2008 Dec 03 9:20 AM
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'
IMPORTING
return = ret.