Skip to Content
0
Aug 05, 2010 at 07:35 PM

BAPI Reservation and PR issue

109 Views

Hi,

I have created a reservation and purchase requisition(PR) with reference to the reservation. In my program I am changing the quantity where in both the reservation and PR should be updated. I am using BAPI_RESERVATION_CHANGE and BAPI_PR_CHANGE for the same and using the BAPI_TRANSACTION_COMMIT individually for both.

For example:

BAPI_RESERVATION_CHANGE , BAPI_TRANSACTION_COMMIT, when I check the RESB table the values are changed and then BAPI_PR_CHANGE is executed. TIll this time the RESB table has the changes but as soon as the BAPI_TRANSACTION_COMMIT is triggered for PR change then the record for the reservation from RESB is getting deleted. The return paramater of the PR says PR changed and EBAN is also updated with the changes.

My problem is the record getting deleted for Reservation in RESB table.

Any suggestion/solution for this issue.

Thanks in advance.

Regards,

Shakeel

Edited by: Shakeel on Aug 5, 2010 10:36 PM