Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Events in Report

Former Member
0 Kudos

Hi,

Can ne1 plz tell me the difference between AT SELECTION SCREEN,

AT SELECTION SCREEN OUTPUT & START OF SELECTION.

Thanks,

Mohit.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

<b>at selection-screen output.</b>

will be triggered before the appearance of the screen in case any screen is there in ur program.

<b>at selection-screen.</b>

will be triggered after u give some input in the screen in case any screen is there in ur program.

<b>start-of-selection.</b>

it is a default event which will trigger automatically with out user interaction.

check this simple code so that u can understand how these events will work.

parameters:name(10)."standard selection screen

at selection-screen output.

name = 'my name'

at selection-screen.

if name is initial."checking if the field is empty

message e001(zmsgtab).

endif.

start-of-selection.

write:/ name.

<b>reward if helpful</b>

rgds,

bharat.

6 REPLIES 6

Former Member
0 Kudos

At selection-screen output : triggered when the selection screen is loaded in memory before being displayed.

At selection-screen / <field> : before leaving the selection screen.

start-of-selection : the first event for displaying the report.

regards,

srinivas

<b>*reward for useful answers*</b>

Former Member
0 Kudos

Hi,

AT selection-screen is an event that is processed after the user interact with the screen.

At selection-screen output contains all the code that must to be executed before to display the screen.

Start-of-selection contain the main of program.

Former Member
0 Kudos

Hi Mohit,

The at selection-screen output is used to implement any input helps or default synamic values that you want to display the user on the selection screen. This event is processed before the selection screen is invoked.

The start of selection section is the first section processed after all the selection screen processing has been completed and the user selects the execute icon.

Hope this helps and please reward helpful tips!

Jereme

Former Member
0 Kudos

Hi,

<b>at selection-screen output.</b>

will be triggered before the appearance of the screen in case any screen is there in ur program.

<b>at selection-screen.</b>

will be triggered after u give some input in the screen in case any screen is there in ur program.

<b>start-of-selection.</b>

it is a default event which will trigger automatically with out user interaction.

check this simple code so that u can understand how these events will work.

parameters:name(10)."standard selection screen

at selection-screen output.

name = 'my name'

at selection-screen.

if name is initial."checking if the field is empty

message e001(zmsgtab).

endif.

start-of-selection.

write:/ name.

<b>reward if helpful</b>

rgds,

bharat.

Former Member
0 Kudos

Hi Mohit

<b>Load-of-program</b>

Triggers the associated event in an internal session after loading a program of type 1, M, F, or S. Also runs the associated processing block once and once only for each program and internal session. The processing block LOAD-OF-PROGRAM has roughly the same function for an ABAP program of type 1, M, F or S as a constructor has for classes in ABAP Objects

<b>Initialization.</b>

This event is executed before the selection screen is displayed .

Initialization of all the values.

You can assign different values other than the values defaulted on the selection screen .

You can fill your selection screen with some values at runtime.

<b>At Selection-Screen.</b>

The event is processed when the selection screen has been processed (at the end of PAI ).

Validation & Checks of inputted values happen here

Extras :

…ON VALUE-REQUEST FOR psel_low_high .

The pushbutton for F4 (Possible entries) appears beside the appropriate field.

... ON HELP-REQUEST FOR psel_low_high

. ... OUTPUT

This event is executed at PBO of the selection screen every time the user presses ENTER

<b>Start-of-Selection.</b>

Here the program starts selecting values from tables.

<b>End-of-selection.</b>

After all the data has been selected this event writes the data to the screen.

<b>Interactive Events</b>

Used for interactive reporting. It is used to create a detailed list from a basic list.

Reward points if helpful

REgards

Hitesh

Former Member
0 Kudos

<b>What is the differences between selection screen and selection screen out?</b>

The difference between Selection Screen and Selection Screen Output is we use the Selection Screen Output Event before the Selection Screen will displayed. Eg: Suppose if we want to disable some fields and enable some fields in the Selection Screen then we can code that in Section-Screen Output event.

Selection-Screen Event will trigger after section-screen is displayed and user action takes place on that.

regards,

srinivas

<b>*reward for useful answers*</b>