Application Development 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: 

convert date in words

Former Member
0 Kudos

Hi All,

Is there any FM that will convert a date yyyymmdd to words. i.e. 20080101 to January 1, 2008?

Please help tnx!!!

Regards,

Mark

1 ACCEPTED SOLUTION

former_member585060
Active Contributor
0 Kudos

Hi,

Try this Function module,

CONVERSION_EXIT_LDATE_OUTPUT

Regards

Bala krishna

4 REPLIES 4

Former Member
0 Kudos

Hi,

Do you need a FM to do this. I think you can do it using a code of your own.

Example :

data : w_date type sy-datum,

w_mon(2) type c,

w_date1(15) type c.

w_date = sy-datum.

w_mon = w_date+4(2).

w_date10(2) = w_date6(2) " Assigns the date

w_date17(4) = w_date0(4) " Assigns the year

Case w_mon.

when '01'.

w_date1+3(3) = 'Jan'.

when '02'.

w_date1+3(3) = 'Feb'.

...

...

..

When '12'.

w_date1+3(3) = 'Dec'.

So when date is today : 20081014

It will show 14 Oct 2008

Hope it helps,

Regards,

Pramod

former_member188685
Active Contributor
0 Kudos

there are functions to do that

check this function

CONVERSION_EXIT_SDATE_OUTPUT

former_member585060
Active Contributor
0 Kudos

Hi,

Try this Function module,

CONVERSION_EXIT_LDATE_OUTPUT

Regards

Bala krishna

0 Kudos

Hi Bala,

Thanks very much!! Case closed

Regards,

Mark