0% found this document useful (0 votes)
11 views4 pages

Selection - Screen - Doc

The document outlines the design and functionality of selection screens in ABAP, detailing how to create input fields, checkboxes, and radio buttons using parameters and select-options for user input. It also describes various classical and interactive report events, including their purposes and syntax, as well as techniques for managing data and displaying reports. Key events such as initialization, selection output, and end-of-page are highlighted to illustrate the flow of report execution.

Uploaded by

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

Selection - Screen - Doc

The document outlines the design and functionality of selection screens in ABAP, detailing how to create input fields, checkboxes, and radio buttons using parameters and select-options for user input. It also describes various classical and interactive report events, including their purposes and syntax, as well as techniques for managing data and displaying reports. Key events such as initialization, selection output, and end-of-page are highlighted to illustrate the flow of report execution.

Uploaded by

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

Selection-Screen:

 Designed for users to enter the inputs ( Single or Range inputs ),


 Defined using ABAP Statements

Statements for designing of Selection screen:

1. Parameter:

 Used to define single field on selection screen


 Used to create Input fields, Checkboxes, Radio buttons

Syntax:

1. Input Field:

PARAMETERS: p_matnr TYPE mara-matnr.

2. Check Box:

PARAMETERS:p_sloc1 AS CHECKBOX.

3. Radio-Button:

PARAMETERS:p_plant1 RADIOBUTTON GROUP rbg DEFAULT 'X' USERCOMMAND uc1,


p_plant2 RADIOBUTTON GROUP rbg.

2. Select-Options:

 User can enter range of values using select-options


 When select-options executed, Internal table with four components
(SIGN,OPTION,LOW,HIGH ) is created

Syntax:

SELECT-OPTIONS: s_matnr FOR matnr.


Classical Report Events:

1. Load of Program
 Used to load the program in memory for execution
 Internal event, we can’t see
2. Initialization
 Used to initialize default values to program & selection screen variables
3. At selection output
 Used to modify the selection screen dynamically based on user actions
 Is triggered or executed for every action on selection screen
4. At selection on field
 Used to validate a single input field on selection screen
 Error field will be highlighted and the remaining fields will be disabled
5. At selection screen on Value request
 Used to provide search help for input field
 Used to display list of values and allows the users to select and return value
 Is triggered whenever user clicks on search help button (F4 )
6. At selection screen on Help request
 Used to provide help information for input field
 Is triggered whenever user clicks on help button ( F1 )
7. At selection screen
 Used to validate multiple fields on selection screen
 Error field is highlighted and all the remaining fields will be enabled.
8. Start of selection
 Default event
 Used to write the original business logic, select statements
 Also used to indicate the starting point of the program
9. End of Selection
 Used to indicate the start of selection has been ended
10. Top of page
 Used to display the content page heading
 Is triggered after the first WRITE statement
11. End of page
 Used to display the footer information

Output of Order of Events:

TOP-OF-PAGE INITILIZATIONSTART-OF-SELECTIONEND-OF-SELECTION
Reports:

 Report is a presentation of data in an organized structure.


 Reports used to display large amount of data

Interactive Report Events:

Total no of list in Interactive Reports:

Basic List – 1 and Secondary List - 20

1. At Line-selection
 At line selection event triggered, When user double click on any list line
 Syntax: AT LINE-SELECTION
2. At User command
 At user command event triggered, When user click on custom buttons of the GUI
 Syntax: AT USER-COMMAND
3. At PF Status
 At PF Status event triggered, When user click on any function buttons
 Syntax: AT PF
4. Top of page during line selection
 Used to print the heading for secondary list in interactive report
 Syntax: TOP OF PAGE DURING LINE SELECTION

Interactive Report Techniques:

1. HIDE:
 HIDE Statement stores selected line details from Basic list
 Syntax: HIDE <Work Area>
2. GET CURSOR
 GET CURSOR statement is used to get cursor position with field name & value
 Syntax: GET CURSOR FIELD <Field name variable> VALUE <Field value variable>

When TOP-OF-PAGE event triggers?

 Top of page event will be triggered, when first ULINE, WRITE or SKIP statement occurs in the
program

Can we set the page header to detail list?

 Yes. Using TOP-OF-PAGE DURING LINE-SELECTION event


How to pass the data from one internal table to another internal table?

 Both the internal table must have same structure


 ITAB2[] = ITAB1[]
 MOVE itab1 to itab2

First event trigger in report program?

 LOAD-OF-PROGRAM
 INITIALIZATION

Internal table has 10 records. How to print End-of-page after 2 records?

 Mention LINE-COUNT N(n) in REPORT program


 N – Number of lines for the page
 n – Number of lines reserved for the footer
 In END-OF-PAGE event, we can write the code to display in the footer

You might also like