Application Development and Automation 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: 
Read only

BAPI_RESERVATION_CREATE1

Former Member
0 Likes
834

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?

2 REPLIES 2
Read only

Former Member
0 Likes
511

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

Read only

Former Member
0 Likes
511

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

EXPORTING

wait = 'X'

IMPORTING

return = ret.