2011 Apr 19 7:45 AM
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
2011 Apr 19 8:04 AM
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.
2011 Jul 15 10:11 AM
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
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |