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

Using of BAPI_RESERVATION_CHANGE

Former Member
0 Likes
2,273

Hallo, all.

I want to use BAPI_RESERVATION_CHANGE for deleting last item in documnet and creating new item with similar data. AFAIK I can`t delete and create new item in one session. And, for begining I try to delete old position. I send the folowing parameters:

BAPI2093_RES_ITEM_CHANGE-RES_ITEM = it_main-rsnum.

BAPI2093_RES_ITEM_CHANGE-DELETE_IND = 'X'.

BAPI2093_RES_ITEM_CHANGEX-RESITEM = it_main-rsnum.

BAPI2093_RES_ITEM_CHANGEX-DELETE_IND = 'X'.

FM returm me the result message, that this position was deleted, but... ...when I call transaction MB22, I see, that checkbox `Delete item' isn`t marked...

May be someone knows what`s happend...

Thanks...

2 REPLIES 2
Read only

Former Member
0 Likes
1,289

hi,

did u use 'BAPI_TRANSACTION_COMMIT' once you are done with 'BAPI_RESERVARTION_CHANGE'. if that was not commited you cannot c teh changes

Theja

Read only

Former Member
0 Likes
1,289

Hi ,

YOu have to commit the changes done to the data base tables using the Fm bapi_transaction_commit after the success of the main bapi.

call function 'BAPI_TRANSACTION_COMMIT'.

Regards,

Ravi