Chinaunix首页 | 论坛 | 博客
  • 博客访问: 586285
  • 博文数量: 154
  • 博客积分: 10208
  • 博客等级: 上将
  • 技术积分: 2225
  • 用 户 组: 普通用户
  • 注册时间: 2007-11-16 14:02
文章分类

全部博文(154)

文章存档

2012年(4)

2011年(44)

2010年(50)

2009年(4)

2008年(52)

我的朋友

分类:

2010-07-31 18:56:04

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:

  • PROGRAM: Name of the ABAP program from which the file access is performed. If no program name is specified, the system assumes the current 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 constants in the TYPE-POOL SABC.

阅读(707) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~