CALL FUNCTION 'AUTHORITY_CHECK_DATASET'
ACTIVITY = 'WRITE'
FILENAME = w1-config
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.
OPEN DATASET w1-config
FOR APPENDING IN TEXT MODE
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?