2014 Nov 18 10:49 AM
Hi All,
I have a requirement where in which I have to use super script for the integers for e.g 1st 2nd etc..... through ABAP code.
Can any one tell me how to achieve this.
Thanks in advance...
Hi All,
I have a requirement where in which I have to use super script for the integers for e.g 1st 2nd etc..... through ABAP code.
Can any one tell me how to achieve this.
Thanks in advance...
2014 Nov 18 1:08 PM
Hi,
What is your exact requirement. You want to have this in Report?
Is it going to be dynamic or till specified?
Please share the info.
Regards,
K.S
2014 Nov 18 1:31 PM
Hi K S,
yes I want to have this in report.
the value is dynamic. based on the calculation I am getting the number but I have to put superscript with that number.
2014 Nov 19 9:27 AM
Hi,
Pls try this logic.
Chk if the last digit is
1-then you should concatenate ‘st’
2- concatenate ‘nd’
3-concatenate ‘rd’
For the above 3 cases it will not
work for 11,12,13 as it will have th.
Exclude these three conditions and
add th, rest should work.
Then rest of 4,5,6,7,8,9 you can
concatenate ‘th’
Hope it helps.
Let me know if you have any queries.
Regards,
K.S
2014 Nov 19 1:10 PM
Hi K S,
Thanks for your quick response.. The solution which you have provided I have already implemented in my code but the user want 'th' 'nd' 'rd' 'st' should be in the super script as we are getting in MS word... but in my case I am getting next to the number.
2014 Nov 19 1:28 PM
Hello,
I do not think this is possible in an ABAP report. This can be done in SAPscript or smartform where you have typographical control over your output.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |