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: 

how to clear Deletion Indicator for Reservation

0 Kudos

Hello,

I'm working on a z program an i get reservation details using: 

CALL FUNCTION 'BAPI_RESERVATION_GETDETAIL'
    EXPORTING
      reservation       = ls_components-reserv_no
    TABLES
      reservation_items = lt_item_res.

I want to clear delete-ind ( in my case delete_ind has value 'X' ) from lt_item_res and i tried using CALL FUNCTION 'BAPI_RESERVATION_CHANGE' but i get an error: reservation created automatically. no 
manual changes are possible.

what can i do now?


1 ACCEPTED SOLUTION

DominikTylczyn
Active Contributor

Hello tearm

Plain and simple - there is nothing you can do about that.

You are not giving much details about your business scenario. But judging from the error mesage you are trying to manually (BAPI call counts as manually) change a reservation that is created automatically, probably a production order reservation. The system doesn't allow to change such reservations directly as it would cause data inconsistency between the reservation and the production order status.

If you provide more details on the business process you are dealing with, SAP Community may find a better way to implement your requirements.

Best regards

Dominik Tylczynski

2 REPLIES 2

DominikTylczyn
Active Contributor

Hello tearm

Plain and simple - there is nothing you can do about that.

You are not giving much details about your business scenario. But judging from the error mesage you are trying to manually (BAPI call counts as manually) change a reservation that is created automatically, probably a production order reservation. The system doesn't allow to change such reservations directly as it would cause data inconsistency between the reservation and the production order status.

If you provide more details on the business process you are dealing with, SAP Community may find a better way to implement your requirements.

Best regards

Dominik Tylczynski

I'm sorry it took so long to respond, thanks for the help