Paremeters :사용자가 값을 입력하도록 Input 필드를 정의
다음 프로그램은 파라미터의 모든 속성에 대해서 정리한 스크립트
tables : sflight.
data : l_fname(20) type c.
PARAMETERS: P_1 DEFAULT 'A',
P_2 TYPE CHAR10,
P_3 TYPE C LENGTH 3 DEFAULT '123',
P_4 TYPE P DECIMALS 2 DEFAULT '123.456789',
P_5 LIKE SFLIGHT-CARRID,
P_6 MEMORY ID SCL,
P_7 MATCHCODE OBJECT ZCARRID,
P_8 MODIF ID mid,
P_9 NO-DISPLAY,
P_10 DEFAULT 'a' LOWER CASE,
P_11 OBLIGATORY,
P_12 AS CHECKBOX,
P_13 RADIOBUTTON GROUP radi,
P_13_2 RADIOBUTTON GROUP radi,
P_14(10) VISIBLE LENGTH 3 DEFAULT '1234567890',
P_15 like sflight-carrid VALUE CHECK,
P_16 LIKE (l_fname),
P_17 like sflight-carrid as listbox VISIBLE LENGTH 3,
P_18 AS CHECKBOX USER-COMMAND ABC.
* USED IN LDB.
* P_18 for table sflight,
* P_19 FOR NODE sflight,
* P_20 AS SEARCH PATTERN,
* P_21 VALUE-REQUEST .
* P_22 HELP-REQUEST.
참조 : 이지 아밥 책
Select Options : 2개 이상의 Input 필드를 이용해 다양한 조건값을 입력
TABLES : SFLIGHT.
DATA : L_SO TYPE CHAR20.
SELECT-OPTIONS : S_1 FOR SFLIGHT-CARRID DEFAULT 'AC',
S_2 FOR SFLIGHT-CARRID DEFAULT 'AA*'
OPTION EQ SIGN I,
S_3 FOR L_SO DEFAULT '1111' TO '9999',
S_4 FOR L_SO DEFAULT '1111' TO '9999'
OPTION BT SIGN E,
S_5 FOR SFLIGHT-CARRID MEMORY ID SCL,
S_6 FOR SFLIGHT-CARRID MATCHCODE OBJECT ZCARRID,
S_7 FOR SFLIGHT-CARRID MODIF ID car,
S_8 FOR SFLIGHT-CARRID NO-DISPLAY,
S_9 FOR SFLIGHT-CARRID LOWER CASE,
S_10 FOR SFLIGHT-CARRID OBLIGATORY,
S_11 FOR SFLIGHT-CARRID NO-EXTENSION,
S_12 FOR SFLIGHT-CARRID NO INTERVALS,
S_13 FOR SFLIGHT-CARRID VISIBLE LENGTH 1.
참조 : 이지 아밥 책
다음 프로그램은 파라미터의 모든 속성에 대해서 정리한 스크립트
tables : sflight.
data : l_fname(20) type c.
PARAMETERS: P_1 DEFAULT 'A',
P_2 TYPE CHAR10,
P_3 TYPE C LENGTH 3 DEFAULT '123',
P_4 TYPE P DECIMALS 2 DEFAULT '123.456789',
P_5 LIKE SFLIGHT-CARRID,
P_6 MEMORY ID SCL,
P_7 MATCHCODE OBJECT ZCARRID,
P_8 MODIF ID mid,
P_9 NO-DISPLAY,
P_10 DEFAULT 'a' LOWER CASE,
P_11 OBLIGATORY,
P_12 AS CHECKBOX,
P_13 RADIOBUTTON GROUP radi,
P_13_2 RADIOBUTTON GROUP radi,
P_14(10) VISIBLE LENGTH 3 DEFAULT '1234567890',
P_15 like sflight-carrid VALUE CHECK,
P_16 LIKE (l_fname),
P_17 like sflight-carrid as listbox VISIBLE LENGTH 3,
P_18 AS CHECKBOX USER-COMMAND ABC.
* USED IN LDB.
* P_18 for table sflight,
* P_19 FOR NODE sflight,
* P_20 AS SEARCH PATTERN,
* P_21 VALUE-REQUEST .
* P_22 HELP-REQUEST.
참조 : 이지 아밥 책
Select Options : 2개 이상의 Input 필드를 이용해 다양한 조건값을 입력
TABLES : SFLIGHT.
DATA : L_SO TYPE CHAR20.
SELECT-OPTIONS : S_1 FOR SFLIGHT-CARRID DEFAULT 'AC',
S_2 FOR SFLIGHT-CARRID DEFAULT 'AA*'
OPTION EQ SIGN I,
S_3 FOR L_SO DEFAULT '1111' TO '9999',
S_4 FOR L_SO DEFAULT '1111' TO '9999'
OPTION BT SIGN E,
S_5 FOR SFLIGHT-CARRID MEMORY ID SCL,
S_6 FOR SFLIGHT-CARRID MATCHCODE OBJECT ZCARRID,
S_7 FOR SFLIGHT-CARRID MODIF ID car,
S_8 FOR SFLIGHT-CARRID NO-DISPLAY,
S_9 FOR SFLIGHT-CARRID LOWER CASE,
S_10 FOR SFLIGHT-CARRID OBLIGATORY,
S_11 FOR SFLIGHT-CARRID NO-EXTENSION,
S_12 FOR SFLIGHT-CARRID NO INTERVALS,
S_13 FOR SFLIGHT-CARRID VISIBLE LENGTH 1.
참조 : 이지 아밥 책