Application Development 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: 

BAPI Reservation and PR issue

former_member188005
Contributor
0 Kudos

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

2 REPLIES 2

former_member188005
Contributor
0 Kudos

Issue resolved.

Thanks.

0 Kudos

Dear Shakeel,

Plz let me know how to delete the open reservations in the system by using the BAPIs.And will these deletion takes place permanantly from the system or any deletion kind of mark will be there? Since my reservation is haviuing 10 materials against one particular reservation number .in that only 2-3 materials are issued remaining are not (ie open).Now if I delete them by the std process total res.number is getting where we dont havethe track of the goods recieved materails against that paticular reser.num. For this I want to develop a BAPI which will keep closed reservations and delete them.

THANKS,

PRAVS.