Convert Date and Time to Timestamp in ABAP
ABAP programmers can join date and time values stored in SAP tables to convert datetime to timestamp using ABAP code sample given in this tutorial. In SAP, it is frequently seen that datetime values are stored as date and time parts seperately. ABAP developers can convert datetime values to timestamp data type easily.
For this tutorial, I will use the ERDAT and ERZET fields on SAP sales documents table VBAK.
Here is our sample ABAP code to build timestamp variable from date and time parts (erdat and erzet fields) of SAP VBAK table.
The output is in form YYYYMMDDHHMISS