on 02-05-2009 6:26 AM
Hi,
I have requirement in which i need to print the date in words as, if the date is 21.01.2008
then itshould be printed as 21st of January, 2008.
and it should be language compatible, it should give the date in later format in any language specified.
i have tried using FM 'CONV_EXIT_LDATE_OUTPUT_LANGU'
but it just give it as 21. January 2008.
is there any other FM to achieve this requirement.
appreciate your inputs.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Its better to achieve ur requirement thru custom coding instead of using FMs. its quite simple.
ur date is like this v_date = 21.01.2008
so
v_day = v_date+0(2).
v_mon = v_date+3(2).
v_year = v_date+6(4).
now use table T247 to retrieve month name based on the month number in whatever language u want.
then concatenate all variables according to ur requirement.
кu03B1ятu03B9к
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This message was moderated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Termi,
Refer this wiki..
https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/dateindd.mm.yyyytoDayandDatein+dd.month.yyyy
Regards,
Sravanthi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Check this FM HR_IN_GET_DATE_COMPONENTS
Function module HR_IN_GET_DATE_COMPONENTS
Import parameters Value
IDATE 11-11-2008
Export parameters Value
DAY 11
MONTH 11
YEAR 2008
STEXT NOV
LTEXT November
USERDATE 11-11-2008
You get the date in different components now you can concatenate as per your Requirement.
Edited by: Avinash Kodarapu on Feb 5, 2009 11:59 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
79 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.