Selection Screens

L&T Information Technology Limited - Confidential

The SELECT-OPTIONS Statement

SELECT-OPTIONS <selection name> FOR <field name> [DEFAULT <value> [TO <value>]].

L&T Information Technology Limited - Confidential

Selection Tables SIGN I I E OPTION BT EQ GE LOW 3 1 7 HIGH 10 L&T Information Technology Limited .Confidential .

Multi-Row Selection Tables Click Here To get Here L&T Information Technology Limited .Confidential .

Confidential .Creating User-Friendly Selection Texts Maintain Text Elements Selection Screen L&T Information Technology Limited .

Confidential . SY-INDEX. WRITE: / ENDDO. CHECK S1. DO 10 TIMES. Selection Table Contents: I BT 1 10 E EQ 5 E BT 7 8 L&T Information Technology Limited .The CHECK Statement SELECT-OPTIONS S1 FOR SY-INDEX.

BSIDDMBTR. COUNTER = 0. GET KNA1. L&T Information Technology Limited . WRITE: / BSID-BUDAT. REJECT ‘KNA1’. ENDIF. GET KNA1 LATE. IF COUNTER > 3. BSID. The REJECT statement immediately GET BSID. moves to the specified record (in this case KNA1). WRITE: / KNA1-KUNNR. ADD 1 TO COUNTER. KNA1NAME1.Confidential .The REJECT Statement TABLES: KNA1.

Confidential .Declaring Fields with PARAMETERS L&T Information Technology Limited .

Creating Parameters as Checkboxes PARAMETERS: INCL_INV AS CHECKBOX DEFAULT ‘X’. ENDSELECT.Confidential . SELECT * FROM KNA1. IF INCL_INV = ‘X’. ENDIF. PERFORM GET_AND_WRITE_INV. KNA1-NAME1. L&T Information Technology Limited . WRITE: / KNA1-KUNNR. TABLES: KNA1.

L&T Information Technology Limited . SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001. ENDIF. PERFORM WRITE_ONE_TIME_CUST. PERFORM WRITE_REG_CUST. SELECTION-SCREEN END OF BLOCK B1. ELSEIF REGULAR = ‘X’. PERFORM WRITE_CUST.Confidential .Creating Parameters as Radio Buttons TABLES: KNA1. PARAMETERS: ONE_TIMERADIOBUTTON RADIOBUTTON GROUP GP1. RADIOBUTTON GROUP GP1 BOTH DEFAULT ‘X’. IF ONE_TIME = ‘X’. ELSE. REGULAR GROUP GP1.

L&T Information Technology Limited .Attaching Matchcodes to Parameters PARAMETERS: CUSTNO LIKE KNA1-KUNNR MATCHCODE OBJECT DEBI.Confidential .

SELECTION-SCREEN COMMENT [/] <pos(len)> <name> [FOR FIELD <f>]. : : SELECTION-SCREEN END OF LINE. SELECTION-SCREEN ULINE [ [/] <pos(len)>]. L&T Information Technology Limited . SELECTION-SCREEN BEGIN OF LINE.Formatting the Selection Screen SELECTION-SCREEN <option>. SELECTION-SCREEN POSITION <pos>. SELECTION-SCREEN SKIP <n>.Confidential .

Confidential .Creating Pushbuttons on the Application Toolbar L&T Information Technology Limited .

The Screen Fields Table: SSCRFIELDS L&T Information Technology Limited .Confidential .

Confidential .Creating Pushbuttons on the Selection Screen L&T Information Technology Limited .

User Messages L&T Information Technology Limited .Confidential .

Confidential . program is terminated.Error Messages at the Selection Screen Using the AT SELECTION-SCREEN event. AUTHORITY-CHECK OBJECT ‘F_KNA1_BUK’ ID ‘ACTVT’ DUMMY ID ‘BUKRS’ FIELD BUKRS. L&T Information Technology Limited . valid data is entered or the MESSAGE E000 WITH BUKRS. AT SELECTION SCREEN. access to the output can be prevented until valid data is entered on the selection screen. The selection screen is continuously redisplayed until IF SY-SUBRC <> 0. ENDIF.

Confidential .Table T100: Messages L&T Information Technology Limited .

Confidential . Example MESSAGE E001 WITH KNA1-KUNNR KNA1-BUKRS. MESSAGE <type><number> [WITH <up to four variables>].Syntax of the MESSAGE Statement REPORT <report name> MESSAGE-ID <message-ID>. Message Types A Abend E Error I Information S Success W Warning L&T Information Technology Limited .

Confidential . the Maintain Message Class screen appears. 3) After maintaining the message class and clicking on the MESSAGES pushbutton . L&T Information Technology Limited . 2) After being prompted to create the message class.Creating Message IDs and Messages 1) Double-click on the newly entered Message ID. the Maintain Message screen appears.

Sign up to vote on this title
UsefulNot useful