cancel
Showing results for 
Search instead for 
Did you mean: 

How to read Data/ Download file From SERVER Response

Former Member
0 Kudos

Hi,

I want to download an XSTRING file in CRM Web UI.

For this I did the following.


1. 
* -> create response
  SERVER->RESPONSE->SET_HEADER_FIELD(
    NAME  = 'Content-Type'                                  "#EC NOTEXT
    VALUE = 'text/xml' ).

2.
SERVER->RESPONSE->SET_DATA( DATA = l_xml_xstring ).

My Question is how to download this data/ XML file by triggering an event?

Thanx in Advance,

Aneel

Accepted Solutions (0)

Answers (1)

Answers (1)

AnupDDesai
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

Kindly check CL_HTTP_RESPONSE class method FROM_XSTRING , TO_XSTRING

Also check CL_SMTP_RESPONSE class too.

Hope this helps.

Regards,

Anup