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

Download XML data from application server to presentation server

former_member212005
Active Contributor
0 Likes
766

Hi All,

I am trying to download XML data present in application server to presentation server....However it is not successful...help!

Reading XML data from application server using OPEN DATASET IN BIANRY MODE statement into a variable lv_string of type string.

Later I append the data to an internal table.

Then when I try to download data using GUI_DOWNLOAD function module passing the above internal table.....it fails....it creates an empty file

May be I am missing some step in between....

Pls note I am using 4.6c

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
606

Hello,

Try Passing file type = BIN to the FM GUI_DOWNLOAD.

Thanks.

Ramya.

4 REPLIES 4
Read only

Former Member
0 Likes
607

Hello,

Try Passing file type = BIN to the FM GUI_DOWNLOAD.

Thanks.

Ramya.

Read only

0 Likes
606

I am already passing type as 'BIN'....

Can you tell me whether the following statements are correct....



TYPES: BEGIN OF ty_xml,
                data type xstring,
             END of ty_xml.

DATA: lt_xml_table TYPE STANDARD TABLE OF ty_xml.

DATA: lv_String TYPE xstring.

READ DATASET lv_path INTO lv_String.

APPEND lv_String to lt_xml_table.

This is what I am currently using.....

Read only

0 Likes
606

Please try this.

TYPES: BEGIN OF ty_xml,

data type xstring,

END of ty_xml.

DATA: lt_xml_table TYPE STANDARD TABLE OF ty_xml with header line.

DATA: lv_String TYPE xstring,lv_path type string.

READ DATASET lv_path INTO lv_String.

lt_xml_table-data = lv_String.

APPEND lt_xml_table to lt_xml_table.

Read only

0 Likes
606

Solved on my own