REPORT ztest.
DATA: lv_str TYPE string.
CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL'
EXPORTING
date_internal = sy-datum
IMPORTING
date_external = lv_str
EXCEPTIONS
date_internal_is_invalid = 1
OTHERS = 2.
WRITE: lv_str.
原创文章,作者:Maggie-Hunter,如若转载,请注明出处:https://blog.ytso.com/tech/pnotes/17900.html