2008 Jun 19 3:40 PM
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
2008 Jun 19 3:52 PM
hi check this...
DATA ldate(20).
CALL FUNCTION 'CONVERSION_EXIT_LDATE_OUTPUT'
EXPORTING
input = sy-datum
IMPORTING
OUTPUT = ldate.
2008 Jun 19 3:43 PM
Hi,
Best option create your own FM with date as input and the required format as output.
Regards,
Subramanian
2008 Jun 19 3:49 PM
hiiii
use FM ISP_GET_MONTH_NAME on sy-datum.It will print month in name.
reward if useful
thx
twinkal
2008 Jun 19 3:50 PM
try this fm:
CLEAR:
HLP_DATE_CHAR.
CALL FUNCTION 'CONVERSION_EXIT_IDATE_OUTPUT'
EXPORTING
INPUT = MSEL-ATWRT
IMPORTING
OUTPUT = HLP_DATE_CHAR.
2008 Jun 19 3:52 PM
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.
2008 Jun 19 3:52 PM
hi check this...
DATA ldate(20).
CALL FUNCTION 'CONVERSION_EXIT_LDATE_OUTPUT'
EXPORTING
input = sy-datum
IMPORTING
OUTPUT = ldate.
2008 Jun 19 4:03 PM
Hi,
You can convert month into letter with FM MONTH_NAMES_GET.
Hope this helps,
Bonne soirée,
Erwan
2008 Jun 19 4:07 PM
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
2008 Jun 19 4:09 PM
use .. replace command ...
replace all occurrences of '.' in v_date with ''.
2008 Jun 19 4:09 PM
we have seen nothing...but this is the point ..use the replace command
2008 Jun 19 4:11 PM