Skip to Content

Create XML file

Hi experts

For an interface,we need to create an XML file and save it locally. My question is: which will be the best way for the XML creation? Using xlst_tool or doing completely the file by hand?

Could you please help me?

Thanks in advance!

Regards

Rebeca

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Aug 03, 2020 at 03:48 PM

    Hi,

    Personally I always use simple transformations or xsl based transformations. Creating an XML by hand is something I only had to resort to in a few special cases. (Dynamic format of XML file, but even in these cases it was not completely impossible to do it with transformations)

    Best regards,

    Geert-Jan Klaps

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 04, 2020 at 11:15 AM
    -1

    Hello experts,

    Thanks a lot for your support! I'm completely new working with xslt_tool, so I'm a bit lost... I've created all the structures and the final structures. When I check it in sourceCode tab, it seems to be good. But now I'm executing the program and it returns the following message "Invalid XML source". Should I need to create the report now? and how can I use this for the XML grneration? Thanks!!!

    Regards,

    Rebeca

    Add a comment
    10|10000 characters needed characters exceeded

    • Please show your code.

      Create the transformation with STRANS (XSLT_TOOL is the old name, I don't recommend it because it's misleading and incite people to choose XSLT instead of Simple Transformation which is less powerful but much faster). Call it with CALL TRANSFORMATION.

      Please use the COMMENT button for comments, questions, adding details, replying to OP comment, etc., ANSWER is only to propose a solution, dixit SAP text at the right of the answer area.

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.