You are on page 1of 8

12/1/2017 How to Design Selection Screen in SAP ABAP

SAP ABAP AND WEBDYNPRO TUTORIALS SUBSCRIBE

SAP ABAP AND WEBDYNPRO TUTORIALS SUBSCRIBE

How to Design Selection Screen in SAP ABAP Select Topics

June 20, 2017

How to Design Selection Screen in SAP ABAP


In SAP ,we are using the selection screen to create input screen for the ABAP
Programs ,End user enter the the input values in selection screen to get his required
data .

There are three ABAP statements for de ning selection screens:

PARAMETERS for single elds


SELECT-OPTIONS for complex selections
SELECTION-SCREEN for formatting the selection screen and de ning user-speci c
selection screens.

The standard selection screen of executable programs is prede ned and has the
screen number 1000. 

You can specify any of the following elements that have already been declared in
another selection screen:

Blocks with the name block


Parameters with the name p
Selection criteria with the name selcrit
Comments with the name comm
Push buttons with the name push

Creating selection screens with Parameters

Single Input eld.


*&---------------------------------------------------------------------
*
*& Report ZSELECTIONSCREEN
*&
*&---------------------------------------------------------------------
*
*&
*&
http://www.sapabapwebdynprotutorials.com/2017/06/how-to-design-selection-screen-sap-abap.html 1/8
12/1/2017 How to Design Selection Screen in SAP ABAP

*&---------------------------------------------------------------------
*
SAP ABAP AND WEBDYNPRO TUTORIALS SUBSCRIBE

REPORT ZSELECTIONSCREEN.

Types: BEGIN OF TY_EKKO,


        EBELN TYPE EKKO-EBELN,
        BUKRS TYPE EKKO-BUKRS,
        BSTYP TYPE EKKO-BSTYP,
        BSART TYPE EKKO-BSART,
      END OF TY_EKKO.

data :it_ekko TYPE TABLE OF ty_ekko,


      wa_ekko TYPE ty_ekko.

SELECTION-SCREEN begin of BLOCK b1 WITH FRAME TITLE text-001.


PARAMETERS p_ebeln type ekko-ebeln.
SELECT-OPTIONS s_ebeln for wa_ekko-ebeln.
SELECTION-SCREEN END OF BLOCK b1.

Creating Selection screen with Select-options

We can select the data from low value to high value.

Creating selection with Block with frame and Title


http://www.sapabapwebdynprotutorials.com/2017/06/how-to-design-selection-screen-sap-abap.html 2/8
12/1/2017 How to Design Selection Screen in SAP ABAP

SAP ABAP AND WEBDYNPRO TUTORIALS SUBSCRIBE

De ning the text symbols for frame title and selection textxs(parameters)

Observe the Frame Title and Input eld labels.

Calling user de ned selection screens

CALL SELECTION-SCREEN screennumb [STARTING AT x1 y1]


          
[ENDING AT x2 y2].

Push button selection screen

SELECTION SCREEN PUSHBUTTON [/]pos(len) push


        
USER COMMAND fcode [MODIF ID key]
http://www.sapabapwebdynprotutorials.com/2017/06/how-to-design-selection-screen-sap-abap.html 3/8
12/1/2017 How to Design Selection Screen in SAP ABAP
USER-COMMAND fcode [MODIF ID key].

SAP ABAP AND WEBDYNPRO TUTORIALS SUBSCRIBE

Check boxes and Radio Buttons selection screen with Function Codes

Pushbuttons in the Application Toolbar

SELECTION-SCREEN FUNCTION KEY i .

Changing the Standard GUI Status

RS_SET_SELSCREEN_STATUS
Sets another GUI status de ned in the same ABAP program, or deactivates functions
of the standard GUI status.
RS_EXTERNAL_SELSCREEN_STATUS

Selection Screen Processing

http://www.sapabapwebdynprotutorials.com/2017/06/how-to-design-selection-screen-sap-abap.html 4/8
12/1/2017 How to Design Selection Screen in SAP ABAP

SAP ABAP AND WEBDYNPRO TUTORIALS SUBSCRIBE


The basic form of the selection screen events is the AT SELECTION-SCREEN event.
This event occurs after the run time environment has passed all input data from the
selection screen to the ABAP program. The other selection screen events allow
programmers to modify the selection screen before it is sent and speci cally check
user input.

http://www.sapabapwebdynprotutorials.com/2017/06/how-to-design-selection-screen-sap-abap.html 5/8
12/1/2017 How to Design Selection Screen in SAP ABAP

SAP ABAP AND WEBDYNPRO TUTORIALS SUBSCRIBE


Finally ,we have Learnt  ,what is selection screen ?how to create selection screen?and
syntax of selection screen.

RELATED POSTS:

Use Of Field How To Write A How To Create SAP Types Of Internal


Symbols In SAP Program In SAP ABAP Query Using Table In ABAP
ABAP Pr... ABAP ...

Related Posts Widget Reports SAP ABAP

1 comment

Add a comment as sobhan koneru

Top comments

srinivas b via Google+ 5 months ago  -  Shared publicly


 
How to Design Selection Screen in SAP ABAP
How to Design Selection Screen in SAP ABAP In SAP ,we are using the selection screen to create input screen
for the ABAP Programs ,End user enter the the input values in selection screen to get his required data . There
are three ABAP statements for de nin...

1  ·  Reply

Popular ABAP Tutorials


http://www.sapabapwebdynprotutorials.com/2017/06/how-to-design-selection-screen-sap-abap.html 6/8
12/1/2017 How to Design Selection Screen in SAP ABAP

SAP
ALV ABAP
Reports AND Questions
Interview WEBDYNPRO TUTORIALS SUBSCRIBE

April 12, 2017

SAP ABAP ALV Reports Interview Questions and Answers for Experienced  Here, i am
sharing very import real time oriented questions which are faced at several interviews
on ALV Reports to help for freshers and experienced SAP ABAP consultants with …

KEEP READING

Sample ABAP Programming Examples for Practice


July 16, 2017

Sample ABAP Programming Examples for Practice Are you beginner to ABAP
Language ,you're looking for example programs for practice .Here i collected some
sample programs from various objects in ABAP useful for beginners to improve …

KEEP READING

SAP ABAP Smartforms Interview Questions and Answers


April 13, 2017

SAP ABAP Smartforms Interview Questions and Answers

What is smartform? Smart Forms are printing forms used to print Invoice and …

KEEP READING

SAP ABAP Data Dictionary Real Time Interview Questions and


Aanswers
April 11, 2017

SAP ABAP Data Dictionary Real Time Interview Questions and Answers
These interview Questions from the SAP ABAP Data Dictionary are faced at the
different companies in the several interviews which are useful for real time …

KEEP READING

BADI Interview Questions in SAP


April 13, 2017

BADI Interview Questions in SAP A BAdI is an object-oriented enhancement option,


which makes it the most sophisticated enhancement type. The main characteristic of
http://www.sapabapwebdynprotutorials.com/2017/06/how-to-design-selection-screen-sap-abap.html 7/8
12/1/2017 How to Design Selection Screen in SAP ABAP

a BAdI is that it provides a mechanism to change the functionality of a well-de ned …


SAP ABAP AND WEBDYNPRO TUTORIALS SUBSCRIBE

KEEP READING

Like on Facebook

SAP ABAP and WebD…


304 likes

Liked Share

You and 1 other friend likes this

Powered by Blogger

Theme images by Michael Elkan

Labels

Monthly Updates

Report Abuse

Donate to Me
Donate with PayPal

Privacy Policy

http://www.sapabapwebdynprotutorials.com/2017/06/how-to-design-selection-screen-sap-abap.html 8/8

You might also like