2006 Nov 14 8:38 AM
can we display the date Nov 14 as 14th november with superscript in abap
is there any func module is there to achieve that
shekhar
can we display the date Nov 14 as 14th november with superscript in abap
is there any func module is there to achieve that
shekhar
2006 Nov 14 8:40 AM
hi,
DATA: DATE_CHAR(20).
DATA: DATE TYPE SY-DATUM.
DATA: MONTH_NAME LIKE T247-LTX.
DATE = SY-DATUM.
SELECT SINGLE LTX FROM T247
INTO MONTH_NAME
WHERE SPRAS = SY-LANGU
AND MNR = SY-DATUM+4(2).
CONCATENATE SY-DATUM+6(2) MONTH_NAME SY-DATUM(4)
INTO DATE_CHAR SEPARATED BY SPACE.
WRITE: / DATE_CHAR.
Rgds
Anver
2006 Nov 14 8:46 AM
Hi,
the problem i have to display like 14th i.e 'th' should be the superscript of 14.. i don't know if it is possible...
2006 Nov 14 8:52 AM
in report i don't think it is possible. but u can do it in sapscript form .that's the one of the reason for using sapscript.
2006 Nov 14 8:53 AM
To create superscripts:
Create a new character format : c
In the standard settings set the radio button ON for SUPERSCRIPT.
Then you can assign it to your text as follows:
Your text <c>superscripted<>
Where c is the character format.
Example: 21st Feb 2006.
&VBDKR-FKDAT(2)&<c>ST<> &VBDKR-FKDAT+2(8)& ........
c= Charecter format which you creates.
kishan negi
2006 Nov 14 8:56 AM
i want to display that in adobe form and not in report...
can you please let me know how u do it in sapscript?
2006 Nov 14 9:01 AM
Hi
In scripts you can just create a Character format in that u can select super script / subscript and other options too.
Then where every you want to use can use it as in any scripting language. Like, DD<chatformname>th</>.
But I'm sure it is even easy in Adobe forms.
Regards
Surya.
2006 Nov 14 9:10 AM
Shekahr,
find this FM if it is useful..
MONTH_NAMES_GET.... Gives you month names in long and short texts..
-Anu
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |