Hi All,
I have a report where i am storing spool in a file named "p_file" which is stored on a network path.I am using open dataset statement for downloading the file in application server.But its not working and sy_subrc is retuning "8" instead of "0".and output is coming as "'operating system could not open file".
DATA : p_file LIKE rlgrap-filename VALUE '\\daload2\saptrans\transECCGBL'.
* downloading the file in application server
OPEN DATASET p_file FOR OUTPUT IN BINARY MODE .
IF sy-subrc = 0 .
WRITE : / 'List of Invoices excluded Due to No Accounting Document'.
LOOP AT g_it_temp INTO g_is_temp.
TRANSFER g_is_temp TO p_file .
CLEAR g_is_temp.
ENDLOOP.
CLOSE DATASET p_file.
ELSE.
WRITE : / 'operating system could not open file' .
ENDIF.
Please Help...!!
Request clarification before answering.
Hi Umesh,
Check if the file is marked read only and you have given sufficient permissions for the fie.
Thanks,
Ajay Bose
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.