cancel
Showing results for 
Search instead for 
Did you mean: 

XML Data from Webdynpro ABAP Application

Former Member

Hi Experts,

I have a UI technology, which can accept as its "starting point", an XML document. My goal is to provide this XML document,on the fly, using Webdynpro ABAP technology (Ofcourse, the webdynpro component will be accessing multiple Ztables..etc, to get the data).

I am aware that this can be easily done with BSP, where we create the output HTML/XML, initialize the view from a controller, and send the body of view as response.

However, I am not able to do the same using Webdynpro ABAP.

My goal is, when I open my web browser, and provide wedynpro ABAP application URL, the data returned to the browser should be XML, and not Webdynpro auto generated Javascript/HTML. This means that even putting a text box on the view, and setting the XML as string inside the text box is not the solution I am hoping for.

Could you provide me a solution or pointers to solve the above problem.

Thanks,

Gopal Nair.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

data:
      conv_out type ref to cl_abap_conv_out_ce,
      content  type xstring.

  data : itab_sflight type table of sflight.
  data: xml_out TYPE string.

  
  call transformation ('ID') source tab = itab_sflight[] result xml xml_out.

Use this call transformation statement as i mention you will get XML data

Former Member
0 Kudos

Hi Nirad,

Thank you for your response. However, this does not solve my problem.

The code you provided converts and Internal table to XML. However, my question is, how do I get a response from my Webdynpro ABAP application, as XML data, instead of SAP auto generated Javascript and HTML codes.