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

ABAP to XML

Former Member
0 Likes
635

Hi All,

I have created a report which converts internal table data to XML file. using transaction XSLT_TOOL i have achieved it and also i have created deep structure to fill internal table data and then pass it into XSLT_TOOL. it works fine. The issue is amount field.

1. Amount should come in 2 decimals but now it is showing in 1 decimals. (in my internal table it is 2 decimals only).

2. Comma should come before decimals not dot. (like 200,00)

i dont find anything in the transaction xslt_tool to manipulate the amount field.

Thanks in Advance.

Senthil kumar

Hi All,

I have created a report which converts internal table data to XML file. using transaction XSLT_TOOL i have achieved it and also i have created deep structure to fill internal table data and then pass it into XSLT_TOOL. it works fine. The issue is amount field.

1. Amount should come in 2 decimals but now it is showing in 1 decimals. (in my internal table it is 2 decimals only).

2. Comma should come before decimals not dot. (like 200,00)

i dont find anything in the transaction xslt_tool to manipulate the amount field.

Thanks in Advance.

Senthil kumar

2 REPLIES 2
Read only

AlessandroSpadoni
Contributor
0 Likes
459

When i used SImple Transformations ,i have created a CHAR field also for Amount fields.

You could add a char field in your internal table so you can manipulate the xml output format as you want using abap WRITE statement.

Read only

Former Member
0 Likes
459

The easiest way is doing all the formatting and layout before you pass the data to the transformation. Within XSLT, you only have limited possibilities. Just do all the necessary changes in ABAP, and pass plain char fields to XSLT.

Best wishes,

Jan