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

XML output Function Module

Former Member
0 Likes
877

Hi All,

Is there any function module in ABAP to generate an xml structure?

I want to generate an xml output in a string for the input structure (internal table)

Thanks

Ricky

2 REPLIES 2
Read only

uwe_schieferstein
Active Contributor
0 Likes
487

Hello Ricky

To transform ABAP to XML you can use the simple transformation, e.g.:

DATA:
  gt_itab    TYPE TABLE OF knb1,
  gd_xml   TYPE string.



* Select data into gt_itab

  CALL TRANSFORMATION id_ident
    SOURCE abap = gt_itab
    RESULT XML gd_xml.

You could place this coding into a function module having an IMPORTING parameter of type TABLE (generic table type). However, this generic type will not work for a RFC-enable function module.

Regards

Uwe

Read only

0 Likes
487