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

Application server file problem

Former Member
0 Likes
550

Hi Friends,

I want to upload the XML file from the application server.

I have written the code like

OPEN DATASET filename FOR INPUT IN TEXT MODE.

IF sy-subrc EQ 0.

DO.

READ DATASET int_filename-filename INTO int_records.

ENDDO.

ENDIF.

CLOSE DATASET.

After OPEN dataset I am getting the sy-subrc = 8.It's not opening the file.

Please suggest me how we can do this.

Thnx,

Sam.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
519

Hi,

Open File in Binary Mode in spite of Text Mode.

Use this

OPEN DATASET filename FOR INPUT IN BINARY MODE.

Refer:

http://abapreports.blogspot.com/2008/09/upload-xml-file-from-application-server.html

3 REPLIES 3
Read only

Former Member
0 Likes
520

Hi,

Open File in Binary Mode in spite of Text Mode.

Use this

OPEN DATASET filename FOR INPUT IN BINARY MODE.

Refer:

http://abapreports.blogspot.com/2008/09/upload-xml-file-from-application-server.html

Read only

Former Member
0 Likes
519

Hi,

  • Open the Dataset for reading from App Ser to internal tab

OPEN DATASET w_file

FOR INPUT IN TEXT MODE

ENCODING DEFAULT.

Tks,

Krishna..

Read only

Former Member
0 Likes
519

Hi,

First you should check whether the file exists on the application server.

Any doubt let me know.

Regards,

Chris Gu