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

XML File send to application server

0 Likes
3,071

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!

1 ACCEPTED SOLUTION
Read only

abo
Active Contributor
2,769

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.

8 REPLIES 8
Read only

pfefferf
Active Contributor
2,769

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), ...

Read only

abo
Active Contributor
2,770

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.

Read only

2,769

Thanks.. Its working...

Thanks a lot

Read only

0 Likes
2,769

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

Read only

abo
Active Contributor
2,769

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!

Read only

0 Likes
2,769

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

Read only

Sandra_Rossi
Active Contributor
2,769
Himanshu Kawatra. Of course it's possible, but please post a separate question and be more explicit so that your question can be fully answered.
Read only

Sandra_Rossi
Active Contributor
0 Likes
2,769

Notepad doesn't "pretty print". Use your browser instead, or VS Code with an XML extension.