'Open Dataset For Output' throws error 'Permission Denied'
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.
Thanks in Advance,