然后,我们在创建cl_gui_alv_grid对象的时候,注册这个方法。 DATA:lo_alvTYPE REF TOcl_gui_alv_grid.CREATE OBJECTlo_alvEXPORTINGi_parent=cl_gui_container=>screen0.SET HANDLER:on_toolbarFORlo_alv.CALL METHODlo_alv->set_table_for_first_displayEXPORTINGi_structure_name='SFLIGHT'CHANGINGit_outtab=...
ls_button-icon = '@0D@'. APPEND ls_button TO e_object->mt_toolbar.ENDMETHOD. 然后,我们在创建cl_gui_alv_grid对象的时候,注册这个方法。 DATA: lo_alv TYPE REF TO cl_gui_alv_grid.CREATE OBJECT lo_alv EXPORTING i_parent = cl_gui_container=>screen0.SET HANDLER: on_toolbar FOR lo_al...
DATA: lo_dialog_container TYPE REF TO cl_gui_dialogbox_container, lo_input_num1 TYPE REF TO cl_gui_simple_element, lo_input_num2 TYPE REF TO cl_gui_simple_element, lo_button_add TYPE REF TO cl_gui_button, lo_button_multiply TYPE REF TO cl_gui_button. CREATE OBJECT lo_dialog_conta...
然后,我们在创建cl_gui_alv_grid对象的时候,注册这个方法。 DATA:lo_alvTYPEREFTOcl_gui_alv_grid.CREATEOBJECTlo_alvEXPORTINGi_parent=cl_gui_container=>screen0.SETHANDLER:on_toolbarFORlo_alv.CALLMETHODlo_alv->set_table_for_first_displayEXPORTINGi_structure_name='SFLIGHT'CHANGINGit_outtab=lt_sfligh...
go_dialog_cont TYPE REF TO cl_gui_dialogbox_container. 然后,在at selection output事件中创建我们的对话框和 ALV GRID: AT SELECTION-SCREEN OUTPUT. IF go_dialog_cont IS INITIAL. CREATE OBJECT go_dialog_cont EXPORTING container_name = 'MY_DIALOG_CONTAINER'. ...
is it possible to use CL_GUI_CONTAINER=>screen0 as cl_gui_splitter_container's attribute parent value??? and i find that there are 10 attributes named screen0 to screen9 in class CL_GUI_CONTAINER,will you tell me the usage of these attributes? now i only konw that ,you could set...
* Create docking container CREATE OBJECT go_docking EXPORTING parent = cl_gui_container=>screen0 ratio = 90 EXCEPTIONS OTHERS = 6. IF sy-subrc <> 0. * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4. ENDIF. * Create ALV grid CREA...
首先,我们来了解一下 cl_gui_dialogbox_container 类。这是 SAP 的一个类,用于创建一个对话框容器,通常用于在对话框中显示一些 GUI 控件,例如:图形、控件等。cl_gui_dialogbox_container 对象主要用于在模态对话框中创建自定义容器,它允许我们将 GUI 控件(如 ALV GRID,HTML Viewer 等)嵌入到模态对话框...
go_dialog_cont TYPEREFTOcl_gui_dialogbox_container. 然后,在at selection output事件中创建我们的对话框和 ALV GRID: ATSELECTION-SCREEN OUTPUT. IF go_dialog_contISINITIAL.CREATEOBJECT go_dialog_cont EXPORTING container_name='MY_DIALOG_CONTAINER'.CREATEOBJECT go_custom_cont ...
CREATE OBJECT go_alv EXPORTING i_parent = cl_gui_container=>screen0. SELECT * FROM sflight INTO TABLE gt_sflight. go_alv->set_table_for_first_display( EXPORTING i_structure_name = 'SFLIGHT' CHANGING it_outtab = gt_sflight ). CREATE OBJECT go_alv_cell_merging EXPORTING alv_grid = ...