在updata物料主資料時,對相關VIEW的許可權check方法.

qiujun發表於2007-10-23

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.

[@more@]

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/90072/viewspace-978155/,如需轉載,請註明出處,否則將追究法律責任。

相關文章