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

reading XML files from application server

Former Member
0 Likes
379

Hi,

I am reading a file curreunlt from the presentation server as below

CALL METHOD CL_GUI_FRONTEND_SERVICES=>GUI_UPLOAD

EXPORTING

FILENAME = L_FILENAME

FILETYPE = 'BIN'

The filetype is the above is BIN.

Can a xml file be read from the application using the open dataset?

If it can be read using open dataset, can it be converted into a binary stream as done by the earlier call??

Regards,

Vignesh

1 REPLY 1
Read only

valter_oliveira
Active Contributor
0 Likes
271

Hello Vignesh.

First of all, i must say that you can open a XML from application server using open dataset, depending of your system version. What's yours?

I don't know from which version you started to can do it, but in ECC 600 you can use this:

OPEN DATASET dset FOR (input/output)

IN BINARY MODE ENCODING (UTF-8/DEFAULT).

depending of the goal and the encoding you use.

Best regards,

Valter Oliveira.