‎2008 May 27 12:19 PM
i have an input '80029898' as character string and i wanted to convert it into date format could anyone please tell me how to convert it.....
‎2008 May 27 12:21 PM
Move it to a variable of type sy-datum.
i guess that should work,i hvnt tried it but i think it should work.
else you can move it to a variable of length10 and then move the vaule to sy-datum
Hope it helps.
‎2008 May 27 12:23 PM
well i have not tried it..
but..
write : ur_string edit mask '__:__:____ '.
should work.
regard.
Manish.
‎2008 May 27 12:22 PM
you can use the function CONVERT_DATE_TO_INTERNAL.
CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'
EXPORTING
DATE_EXTERNAL = L_VAR1
IMPORTING
DATE_INTERNAL = L_VAR2
EXCEPTIONS
DATE_EXTERNAL_IS_INVALID = 1
OTHERS = 2.
************reward points,if found useful
‎2008 May 27 12:24 PM