CONVERT_DATE_TO_EXTERNAL sap function moduleThe below code shows how function module CONVERT_DATE_TO_EXTERNAL is used to convert a date field from is internal storage format to the users specific display format i.e. from YYYYMMDD to DD/MM/YYYY. Convert date to users prefered output
data: ld_date_int type datum,
ld_date_ext type datum.
CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL'
EXPORTING
date_internal = ld_date_int
IMPORTING
date_external = ld_date_ext
EXCEPTIONS
date_internal_is_invalid = 1
OTHERS = 2.
Check out sap documentation and pattern details for function module convert_date_to_external on website se80.co.uk
Website Navigation to related information
|
||||||