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

Regarding Opendata Set

Hi,

when i am using opendata set w_file for output encoding default.

i am getting 'error in opening file'

could help me on what is actual issue might be

regards,

vinesh

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Dec 05, 2007 at 11:59 AM

    May be one of the following -

    1.Check if the file exist at the application server

    2.The path provided is correct.

    3. You have permission to read the file.

    Regards,

    Amit

    Reward all helpful replies.

    Add a comment
    10|10000 characters needed characters exceeded

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

    Check if you have authorization to access or create files on application server.(Check with your basis team).

    If you are trying to create a file in a directory, check if the directory exists from AL11.

    Add a comment
    10|10000 characters needed characters exceeded

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

    Hi,

    OPEN DATA Sets -- For Uploading/Down loading fiels from Application server.

    Please define a file path in your program and then use "OPEN DATASET L_FILE FOR OUTPUT ".

    Then the O/P data will write to that file on application server.

    Example:

    *---opens application server file

    OPEN DATASET L_FILE FOR OUTPUT IN BINARY MODE.

    "encoding default.

    " try here by putting in TEXT Mode if you are not suceeding with binary mode

    IF SY-SUBRC = 0.

    LOOP AT I_TAB1.

    TRANSFER I_TAB1 TO L_FILE.

    ENDLOOP.

    *--- closes error file

    CLOSE DATASET L_FILE.

    ELSE.

    • message i000 with 'Unable to download PDF file'.

    ENDIF.

    Reward if it useful

    Regards,

    Sivaparvathi

    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.