Class CL_HRPAD_DATE_COMPUTATIONS.
Use FM DATE_CHECK_PLAUSIBILITY: Check if date is valid.
Class CL_HRPAD_DATE_COMPUTATIONS.
Use FM DATE_CHECK_PLAUSIBILITY: Check if date is valid.
Use FM CONVERT_DATE_TO_EXTERNAL to convert data from internal format, to user format.
FORM convert_date_format
USING
value(p_internal_format) TYPE datum
CHANGING
p_external_format TYPE char10.
CLEAR p_external_format.
CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL'
EXPORTING
date_internal = p_internal_format
IMPORTING
date_external = p_external_format
EXCEPTIONS
date_internal_is_invalid = 1
others = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDFORM.
Have you ever had problems when working with a date value? Use FM DATE_CHECK_PLAUSIBILITY to validate if value you have is a valid date.
DATA: tabledescr TYPE REF TO cl_abap_tabledescr,
structuredescr TYPE REF TO CL_ABAP_DATADESCR.
tabledescr ?= cl_abap_tabledescr=>describe_by_data( table_type ).
call method tabledescr->GET_TABLE_LINE_TYPE
receiving P_DESCR_REF = structuredescr.
ASSERT structuredescr->absolute_name(6) = '\TYPE='.
structure_name = structuredescr->absolute_name+6(30).
RSTXTRAN – insert in a task, text object created in tcode SO10.
RSTXSCRP – Import/export of sapscript
CTRL+D Duplicate line
CTRL+Y Select text
CTRL+K Change case of selected text
CTRL+U Uppercase letters
CTRL+< Comment
CTRL+> Uncomment
CTRL+SPACE Activate autocomplete
For mass upload in infotype 0128 (Notifications)
Report RPL12800 lists personnel numbers containing data in infotype 0128.