Calculation ABAP timestamp

Use class cl_abap_tstmp for calculation on ABAP timestamps.

Like it? Share it!
DATA : lv_timestamp TYPE timestamp, lv_timestamp_o TYPE timestamp. GET TIME STAMP FIELD lv_timestamp. TRY. CALL METHOD cl_abap_tstmp=>add EXPORTING tstmp = lv_timestamp secs = 3600 RECEIVING r_tstmp = lv_timestamp_o. CATCH cx_parameter_invalid_range . WRITE 'exception: invalid range'. EXIT. CATCH cx_parameter_invalid_type . WRITE 'exception: invalid type'. EXIT. ENDTRY. WRITE lv_timestamp time zone 'UTC '. SKIP. WRITE lv_timestamp_o time zone 'UTC '.

>_ Author

>_ last updated 5 yearss ago

>_ Language: ABAP

timestamp cl_abap_tstmp