PARAMETERS: p_srv_nr TYPE asmd-asnum. "bapisrvpar-service.
START-OF-SELECTION.
DATA: lv_service_info TYPE bapisrv.
DATA: it_servicetextlines TYPE STANDARD TABLE OF bapisrvtxt WITH DEFAULT KEY.
DATA: it_bapiret2 TYPE STANDARD TABLE OF bapiret2 WITH DEFAULT KEY.
CALL FUNCTION 'BAPI_SERVICE_GET_DETAIL'
EXPORTING
servicenumber = p_srv_nr
IMPORTING
servicegeneraldata = lv_service_info
TABLES
servicetextlines = it_servicetextlines
return = it_bapiret2.
cl_demo_output=>write_data( p_srv_nr ).
cl_demo_output=>write_data( lv_service_info ).
cl_demo_output=>write_data( it_servicetextlines ).
cl_demo_output=>write_data( it_bapiret2 ).
* 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 = 'Leistungsstammsatz'
html_string = lv_html
container = cl_gui_container=>default_screen ).
* cl_gui_container=>default_screen erzwingen
WRITE: space.