Skip to Content
author's profile photo Former Member
Former Member

Function to convert internal table to XML format

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 22, 2008 at 10:30 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 22, 2008 at 10:28 AM

    search on this forum for XSLT

    regards

    Hans

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 22, 2008 at 10:30 AM

    hi,

    you can try

    SAP_CONVERT_TO_XML_FORMAT

    see this link

    internal table data to xml

    thanks

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 22, 2008 at 10:41 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 22, 2008 at 10:46 AM
    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.