2008 Dec 31 4:09 AM
Hi all,
I want to display date in the format, (19th SEP 2008).
But 19th suould be in the format of 19 power th(we say super script).
for ex.
...th
19 SEP 2008.
Can v do it in abap.????
Cheers,
Mr.A
2008 Dec 31 4:12 AM
i think it is not possible to do ......
to get the description of the month use table T247
2008 Dec 31 4:13 AM
Ur answer is totally irrelevant.
He has not at all asked abt month description
кu03B1ятu03B9к
2009 Jan 02 4:12 AM
HI every body,
Any alternative....?
By using OO ABAP or some thing else....???
Regards,
Mr.A
2008 Dec 31 4:12 AM
U can do in smartforms and sap scripts not sure abt reports
кu03B1ятu03B9к
2008 Dec 31 6:11 AM
Hi
Check the below code.
Data : v_date TYPE D, " Date
v_gdate type i, " Get the day in the date
v_year type i, " Get the year in the date (DD/MM/YYYY)
v_spell(3) type c.
v_month(2) type c.
v_mdesc(10) type c, " Month Name
v_disp_text type char50.
v_date = sy-datum . " (31122008)
v_gdate = v_date+0(2)
v_year = v_date+4(4).
Get Month
v_month = v_date+2(2)
case v_date.
when 1.
v_mdesc = 'Jan'.
when 2
v_mdesc = 'Feb'.
when 3.
v_mdesc = 'Mar'.
when 4.
v_mdesc = 'Apr'.
when 5.
v_mdesc = 'May'.
when 6.
v_mdesc = 'Jun'.
when 7.
v_mdesc = 'Jul'.
when 8.
v_mdesc = 'Aug'.
when 9.
v_mdesc = 'Sep'.
when 10.
v_mdesc = 'Oct'.
when 11.
v_mdesc = "Nov'.
when 12.
v_mdesc = 'Dec'
endcase.
Get date.
case v_gdate.
when 1 or 21 or 31.
v_spell = 'st'.
when 2 or 22.
v_spell = 'nd'.
when 3 or 23.
v_spell = 'rd'.
when 4 or 24.
v_spell = 'rth'.
when 5 or 6 or 8 or 12 or 20 or 25 or 26 or 28 or 30.
v_spell = 'th'.
when 7 or 9 or 10 or 11 or 13 or 14 or 15 or 16 or 17 or 18 or 19 or 27 or 29.
v_spell = 'nth'.
endcase.
concatenate v_gdate
v_spell
'-'
v_mdesc
'-'
v_year
into
v_disp_text.
Output
31st-Dec-2008.
Hope this shall be useful to you.
Regards
Santosh Kumaar.M
2008 Dec 31 9:27 AM
Hi,
Its not possible to display date format with super script in ABAP. Date format is like this 19th SEP 2008
means we can display while using concatenate statement.
Regards,
Jyothi CH.
2008 Dec 31 9:37 AM