‎2006 Sep 20 7:42 AM
Hi all,
My requirment is to convert 20060917 to 17.09.2006.HOw is it possible pls help me on this.
‎2006 Sep 20 7:44 AM
‎2006 Sep 20 7:44 AM
‎2006 Sep 20 7:44 AM
data v_date(10) type c.
<b>write sy-datum to v_date.</b>
v_date will have date in your required format.
its based on user profile settings.
example:
if the user has mm/dd/yyyy format,
you will get the output also like that.
Regards
Srikanth
‎2006 Sep 20 7:49 AM
d1 = 20060917
d20(2) = d16(2).
d22(2) = d14(2).
d24(4) = d10(4).
try this out
‎2006 Sep 20 7:55 AM
data: datum(10) type c.
call function 'CONVERT_DATE_TO_EXTERNAL'
exporting
date_internal = sy-datum
importing
date_external = datum.
write:/ datum.
‎2006 Sep 20 8:00 AM
hi,
try this FM CONVERT_DATE_TO_INTERN_FORMAT
or as one of our friends suggested, use offset for dd mm yyyy and then concatenate it with '.'
cheers,
Aditya.
‎2006 Sep 20 8:04 AM
hi,
alex
use this.
CONVERSION_EXIT_SDATE_OUTPUT
DATA: INT_DATUM LIKE SY-DATUM VALUE '19940102',
EXT_DATUM(11) TYPE C.
...
CALL FUNCTION 'CONVERSION_EXIT_SDATE_OUTPUT'
EXPORTING
INPUT = INT_DATUM
IMPORTING
OUTPUT = EXT_DATUM.
Result:
EXT_DATUM = 02.JAN.1994
rgds
anver
Message was edited by: Anversha s
‎2006 Sep 20 8:46 AM
WRITE sy-datum to ldate DD/MM/YYYY.
The above should do the trick !!
‎2006 Sep 20 8:49 AM
Hello,
Use the conversion exit CONVERSION_EXIT_PDATE_OUTPUT.
Regs,
Venkat Ramanan N