把selection screen當子螢幕放到普通螢幕上

^ω^SAP傻X^o^發表於2024-06-21
REPORT zly_subscreen.

TYPES:BEGIN OF ty_ord,
        object_id    TYPE crmt_object_id,
        process_type TYPE crmt_process_type,
      END OF ty_ord.
DATA:gt_ord TYPE TABLE OF ty_ord,
     gw_ord TYPE ty_ord,
     gv_ok  TYPE sy-ucomm.

"定義選擇螢幕子螢幕
SELECTION-SCREEN BEGIN OF SCREEN 1001 AS SUBSCREEN.
SELECT-OPTIONS:s_obj FOR gw_ord-object_id.
SELECT-OPTIONS:s_typ FOR gw_ord-process_type.
SELECTION-SCREEN END OF SCREEN 1001.



INITIALIZATION.

  CALL SCREEN 9000.

螢幕上定義子螢幕範圍

邏輯流裡呼叫子螢幕

效果:

相關文章