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

Creating a Function module to send XML Byte String

Former Member
0 Likes
566

Hi all,

I have to create a Function module to get XML byte string.The internal table is dynamic coloums based on how many data selected as a importparameter.from the internal; table data I have to create a XML byte string as a output.Pl help me to proceed further.

Thanks in Advance.

Ram

2 REPLIES 2
Read only

former_member10945
Contributor
0 Likes
430

If i have your question right you need to convert an internal table of unknown type to an xml string then to a byte string.


data xmlString type string.
data xmlXString type xstring.
call transformation id
   source
      table = internalTableYouWantToExport
   result
      xml xmlString.

export xmlString to data buffer xmlXString.

xmlString has the xml of the table and xmlXString contains the byte representation of the string.

Read only

Former Member
0 Likes
430

Hi,

Try FMs

RSWAD_TABLECONTENT_TO_XML

SMUM_XML_CREATE

SAP_CONVERT_TO_XML_FORMAT

CRM_BSP_DESIG_XML_CREATE

Hope it helps...

Lokesh