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: 

converting date to dd month yyyy

Former Member
0 Kudos
1,005

Hi,

I want to print a date on a dunning SmartForm letter. I need to get the french written format dd month_name yyyy

Example : 24 decembre 2008

I don't want to do it with a programm, i would prefer to use a existing FM. Does someone knows something that could solve my problem ?

Thanks

Regards

Edited by: Larrière Dorian on Jun 19, 2008 4:41 PM

1 ACCEPTED SOLUTION

Former Member
0 Kudos
308

hi check this...

DATA ldate(20).

CALL FUNCTION 'CONVERSION_EXIT_LDATE_OUTPUT'

EXPORTING

input = sy-datum

IMPORTING

OUTPUT = ldate.

10 REPLIES 10

Former Member
0 Kudos
308

Hi,

Best option create your own FM with date as input and the required format as output.

Regards,

Subramanian

Former Member
0 Kudos
308

hiiii

use FM ISP_GET_MONTH_NAME on sy-datum.It will print month in name.

reward if useful

thx

twinkal

Former Member
0 Kudos
308

try this fm:

CLEAR:

HLP_DATE_CHAR.

CALL FUNCTION 'CONVERSION_EXIT_IDATE_OUTPUT'

EXPORTING

INPUT = MSEL-ATWRT

IMPORTING

OUTPUT = HLP_DATE_CHAR.

andreas_mann3
Active Contributor
0 Kudos
308

try:

REPORT zzzdate.

tables t247.

*

PARAMETERS : date TYPE sy-datum DEFAULT '20050925'.

DATA dstr TYPE string.

  • get name

SELECT SINGLE * FROM t247

WHERE spras = sy-langu

AND mnr = date+4(2).

CONCATENATE date+6(2) t247-ltx date(4) INTO dstr

SEPARATED BY space.

WRITE : / dstr.

A.

Former Member
0 Kudos
309

hi check this...

DATA ldate(20).

CALL FUNCTION 'CONVERSION_EXIT_LDATE_OUTPUT'

EXPORTING

input = sy-datum

IMPORTING

OUTPUT = ldate.

Former Member
0 Kudos
308

Hi,

You can convert month into letter with FM MONTH_NAMES_GET.

Hope this helps,

Bonne soirée,

Erwan

0 Kudos
308

This FM is very interesting :

CONVERSION_EXIT_LDATE_OUTPUT

The problem is that there is a point after the day...

Exemple : 19. Juin 2008

How can I remove this point ?

Thanks

0 Kudos
308

use .. replace command ...

replace all occurrences of '.' in v_date with ''.

0 Kudos
308

we have seen nothing...but this is the point ..use the replace command

0 Kudos
308

That's OK.

Thanks