cancel
Showing results for 
Search instead for 
Did you mean: 

Date in words format in script Eg : 21st of January, 2008

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

this link gives ur answer....

Answers (4)

Answers (4)

Former Member
0 Kudos

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к

Former Member
0 Kudos

This message was moderated.

Former Member
0 Kudos

hi mandar, the question is quite clear with all the requirement specified but u responded with a very generic answer by posting all fms related to dates,

this is considered as spam,

Requesting the moderators to look into it.

кu03B1ятu03B9к

Former Member
0 Kudos

Spam has been removed from the thread.

Former Member
0 Kudos

Hi Termi,

Refer this wiki..

https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/dateindd.mm.yyyytoDayandDatein+dd.month.yyyy

Regards,

Sravanthi

Former Member
0 Kudos

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