cancel
Showing results for 
Search instead for 
Did you mean: 

Output date in words on a smart form

Former Member
0 Kudos

I need to output a date in words on a smart form. As in today's date (01/13/2009) should be output as January 13, 2009. How do I acheieve this? Please could someone help me out with this one?

Accepted Solutions (1)

Accepted Solutions (1)

former_member585060
Active Contributor
0 Kudos

Hi,

Use the below FM

CONVERSION_EXIT_LDATE_OUTPUT to convert date to words format.

Answers (4)

Answers (4)

Former Member
0 Kudos

HI

Check the below FM

Function module              HR_IN_GET_DATE_COMPONENTS

Import parameters               Value
  IDATE                           10-09-2009       

Export parameters               Value
  DAY                             09
  MONTH                           10
  YEAR                            2009
  STEXT                           OCT
  LTEXT                           October
  USERDATE                        10-09-2009

concatenate the values as per your requirement...

Former Member
0 Kudos

use fm MONTH_NAMES_GET

or


lv_date_month = lv_date + 0(2).
do like this
select mnr ltx from t247 into table it_month
where spras = is_nast-spras.

sort it_month by mnr.

*Read internal table it_month for the month in numeric form to the month
*in text form
read table it_month into wa_month with key
mnr = lv_date_mnth
binary search.

Former Member
0 Kudos

hi ganesh,

check this thread

hope it helps you.

thanks

Sachin

Former Member
0 Kudos

use offset concept and get month ,date , year ...

use T247 table to get the description of the month...

concatenate <MONTH des> date year into ......