Application Development and Automation 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: 
Read only

Regarding Opendata Set

Former Member
0 Likes
555

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

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

3 REPLIES 3
Read only

amit_khare
Active Contributor
0 Likes
526

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.

Read only

Former Member
0 Likes
526

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.

Read only

Former Member
0 Likes
526

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