2008 May 05 12:46 PM
Hello, everyone.
I have a simple code which suppose to create a file and write to it.
Even when everything seems to be OK when debugging the program the file is not created (subrc = 0).
Please do not suggest me to use FM (gui_download and so...), it's not possible (backgroung execution).
The code is:
OPEN DATASET LV_FILENAME FOR OUTPUT IN TEXT
MODE ENCODING DEFAULT.
IF SY-SUBRC EQ 0.
LOOP AT LT_DATA_TAB INTO LS_DATA_TAB.
TRANSFER LS_DATA_TAB TO LV_FILENAME.
ENDLOOP.
ENDIF.
CLOSE DATASET LV_FILENAME.
Does anyone has an idea what's the problem ? Folders Access Authorization Only ??
Thanks in advance,
Rebeka
2008 May 05 1:29 PM
hi,
try to use
DATA mess TYPE string.
OPEN DATASET `` FOR INPUT IN BINARY MODE MESSAGE mess.
IF sy-subrc = 8.
MESSAGE mess TYPE 'I'.
ENDIF.
the opeating system will give u the answer in mess!
bye
2008 May 05 12:59 PM
2008 May 05 1:12 PM
Hi,
Check if the path is in the transaction AL11.
Try to use a path maintained in the AL11.
Regards,
Fernando
2008 May 05 1:14 PM
Hi
It must be the authorization prob.
Try to locate the file in /TMP folder and check the sy-subrc OR try to use the existing file.
LV_FILENAME = '/tmp/test.txt'.
2008 May 05 1:29 PM
hi,
try to use
DATA mess TYPE string.
OPEN DATASET `` FOR INPUT IN BINARY MODE MESSAGE mess.
IF sy-subrc = 8.
MESSAGE mess TYPE 'I'.
ENDIF.
the opeating system will give u the answer in mess!
bye