소스 올리겠습니다
============================================================================
Main Source】
DATA: con1_ref TYPE REF TO cl_gui_custom_container,
g_grid TYPE REF TO cl_gui_alv_grid,
gt_sflight TYPE TABLE OF sflight,
ok_code TYPE sy-ucomm.
INCLUDE z18_000_pbo.
INCLUDE z18_000_pai.
START-OF-SELECTION.
SELECT * FROM sflight
INTO TABLE gt_sflight
UP TO 25 ROWS.
CALL SCREEN 100.
CALL METHOD g_grid->set_table_for_first_display
EXPORTING
i_structure_name = 'SFLIGHT'
CHANGING
it_outtab = gt_sflight.
Include z18_000_pbo】
MODULE init_con OUTPUT.
IF con1_ref IS INITIAL.
CREATE OBJECT con1_ref
EXPORTING
container_name = 'CON1'.
CREATE OBJECT g_grid
EXPORTING
i_parent = con1_ref.
ENDIF.
ENDMODULE. " init_con OUTPUT
Include z18_000_pai】
MODULE user_command_0100 INPUT.
CASE ok_code.
WHEN 'BACK'.
LEAVE TO SCREEN 0.
WHEN 'EXIT'.
LEAVE PROGRAM.
ENDCASE.
ENDMODULE. " user_command_0100 INPUT
========================================================================
Screen 에 Container를 그려두었구요... Container Name : CON1로 해놓았습니다
소스 미리 안 올린점 사과드리고요...답변부탁드립니다~~
CALL METHOD g_grid->set_table_for_first_display
EXPORTING
i_structure_name = 'SFLIGHT'
CHANGING
it_outtab = gt_sflight.
위의 소스를 다음 소스 밑으로 넣으세요
CREATE OBJECT g_grid
EXPORTING
i_parent = con1_ref.