Code: Alles auswählen.
DATA log TYPE dbtablog.
DATA ls_log TYPE ylog. " struktur DBTABLOG + Deine Tabelle
DATA:
buffer TYPE xstring,
conv TYPE REF TO cl_abap_conv_in_ce.
SELECT * FROM dbtablog INTO log
WHERE
tabname = 'Deine Tabelle' AND
logdate GE date.
CLEAR ls_log.
MOVE-CORRESPONDING log TO ls_log.
conv = cl_abap_conv_in_ce=>create(
encoding = 'DEFAULT'
endian = 'L'
input = log-logdata
).
*MANDT 3 Character
CALL METHOD conv->read(
EXPORTING n = 3
IMPORTING data = ls_log-mandt
).
*TPLNR 30 Character
CALL METHOD conv->read(
EXPORTING n = 30
IMPORTING data = ls_log-tplnr
).
*BRGT Decimal Feld
CALL METHOD conv->read(
IMPORTING data = ls_log-brgt
).
etc.
etc.
FREE conv.
APPEND ls_log TO gt_log.
Code: Alles auswählen.
* Baustein zum Konvertieren Xstring to Bin Table
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
EXPORTING
buffer = lbuffer
TABLES
binary_tab = it_content.
Die lesen wie der Name schon sagt, die Daten aus einem Archiv.black_adept hat geschrieben:1.) ARCHIV_CONNECTINFO_GET_META
2.) ARCHIVOBJECT_GET_TABLE