Skip to Content
author's profile photo Former Member
Former Member

ask about sy-subrc = 8

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 02, 2007 at 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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 02, 2007 at 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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 02, 2007 at 12:55 PM

    i'm running standard report

    RCSBI020

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 02, 2007 at 02: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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 02, 2007 at 04: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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.