PARAMETERS: p_url TYPE swk_url DEFAULT 'https://google.de'.
START-OF-SELECTION.
* https://help.sap.com/docs/SAP_NETWEAVER_731_BW_ABAP/70396d7dec4c4f19b9ca3b2e47559d12/493278eee8c55aabe10000000a42189d.html
TRY.
DATA: o_viewer TYPE REF TO i_oi_document_viewer.
* Container-Control-Factory-Klasse
c_oi_container_control_creator=>get_document_viewer( IMPORTING viewer = o_viewer ).
* Standardcontainer nutzen
o_viewer->init_viewer( parent = cl_gui_container=>default_screen ).
* Dokument inplace anhand einer URL anzeigen
o_viewer->view_document_from_url( document_url = p_url
show_inplace = abap_true ).
WRITE: space.
CATCH cx_root.
ENDTRY.