2008 Nov 20 1:54 PM
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.
2008 Nov 20 2:05 PM
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
2008 Nov 20 2:05 PM
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
2008 Nov 20 11:42 PM
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..
2008 Nov 21 2:51 AM
Hi,
First you should check whether the file exists on the application server.
Any doubt let me know.
Regards,
Chris Gu