March 30, 2010 @ 4:49 pm
Date and Time validation
Sometimes, we need to validate some inputs from users that are inserted by external sources (like files).
For this purpose, we found very useful function modules like CONVERT_DATE_TO_INTERNAL and CONVERT_TIME_INPUT to validate external dates formats and external times formats (ex: dates like ’24.06.1978′ or times like ’11:00:00′)
This functions are also very useful to convert the external information to internal information.
If you need more conversions of this kind, take a look at utility class CL_ABAP_DATFM.
Check if is helpful for you too, or if you have any other suggestions feel free to share with us!
Filed under BC - ABAP Permalink