Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

'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

Former Member
Not what you were looking for? View more on this topic or Ask a question