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

get xml file from

Former Member
0 Likes
583

Hi Friends!!!

I need Help/

I use FM 'SMUM_XML_PARSE' wich return me XML_TABLE

how get xml file from it_SMUM_XMLTB???

data : i_xstring type xstring,

it_SMUM_XMLTB type SMUM_XMLTB.

CALL FUNCTION 'SMUM_XML_PARSE'

EXPORTING

XML_INPUT = I_XSTRING

TABLES

XML_TABLE = it_SMUM_XMLTB

RETURN = it_bapiret2.

ENDFORM. " PARSE_XSTRING_VARIABLE

Thanx!!!

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
534

>

> Hi Friends!!!

> I need Help/

>

> I use FM 'SMUM_XML_PARSE' wich return me XML_TABLE

> how get xml file from it_SMUM_XMLTB???

>

>

> data : i_xstring type xstring,

> it_SMUM_XMLTB type SMUM_XMLTB.

> CALL FUNCTION 'SMUM_XML_PARSE'

> EXPORTING

> XML_INPUT = I_XSTRING

> TABLES

> XML_TABLE = it_SMUM_XMLTB

> RETURN = it_bapiret2.

> ENDFORM. " PARSE_XSTRING_VARIABLE

>

>

>

> Thanx!!!

HI,

You can loop through the table and get the XML.

DATA:

ls_xml type like line of it_SMUM_XMLTB.

loop it_SMUM_XMLTB into ls_xml.

// do something with ls_xml.

endloop.

2 REPLIES 2
Read only

Former Member
0 Likes
535

>

> Hi Friends!!!

> I need Help/

>

> I use FM 'SMUM_XML_PARSE' wich return me XML_TABLE

> how get xml file from it_SMUM_XMLTB???

>

>

> data : i_xstring type xstring,

> it_SMUM_XMLTB type SMUM_XMLTB.

> CALL FUNCTION 'SMUM_XML_PARSE'

> EXPORTING

> XML_INPUT = I_XSTRING

> TABLES

> XML_TABLE = it_SMUM_XMLTB

> RETURN = it_bapiret2.

> ENDFORM. " PARSE_XSTRING_VARIABLE

>

>

>

> Thanx!!!

HI,

You can loop through the table and get the XML.

DATA:

ls_xml type like line of it_SMUM_XMLTB.

loop it_SMUM_XMLTB into ls_xml.

// do something with ls_xml.

endloop.

Read only

thomas_jung
Developer Advocate
Developer Advocate
0 Likes
534

Moderator Message: This is not a Web Dynpro ABAP question. Please be careful as to which forum you are posting in. Moving this question to ABAP General.