Hi experts,
i have an requirement in WO (IW31), i have implemented a logic that user cannot change the WO priority once it is already released .
if sy-tcode = 'IW31' or sy-tcode = 'IW32' or sy-tcode = 'IW38' or sy-tcode = 'IW21' or sy-tcode = 'IW22'.
if caufvd_imp-auart = 'PM01' or caufvd_imp-auart = 'ZWNT' or caufvd_imp-auart = 'PM02'.
if lv_order_rel = 'X'.
clear : lw_jest.
select single * from jest into lw_jest where
objnr = caufvd_imp-objnr
and stat = 'I0001'
and inact <> 'X'.
if sy-subrc ne '0'.
message e032(zmm_dev).
endif.
endif.
Now i need to add workaround that the logic should bypass for few user and change the propriety, i assume i need to created specific role for them and impliment the logic.
Please let me know your ideas on how can i achieve the required restriction .
Regards
Niru