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: 

Application server file problem

Former Member
0 Kudos
121

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

Former Member
0 Kudos
90

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

Former Member
0 Kudos
91

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

Former Member
0 Kudos
90

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..

Former Member
0 Kudos
90

Hi,

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

Any doubt let me know.

Regards,

Chris Gu