2009 Oct 23 3:35 AM
Hi experts ,
i m getting the date and time fileds from external souces as a string . i need to convert from string to internal sap date format and time format .
how can i do that . pls.help me if any function modules are available .
Regards
Kiran.
Hi experts ,
i m getting the date and time fileds from external souces as a string . i need to convert from string to internal sap date format and time format .
how can i do that . pls.help me if any function modules are available .
Regards
Kiran.
2009 Oct 23 6:30 AM
You can use the string operations to convert the date which you get in string to the you system specific date format.
2009 Oct 23 6:42 AM
Try this function module.
Thanks
venkat.OREPORT ztest_notepad.
DATA:date_str TYPE string.
DATA:date_i TYPE datum.
date_str = '24.10.2009'.
CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'
EXPORTING
date_external = date_str
IMPORTING
date_internal = date_i
EXCEPTIONS
date_external_is_invalid = 1
OTHERS = 2.