Skip to Content
0
Former Member
Jan 24, 2006 at 10:04 AM

About 'AUTHORITY_CHECK_DATASET'

279 Views

CALL FUNCTION 'AUTHORITY_CHECK_DATASET'

EXPORTING

  • PROGRAM =

ACTIVITY = 'WRITE'

FILENAME = w1-config

  • EXCEPTIONS

  • NO_AUTHORITY = 1

  • ACTIVITY_UNKNOWN = 2

  • OTHERS = 3

.

IF SY-SUBRC <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

OPEN DATASET w1-config

FOR APPENDING IN TEXT MODE

  • ENCODING DEFAULT

MESSAGE w1-msg_text.

the function module works and gives sy-subrc = 0 suggesting that

there is a file w1-config but when i say open dataset w1-config

then it fails giving sy-subrc = 8.

can someone tell me what is the issue here?

Regards,

PAVAN..