Открыть FIori приложение в Dynpro
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
PARAMETERS: p_semobj TYPE /ui2/v_semobj-sem_obj LOWER CASE DEFAULT 'SalesOrder'. PARAMETERS: p_semact TYPE char80 LOWER CASE DEFAULT 'displayFactSheet'. PARAMETERS: p_sempar TYPE char80 LOWER CASE DEFAULT 'SalesOrder'. PARAMETERS: p_parval TYPE char80 LOWER CASE DEFAULT '1'. START-OF-SELECTION. DATA(it_parameters) = VALUE tihttpnvp( ( name = 'sap-client' value = sy-mandt ) ( name = 'sap-ui-language' value = 'DE' ) ( name = 'sap-ui-appcache' value = 'false' ) ). DATA(lv_url) = /ui5/cl_theme_util=>get_server_url( path = |/sap/bc/ui5_ui5/ui2/ushell/shells/abap/FioriLaunchpad.html| parameters = it_parameters always_https = abap_false ). * Шаблон для указания параметров семантического объекта: * #<semantic object>-<action>?<semantic object parameter>=<value1> * Пример: * #SalesOrder-displayFactSheet?SalesOrder=1 lv_url = |{ lv_url }#{ p_semobj }-{ p_semact }?{ p_sempar }={ p_parval }|. cl_abap_list_layout=>suppress_toolbar( ). DATA(o_hv) = NEW cl_gui_html_viewer( parent = cl_gui_container=>default_screen ). o_hv->show_url( url = CONV swk_url( lv_url ) in_place = abap_true ). WRITE: space. |