02-28-2007 11:22 AM
I have a field which is having date in '12.12.2006'
i want to convert this into 20061212
whats the function module for this...How to get this
02-28-2007 11:23 AM
02-28-2007 11:23 AM
02-28-2007 11:24 AM
02-28-2007 11:24 AM
Hello,
Do like this:
CALL FUNCTION 'CONVERT_DATE_TO_INTERN_FORMAT'
EXPORTING DATUM = C_DATUV
DTYPE = 'DATS'
IMPORTING IDATE = C_DATUV
ERROR = ERROR_FLAG
MESSG = MESSAGE
MSGLN = MESSAGE_LENGTH.
Vasanth
02-28-2007 11:25 AM
V_date(8) type c..
vdate = '12.12.2006'.
CONCATENATE vdate+0(4) vdate+4(2) vdate+6(2) INTO v_date.
02-28-2007 11:28 AM
hi,
CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'
EXPORTING
date_external = t_bkpf-budat
IMPORTING
date_internal = wa_bkpf-budat.
Regards,
Santosh
02-28-2007 11:28 AM
Hi,
use CONVERT_DATE_TO_INTERNAL
data: v_date(8) type c.
call function 'CONVERT_DATE_TO_INTERNAL'
exporting
date_external = '12.12.2006'
importing
date_internal = v_date.
write:/ v_date.
Regards,
Sruthi
02-28-2007 11:29 AM
Hi
You can use the FM:
use the fm: CONVERT_DATE_TO_INTERNAL
for this requirement.
Regards,
kumar
02-28-2007 11:42 AM
Hi,
You can use this std function module to convert to system date.
'CONVERT_DATE_TO_INTERNAL'
Regards,
Ponraj.s.