convert between date time into timestamp
You can use any of these three options to the functions to convert between date, time and timestamp.
- Use CL_ABAP_TSTMP.
- Use CONVERT_INTO_TIMESTAMP
- Use the following keycode
data lv_tz type ttzz-tzone value is initial.
data lv_ts type xsddatetime_z.
data lv_date type sy-datum .
data lv_time type sy-uzeit.
convert date sy-datum time sy-uzeit
into time stamp lv_ts time zone lv_tz .
convert time stamp lv_ts time zone lv_tz
into date lv_date time lv_time .
You may also like
- ‘Extended job selection’ in SM37
Sometimes we need extra search criteria for job selection. For this purpose we use 'Extended Job Selection' button in SM37. If you want to directly go into this functionality you can use […]
- files under an SAP directory
Files under a specific directory of SAP directories can be easily found by the following function module.It returns a list of files with their names and sizes.
- add metadata to PDF document in ABAP
Recently we have encountered a security problem during sending PDF documents to external mail addresses. Working on the issue we detected that the reason why we can not send PDF […]