메뉴 건너뛰기

SAP 한국 커뮤니티



교재에서 써 있는데로

 

변경하였는데 실행을 하면 빈 화면만 나옵니다..

 

---------------------------------------------------------------------------------------------------------------------

작성소스

*&---------------------------------------------------------------------*
*& Report  Z18_002_DO                                                  *
*&                                                                     *
*&---------------------------------------------------------------------*
*&                                                                     *
*&                                                                     *
*&---------------------------------------------------------------------*

report  z18_002_do                    .

*컨테이너 참조변수
data : g_docking type ref to cl_gui_docking_container.

*ALV 인스턴스
data : g_grid type ref to cl_gui_alv_grid.

*
data : gt_zsdv0004 type table of zsdv0004.

data : gt_sflight type table of sflight.

start-of-selection.

*  select * from zsdv0004 into table gt_zsdv0004.
  select * from sflight into table gt_sflight up to 25 rows.

call screen 100.


*&---------------------------------------------------------------------*
*&      Module  INIT_CON  OUTPUT
*&---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
module init_con output.

*if g_docking is initial.
check g_docking is initial.
  create object g_docking
    exporting
      repid = sy-repid
      dynnr = sy-dynnr
      extension = 800.

  create object g_grid
    exporting
      i_parent = g_docking.

*  call method g_grid->set_table_for_first_display
*    exporting
*      i_structure_name = 'zsdv0004'
*    changing
*      it_outtab = gt_zsdv0004.

  call method g_grid->set_table_for_first_display
             exporting i_structure_name = 'SFLIGHT'
             changing it_outtab = gt_sflight.
*endif.

endmodule.                 " INIT_CON  OUTPUT

 

===============================================================================

스크린 100 생성하였구요..

PROCESS BEFORE OUTPUT.
* MODULE STATUS_0100.
  MODULE INIT_CON.
PROCESS AFTER INPUT.
* MODULE USER_COMMAND_0100.

================================================================================

 

실행을 하면 빈 화면만 나옵니다 ㅜㅜ

 

해결방법좀 알려주세요.