* Tabelle TBTCP (Step-Uebersicht eines Batch-Jobs)
* Reportname
DATA(lv_progname) = VALUE tbtcp-progname( ).
* Einplanungsdatum
DATA(lv_date) = VALUE tbtcp-sdldate( ).
* Einplanungszeit
DATA(lv_time) = VALUE tbtcp-sdltime( ).
SELECT-OPTIONS: so_prog FOR lv_progname.
SELECT-OPTIONS: so_date FOR lv_date.
SELECT-OPTIONS: so_time FOR lv_time.
START-OF-SELECTION.
SELECT *
INTO TABLE @DATA(it_job)
FROM tbtcp
WHERE progname IN @so_prog
AND sdldate IN @so_date
AND sdltime IN @so_time.
* Hier Objekte für die Ausgabe hinzufügen
cl_demo_output=>write_data( it_job ).
* HTML-Code vom Demo-Output holen
DATA(lv_html) = cl_demo_output=>get( ).
* Daten im Inline-Browser im SAP-Fenster anzeigen
cl_abap_browser=>show_html( EXPORTING
title = 'Daten'
html_string = lv_html
container = cl_gui_container=>default_screen ).
* cl_gui_container=>default_screen erzwingen
WRITE: space.