分类:
2010-07-31 18:56:04
This function module allows you to check authorization to access files (with the key words,, and). A check should be performed before opening a file.
The authorization check is performed uwing the authorization object .
Description of function parameters:
TYPE-POOLS SABC.
CALL FUNCTION 'AUTHORITY_CHECK_DATASET'
EXPORTING PROGRAM = 'ZDATASET'
ACTIVITY = SABC_ACT_READ
FILENAME = '/tmp/sapv01'
EXCEPTIONS NO_AUTHORITY = 1
ACTIVITY_UNKNOWN = 2.
The values to be passed as the ACTIVITY are defined as constants in the TYPE-POOL SABC.