应用服务器文件访问权限检查FM

781阅读 0评论2010-07-31 jiarui1230
分类:

AUTHORITY_CHECK_DATASET - Check Authorization for File Access

Functionality

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:

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 constants in the TYPE-POOL SABC.

上一篇:report painter中如何取到增强字段描述
下一篇:WebDynpro学习实例