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

Super Script in abap report.

Former Member
0 Likes
1,072

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

5 REPLIES 5
Read only

former_member188724
Contributor
0 Likes
1,046

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

Read only

0 Likes
1,046

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.

Read only

0 Likes
1,046

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

Read only

0 Likes
1,046

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.

Read only

0 Likes
1,046

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.