10-07-2005 12:11 PM
Hi
i want today's date 10-7-2005 to be displayed as October-7. Is there any FM for this ?
10-07-2005 12:28 PM
This gives output in a format 07.October.2005
I dont want the year in the output.
10-07-2005 12:19 PM
Hi,
there is a FM <b>CONVERSION_EXIT_LDATE_OUTPUT</b>.
Hope this is what you are looking for.
Regards,
Stefan
10-07-2005 12:28 PM
This gives output in a format 07.October.2005
I dont want the year in the output.
10-07-2005 12:38 PM
You can use split into three variable(s) at '.'.
and concatenate the month and date with '-'.
Regards,
Baburaj
10-07-2005 12:39 PM
data x_month(11).
data lv_datum type sy-datum.
lv_datum = sy-datum.
CALL FUNCTION 'CONVERSION_EXIT_LDATE_OUTPUT'
EXPORTING
input = lv_datum
IMPORTING
OUTPUT = x_month.
write x_month.
gives:<b>07.Oktober</b>
and with the date 20050501:<b>01.Mai</b>
10-07-2005 12:42 PM
Hi,
Then you can split and concatnate the string. Sample code :
<b>
SPLIT date_old AT '.' INTO strn1 strn2 strn3.
CONCATENATE strn2 strn1 INTO date_new.
</b>
Here date_old has 07.October.2005 and date_new will have October07. Here strn1,strn2,strn3 are also strings.
Hope this solves your problem.
Regards,
Ravikiran.
PS: Pls assign points for helpful replies.
10-07-2005 12:52 PM
DATA: char1(2) type c,
char2(10) type c,
char3(4) type c.
SPLIT '07.October.2005<b>(Output from the funtion module)</b>' at '.' into char1 char2 char3.
concatenate char2 char1 into char2 separated by '-'.
write: /char2(<b>Desired field).</b>