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

Function to convert internal table to XML format

former_member249672
Participant
0 Likes
7,905

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
Read only

Former Member
0 Likes
2,967

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
Read only

h_senden2
Active Contributor
0 Likes
2,967

search on this forum for XSLT

regards

Hans

Read only

Former Member
0 Likes
2,967

hi,

you can try

SAP_CONVERT_TO_XML_FORMAT

see this link

thanks

Read only

Former Member
0 Likes
2,968

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

Read only

former_member249672
Participant
0 Likes
2,967

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

Read only

0 Likes
2,967

Hi,

maybe this blog can help you:

Best regards.

Read only

Former Member
0 Likes
2,967