0% found this document useful (0 votes)
85 views11 pages

Selection Screen

This document discusses the components of a SELECTION-SCREEN in ABAP. It describes parameters, select-options, and selection-screen commands that can be used to design input screens. Parameters are used to create input fields, checkboxes, and radio buttons. Select-options create two input fields for entering a range of values from a table. Selection-screen commands include blocks, lines, and positioning of fields and labels. Variants can store selection screen data.

Uploaded by

Sourabh Narkar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
85 views11 pages

Selection Screen

This document discusses the components of a SELECTION-SCREEN in ABAP. It describes parameters, select-options, and selection-screen commands that can be used to design input screens. Parameters are used to create input fields, checkboxes, and radio buttons. Select-options create two input fields for entering a range of values from a table. Selection-screen commands include blocks, lines, and positioning of fields and labels. Variants can store selection screen data.

Uploaded by

Sourabh Narkar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 11

*SELECTION-SCREEN*

BY ----Arjun
Overview

SELECTION-SCREEN:


An input screen is called SELECTION – SCREEN.


For Designing the Selection Screen , we have the following
Statements

1. Parameters .

2. Select – Options.

3. Selection – Screen Commands.

 SAP AG 2001, Smart Forms - the Form Printing Solution,


Claudia Binder / Jens Stumpe 2

1.PARAMETERS.

Parameters are used to create input fields , CheckBoxes ,

RadioButtons on the Selection – Screen.


Syntax:


PARAMETERS < P_NAME> TYPE <TABLE – FIELDNAME>.

PARAMETERS <P_NAME> AS CHECKBOX.

PARAMETERS <P_NAME> RADIOBUTTONGROUP<GROUP NAME>

<P_NAME2> RADIOBUTTONGROUP<GROUP NAME>

<P_NAME3> RADIOBUTTONGROUP<GROUP NAME>

.

.

.

 SAP AG 2001, Smart Forms - the Form Printing Solution,


Claudia Binder / Jens Stumpe 3

EX ON PARAMETERS.


DATA : I_KNA1 TYPE TABLE OF KNA1.

DATA : WA_KNA1 TYPE KNA1.


PARAMETERS P_LAND1 TYPE KNA1-LAND1.


SELECT * FROM KNA1 INTO TABLE I_KNA1

WHERE LAND1= P_LAND1.


LOOP AT I_KNA1 INTO WA_KNA1.

WRITE:/ WA_KNA1 – KUNNR,

WA_KNA1 – LAND1,

WA_KNA1 – NAME1,

WA_KNA1 – ORT01.

ENDLOOP.

 SAP AG 2001, Smart Forms - the Form Printing Solution,


Claudia Binder / Jens Stumpe 4

EX ON CHECKBOXES.

PARAMETERS P_CHKBOX AS CHECKBOX.


If P_CHKBOX = ‘X’.

Write:/ CheckBox is Selected.

Else

write:/ checkbox is not selected.

Endif.

EX ON RADIOBUTTONS.

PARAMETERS: P_RB1 RADIOBUTTON GROUP AAA,

P_RB2 RADIOBUTTON GROUP AAA DEFAULT ‘X’.

If P_RB1 = ‘x’.

write:/ ‘RB1’ is selected.

Else

write:/ ‘RB2’ is selected.

Endif.

 SAP AG 2001, Smart Forms - the Form Printing Solution,


Claudia Binder / Jens Stumpe 5

SELECT – OPTIONS:

Select – Options is used to create two i/p fields on the selection
screen . So that the user can enter range of values.

Syntax:


SELECT – OPTIONS <SO_NAME> FOR <TABLE-FNAME>

SELECT – OPTIONS <SO_NAME> FOR <TABLE-FNAME>

NO INTERVALS.

SELECT – OPTIONS <SO_NAME> FOR <TABLE-FNAME>

NO – EXTENSION.

SELECT – OPTIONS <SO_NAME> FOR <TABLE-FNAME>

NO INTERVALS NO – EXTENSION.

 SAP AG 2001, Smart Forms - the Form Printing Solution,


Claudia Binder / Jens Stumpe 6
In addition to a range of values, the user can also enter

1. Multiple Single Values.

2.Multiple Ranges. All these Options available when click

3.Exclude Single Values. On Multiple Selection icon on

4.Exclude Ranges. Selection – Screen.

When Ever we create Select – Option , an internel table will be created with 4 fields as
structures. The Four Fields are

1.Sign - Stores the ‘SIGN’ of a Number.

- The ‘SIGN’ can be ‘I’ (Inclusive) or ‘E’ (Exclusive / Excluds)

2.Option - Stores the Relational Operator b/w 2 no’s.

- The Operators are BT, NB, EQ, NE, LT, LE, GT, GE.

3.Low - Stores the Lower Value.

4.High - Stores the Higher Value.

 SAP AG 2001, Smart Forms - the Form Printing Solution,


Claudia Binder / Jens Stumpe 7

NOTE:

By default ‘I’ will be stored in SIGN and ‘BT’ will be stored in OPTION

Field.


EX ON SELECT – OPTIONS:

Tables KNA1.

Select – Options : S_KUNNR for KNA1-KUNNR.

Parameters : P_Dload as CheckBox.


Data: I_KNA1 type table of KNA1.

Data: WA_KNA1 type KNA1.

Select * from KNA1 into table I_KNA1 where KUNNR in S_KUNNR.

 SAP AG 2001, Smart Forms - the Form Printing Solution,


Claudia Binder / Jens Stumpe 8

If P_DLOAD = ‘X’.

Call Function ‘GUI_Download’

Exporting

FILENAME = ‘C:\KNA1.txt’

WRITE_FIELD_SEPERATOR = ‘X’

Tables

DATA_TAB = I_KNA1.


If SY-SUBRC = 0.

Message “DATA SUCCESSFULLY DOWNLOADED” Type ‘I’.

Endif.

ENDIF.

 SAP AG 2001, Smart Forms - the Form Printing Solution,


Claudia Binder / Jens Stumpe 9

SELECTION – SCREEN COMMANDS:

Below of the statements are commands which are used to design

the selection – screen.

1. Selection – Screen Begin of Block Used to create a block (or)

-- Box for fields.

--

Selection – Screen End of Block.

2. Selection – Screen ULINE ---- Displays Horizontal Line.

3. Selection – Screen Skip ----- Displays Blank Line.

 SAP AG 2001, Smart Forms - the Form Printing Solution,


Claudia Binder / Jens Stumpe 10

4. Selection – Screen Begin of line. Displays all fields in a Single

Selection – Screen End of line. Line

5. Selection – Screen Position (Width) <Comment/Text> ----- Used

to provide our own field label.


SELECTION – SCREEN TEXT:


It is used to provide a text for the selection – screen fields.


VARIANT:


It is an object to store Selection – Screen Data.

 SAP AG 2001, Smart Forms - the Form Printing Solution,


Claudia Binder / Jens Stumpe 11

You might also like