‎2020 Dec 28 8:53 AM
Hello Experts (Sandra Rossi)
I have deep structure and need to send some information from SAP to application server.
and i am using simple transformation.
I am able to send the file successfully and it is open in XML Format perfect. but when we open that file to notepad it is showing in a single line..
I want notepad file should display same as xml file formating.
Please help me out!
‎2020 Dec 28 9:27 AM
As already noted, the single line is a valid XML file and formatting is left to the editor you use to display it.
However, if you're required to pretty print the file before it leaves the SAP system, here is how you can do it.
‎2020 Dec 28 9:02 AM
I guess your question is more related to tooling for displaying XML files instead of having an option in the ABAP transformation logic to be able to insert any special signs (e.g. \n\r) to get a formatted result in a file.
I would recommend to use a tooling which displays XML in a well formatted way. Free tools are for instance Visual Studio Code, Notepad++ (with e.g. installed XML tools), ...
‎2020 Dec 28 9:27 AM
As already noted, the single line is a valid XML file and formatting is left to the editor you use to display it.
However, if you're required to pretty print the file before it leaves the SAP system, here is how you can do it.
‎2020 Dec 28 4:48 PM
‎2020 Dec 29 1:31 PM
Hi c5e08e0478aa4727abc4482f5be390b2
Now i am working on XML Upload into SAP System.
There is also Deep XML is coming on application server.
Can you help me to get that XML into Internal table .
Thanks in Advance
‎2020 Dec 29 1:35 PM
Please post a separate question with its own title and you're more likely to receive help.
I don't have an example at hand and I'm a bit short on time, thanks to Brexit!
‎2020 Dec 30 4:28 PM
Hi c5e08e0478aa4727abc4482f5be390b2
is there any way to get fix length in notepad of XML.
example..
<TAG1>Value</TAG1> | Here end. should be include space character after end of tag
‎2020 Dec 30 7:45 PM
‎2020 Dec 28 2:06 PM
Notepad doesn't "pretty print". Use your browser instead, or VS Code with an XML extension.