06-03-2020 2:21 PM
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?
06-03-2020 2:28 PM
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
06-03-2020 2:28 PM
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
01-28-2021 9:40 AM