Application Development 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: 

Function to convert internal table to XML format

former_member249672
Participant
0 Kudos

Hello,

Does anyone know a function which allows to convert an internal table which contains data to XML format ? This function must be called by RFC.

Thanks for your help.

Rgds,

ISIS

1 ACCEPTED SOLUTION

Former Member
0 Kudos

HI,

Use this function module.

TEXT_CONVERT_XML_TO_SAP,

Based on the version it is dependent for the RFC enable as this not RFC enable in the 4.7EE.

Hope if u r using bigger version u will find lot more function module in it.

search in the se 37 tcode as XMLSAP*

Regards,

Naresh

6 REPLIES 6

h_senden2
Active Contributor
0 Kudos

search on this forum for XSLT

regards

Hans

Former Member
0 Kudos

hi,

you can try

SAP_CONVERT_TO_XML_FORMAT

see this link

thanks

Former Member
0 Kudos

HI,

Use this function module.

TEXT_CONVERT_XML_TO_SAP,

Based on the version it is dependent for the RFC enable as this not RFC enable in the 4.7EE.

Hope if u r using bigger version u will find lot more function module in it.

search in the se 37 tcode as XMLSAP*

Regards,

Naresh

former_member249672
Participant
0 Kudos

I know all these functions, but the problem is that when i launch ithem , i have an error "Error generating the test frame".

And another thing, these functions can not be used in RFC. The format for RFC didn't allow to pass data in Format x, it must be char, int ...

I have created a program which creates in output a file , and it works fine ( using an XSLT-transformation ) but i would like to have it in a function callable by RFC.

What isd the format of the table that i can use ?

Thanks,

ISIS

0 Kudos

Hi,

maybe this blog can help you:

Best regards.

Former Member
0 Kudos