2014 Aug 12 4:14 PM
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
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
2014 Aug 12 4:40 PM
2014 Aug 12 4:54 PM
Hi Niru,
We can maitain the users in a custom table and read the internal table for it
before giving an error message and check if the user is eligible for changing the order
or not.
Regards,
Prakash.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |