DATA: lv_utc TYPE timestamp. DATA: lv_date TYPE d. DATA: lv_time TYPE t. START-OF-SELECTION. GET TIME STAMP FIELD lv_utc. TRY. cl_abap_tstmp=>systemtstmp_utc2syst( EXPORTING utc_tstmp = lv_utc IMPORTING syst_date = lv_date syst_time = lv_time ). WRITE: / |UTC: { lv_utc TIMESTAMP = USER }|. WRITE: / |System-Datum: { lv_date DATE = USER }|. WRITE: / |System-Zeit: { lv_time TIME = USER }|. CATCH cx_root INTO DATA(e_text). WRITE: / e_text->get_text( ). ENDTRY.
Kategorien
-
Neueste Beiträge
- [ABAP] Prüfen, ob GUI UTF-8 unterstützt
- [ABAP] Fiori: Technische Kataloge lesen
- [ABAP] Fiori: Details zu techn. Katalogen lesen
- [ABAP] RFC-Verbindung prüfen
- [SAP] ABAP Cloud Developer Trial 2022 SP01 unter Windows installieren
- [ABAP] GTT: Globale Temporäre Tabellen zum Zwischenspeichern von Daten
- [SAP] ABAP Unit Testing – Writing Testable Code for ABAP
- [ABAP] ABAP2XLSX: Inhalt einer Worksheet in eine interne Tabelle schreiben
- [ABAP] Suchhilfe zu DDIC-Feld bestimmen
- Crypto-Währungen