abap screnn螢幕程式設計,對螢幕中的欄位追加多選search help

SAP騎士發表於2010-03-10

在abap screnn螢幕程式設計中,對螢幕中的欄位追加多選search help F4

用子螢幕的方法實現,

[ABAP] Add select-options screen to screen

1 、定義select-options screen

TABLES: t001.
DATA: number(4) TYPE n VALUE '1100'.
SELECTION-SCREEN BEGIN OF SCREEN 1100 AS SUBSCREEN.
SELECTION-SCREEN BEGIN OF BLOCK block_0 WITH FRAME. TITLE text-000.
SELECT-OPTIONS so_bukrs FOR t001-bukrs.
SELECTION-SCREEN END OF BLOCK block_0.
SELECTION-SCREEN END OF SCREEN 1100.

2、定義螢幕100
在螢幕100加入一個子螢幕sub_screen: sub1

3、定義螢幕100 BPO
PROCESS BEFORE OUTPUT.
MODULE status_0100.
CALL SUBSCREEN: sub1 INCLUDING sy-repid number.

4定義螢幕100 PAI
PROCESS AFTER INPUT.
CALL SUBSCREEN: sub1.
MODULE exit_command AT EXIT-COMMAND.
MODULE user_command_0100.

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/17204926/viewspace-629045/,如需轉載,請註明出處,否則將追究法律責任。

相關文章