Functionality This function module allows you to check authorization to access files(with the key words OPEN DATASET>,READ DATASET>, TRANSFER> andDELETE DATASET>). A check should be performedbefore opening a file. The authorization check is performed uwing the authorization objectS_DATASET>. Description of function parameters:
- PROGRAM: Name of the ABAP program from which the file access is
performed. If no program name is specified, the system assumes thecurrent program.
- ACTIVITY: Access type. The possible values are:
READ: Read file WRITE: Change file READ_WITH_FILTER: Read file with filter function WRITE_WITH_FILTER: Change file with filter function DELETE: Delete file
- FILENAME: Name of accessed file
Example 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. Notes The values to be passed as the ACTIVITY> are defined as constantsin the TYPE-POOL SABC>.
|