quinta-feira, 17 de julho de 2014

SAP - SELECTION SCREEN IN ABAP

SELECTION SCREEN IN SAP ABAP


In this SAP ABAP tutorial I will show you what selection screen actually means and there related ABAP statements . Selection screen refers to special type of screen which takes input from the user . These screen allows the user to enter either a single value or multiple values for one or more fields . In simple terms , selection screen is the interface between the user and the program .

Selection screen are generated programmatically using ABAP statements ( like parameters , select options ) and has screen number 1000 .

There are three ABAP statements for defining selection screen :

1.   Parameters

2.   Select-options

3.   Selection-screen

Please refer to the following diagram :


Selection Screen in SAP ABAP
Selection Screen in SAP ABAP




  

 
1.Parameters : Parameters refers to the variable which takes single value as input from the selection screen.
 
For example : Parameters : p_matnr type lips-matnr.
 
2.Select-options : Select-options refers to the variable which takes single or multiple values as input from the selection screen . Select-options is basically an internal table with the following fields :
 
Sign , Option , Low and High.
 
For example :
 
SELECT-OPTIONS : so_werks FOR likp-werks.
 
3. Selection-screen : This statement is used for two purpose
 
a. Formatting the selection screen.
 
For example suppose the user wants two radio button in the same line or the user wants the text name to be much bigger .
 
SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN COMMENT 1(31) text-099 FOR FIELD p_o_n_rt.
PARAMETERS : p_o_n_rt RADIOBUTTON GROUP rad1 DEFAULT 'X' .
SELECTION-SCREEN COMMENT 40(11) text-101 FOR FIELD p_ooh_p.
PARAMETERS : p_ooh_p RADIOBUTTON GROUP rad1. 

SELECTION-SCREEN COMMENT 59(13) text-102 FOR FIELD p_ret_p.
PARAMETERS : p_ret_p RADIOBUTTON GROUP rad1 .
SELECTION-SCREEN END OF LINE.
 
b. Defining user specific selection-screen.
 
SELECTION-SCREEN BEGIN OF SCREEN <numb> [TITLE <title>] [AS WINDOW].
 
“Your codes
 
SELECTION-SCREEN END OF SCREEN <numb>.



Atenciosamente,
Leonardo Rocha

Nenhum comentário:

Postar um comentário

Informações de contato
Nome:
E-mail:
Telefone: