Any idea how to use AUTHORITY_CHECK_DATASET

Hello Friends,
   anybody knows how to use these FM 'AUTHORITY_CHECK_DATASET' and FILE_GET_NAME_USING_PATH.
   i know the logical path has been created in my system as 'zzzzz' but i don't how to use that.
thanks,
john.

I know its an old thread, but maybe it helps someone: I used the following code to test the AUTHORITY_CHECK_DATASET:
REPORT ZTEST1.
DATA: BEGIN OF ITAB OCCURS 0,
   ATYPE(20),
END OF ITAB.
PARAMETER P_FNAME LIKE AUTHB-FILENAME.
PARAMETERS:P_READ AS CHECKBOX DEFAULT 'X',
P_WRITE AS CHECKBOX DEFAULT 'X',
P_RWF AS CHECKBOX DEFAULT 'X',
P_WWF AS CHECKBOX DEFAULT 'X',
P_DELETE AS CHECKBOX DEFAULT 'X'.
CLEAR: ITAB, ITAB[].
IF P_READ EQ 'X'.
   ITAB-ATYPE = 'READ'.
   APPEND ITAB.
ENDIF.
IF P_WRITE EQ 'X'.
   ITAB-ATYPE = 'WRITE'.
   APPEND ITAB.
ENDIF.
IF P_RWF EQ 'X'.
   ITAB-ATYPE = 'READ_WITH_FILTER'.
   APPEND ITAB.
ENDIF.
IF P_WWF EQ 'X'.
   ITAB-ATYPE = 'WRITE_WITH_FILTER'.
   APPEND ITAB.
ENDIF.
IF P_DELETE EQ 'X'.
   ITAB-ATYPE = 'DELETE'.
   APPEND ITAB.
ENDIF.
LOOP AT ITAB.
   CALL FUNCTION 'AUTHORITY_CHECK_DATASET'
     EXPORTING
       ACTIVITY = ITAB-ATYPE
       FILENAME = P_FNAME
     EXCEPTIONS
       NO_AUTHORITY = 1
       ACTIVITY_UNKNOWN = 2
     OTHERS = 3.
CASE SY-SUBRC.
   WHEN 0.
     WRITE:/ 'You have', ITAB-ATYPE, 'access to', P_FNAME.
   WHEN 1.
     WRITE:/ 'You do not have', ITAB-ATYPE, 'access to', P_FNAME.
   WHEN OTHERS.
     WRITE:/ 'Error with function'.
   ENDCASE.
ENDLOOP.
Marko

Similar Messages

Maybe you are looking for

  • MIGO screen options

    here in MIGO screen we frequently use Goods receipt, Transfer posting, cancellation,display, goods issue, return delivery, what is this Place in Storage, Remove from storage, subsequent adjustment, subsequent delivery can any one reply....

  • Bug in photo library : all in low res (res of the viewer)

    I have a strange bug, after having installed an app (Iris photo suite). All my pics are now viewed in low res in the iphone (the res of the thumbnail !!). and impossible to delete the pics of the photo library. I tried to shut of and restart the ipho

  • Ps to PDF problem

    Hello there, I've a little annoying problem with distiller. I'm using a linux program which is creating ps files than transferring into windows and converting to .pdf with distiller. But PS files have this string; stroke showpage savepage this causes

  • Bandwidth Rate-Limit -w- WWR-Queue

    How would one convert a layer-2 port's "switchport rate-limit" bandwidth statement, on a 6509 -w- WS-X6748-SFP ports, to a routed/layer-3 "wrr-queue" bandwidth statement policy? Basically trying to hard-core the port's speed to 20MB.  Current/tested

  • How to get, from a remote application, list of groups & users?

    I need to get list of groups, and users in a group, and profile of a user of weblogic from a remote application. Do I need to use classes from com.bea.p13n.security.management.authentication? How?