Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

ask about sy-subrc = 8

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

7 REPLIES 7

Former Member
0 Kudos

<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

Former Member
0 Kudos

i'm running standard report

RCSBI020

Former Member
0 Kudos

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

0 Kudos

no its windows friend, and it always work like that just for last week i get the problem

0 Kudos

<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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.