CRM SAP UI - Force Order Save
Im doing some modifications to a order using a custom action, that invokes a method call.
This method is changing the system and the user status to a "disabled status".
This disabled status does not allow the "change document" transaction so the user cannot change anything in the order.
Im currently using the following functions/methods:
- lcl_action_execute -> get object reference
- CRM_ORDER_MAINTAIN to change system status
- lcl_action_execute -> register_for_save
- COMMIT WORK.
Basicly i want to disable edit mode when i click on the action.
At this moment if i click on the action, the input fields remain visible. But if i leave the order (Back button says the object is not saved so i either save or leave without saving (the result is the same) ) and enter again on the order, the fields are disabled and edit mode is not allowed.
I have tried to change "register for save" with CRM_STATUS_CHANGE" in terms of execution order but the result is equivalent.