12-02-2007 12:49 PM
File = C:/xx/xx/xx/x.
OPEN DATASET FILE FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
i get sy-subrc = 8. what is 8?
and wht he cannot open the file.
if i make start->run->C:/xx/xx/xx/x the fiel is open.
12-02-2007 12:55 PM
OPEN DATASET is related to file in Unix,
So check whether the directory is there in UniX, For that Go to AL11 and search for the directory.
If your directory is /eai/pxd/share
Goto AL11, then EAI then look for PXD then SHARE
C: is your presentation location, so it will throw error.
Regards,
Baburaj
12-02-2007 12:53 PM
<b>Permission denied to access that file.</b>
You can get exact error message this way. If an error occurs opening the file, the corresponding message of the operating system is stored in the field m.
DATA: dsn(20) VALUE '/usr/test.dat',
msg(100).
OPEN DATASET dsn FOR INPUT MESSAGE msg
IN TEXT MODE ENCODING DEFAULT.
IF sy-subrc <> 0.
WRITE / msg.
STOP.
ENDIF.
Regards,
Satish
12-02-2007 12:55 PM
12-02-2007 12:55 PM
OPEN DATASET is related to file in Unix,
So check whether the directory is there in UniX, For that Go to AL11 and search for the directory.
If your directory is /eai/pxd/share
Goto AL11, then EAI then look for PXD then SHARE
C: is your presentation location, so it will throw error.
Regards,
Baburaj
12-02-2007 1:01 PM
no its windows friend, and it always work like that just for last week i get the problem
12-02-2007 1:10 PM
<b>OPEN DATASET FILE FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.</b>
This Can not be used if you are trying to access from Windows. You have to use GUI_UPLOAD & GUI_DOWNLOAD.
Regards,
Satish
12-02-2007 2:13 PM
Hello,
OPEN DATASET is a command used to access the file in the appliaction server and not the presentation server .To get the contents of the file on a presentation server make use of the function module 'GUI_UPLOAD' or 'WS_UPLOAD'.
Regards,
Sowmya.
12-02-2007 4:29 PM
Hi ,
From my knowledge sy-subrc value = 8 this is regarding the authorization check to open a file and edit the changes in the database.