Skip to Content
avatar image
Former Member

'Open Dataset For Output' throws error 'Permission Denied'

Hello All,

I am getting error as 'Permission Denied' (sy-subrc = 8) while writing the text to txt file which is present on server. I am tried using --

  OPEN DATASET pa_upld FOR OUTPUT IN TEXT MODE ENCODING DEFAULT MESSAGE error_message.
  IF sy-subrc <> 0.
    WRITE : / sy-subrc, error_message.
    EXIT.
  ENDIF.

Can anybody faced the same problem??

FYI.. The following statement is working fine while reading the contents of the file.

OPEN DATASET pa_upld FOR INPUT IN TEXT MODE ENCODING DEFAULT.

Any help??

Thanks in Advance,

Prashant

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

6 Answers

  • Best Answer
    avatar image
    Former Member
    Jul 15, 2009 at 06:35 AM

    Hi,

    You may not have WRITE authorizations for the server file . Check with your BASIS team

    Regards

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Can you please provide me help regarding "How to give write permission/authorizations for the server file".

      Currently i can able to perform read operation on server file.

      Thanks,

      Prashant

  • avatar image
    Former Member
    Jul 15, 2009 at 06:35 AM

    Hi,

    I think you dont have access for get the file from the Application server.

    go to the AL11 tcode , double click on the folder , it will says you do u have acess or not?

    regards,

    Rama reddy

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      This may be a authorization issue. Either your ID should have role SAP_ALL or the other role with the authorization object S_DATASET (Authorization for file access) with write access.

      The activity read and write is separate. May be you have only read assigned to your ID

      Regards

  • avatar image
    Former Member
    Jul 15, 2009 at 06:38 AM

    hi,

    check that opened dataset be closed or not

    and also check may be another person may work on that one.

    regards.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 15, 2009 at 06:37 AM

    May be you opened the file but not closed then try to open it the same file you get this type of error. Pls chk.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hello Raghava and Alexander,

      Thanks for your prompt reply .

      I have closed the file using statement.

      CLOSE DATASET pa_upld.
      

      Regards,

      Prashant

  • Jul 15, 2009 at 06:55 AM

    check with the basis people....

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 15, 2009 at 06:55 AM

    Saving the file in the usr folder of the server solves the problem.

    Add comment
    10|10000 characters needed characters exceeded