在updata物料主数据时,对相关VIEW的权限check方法.
Check for maintenance status (STATM) according to the mapping lists as below
|
View |
Maintenance status(STATM) |
|
Work scheduling |
A |
|
Accounting |
B |
|
Classification |
C |
|
MRP |
D |
|
Purchasing |
E |
|
Production resources/tools |
F |
|
Costing |
G |
|
Basic data |
K |
|
Storage |
L |
|
Forecasting |
P |
|
Quality management |
Q |
|
Warehouse management |
S |
|
Sales |
V |
|
Plant stocks |
X |
|
Storage location stocks |
Z |
for example:
AUTHORITY-CHECK OBJECT 'M_MATE_STA'
ID 'STATM' FIELD 'D'
ID 'ACTVT' FIELD '02'.
IF sy-subrc <> 0.
MESSAGE s398 WITH 'You have not authorization on MRP view!'.
STOP.
ENDIF.

浙公网安备 33010602011771号