Application Development and Automation 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: 
Read only

Reports

Former Member
0 Likes
1,018

Hi abapers,

what are the sequence of events in repots and what are the functionality of each.?

with regards,

satish

1 ACCEPTED SOLUTION
Read only

amit_khare
Active Contributor
0 Likes
979

Hi,

check this thread you will get the answers.

<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/collaboration">report-events</a>

regards,

Amit

9 REPLIES 9
Read only

amit_khare
Active Contributor
0 Likes
980

Hi,

check this thread you will get the answers.

<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/collaboration">report-events</a>

regards,

Amit

Read only

Former Member
0 Likes
979

INITIALIZATION.

Initialize your variables.

AT SELECTION-SCREEN.

Validate input fields

START-OF-SELECTION.

The processing

END-OF-SELECTION.

At the end of the prog.

Refer http://sap.mis.cmich.edu/sap-abap/abap05/sld029.htm for more info...

<b>It would be better if you could search for these questions before you post. There are plenty of materials related to this. Also dont forget the SDN Wiki. Please post in SDN if you have a peculiar problem and you could not find the information over the internet.</b>

Regards

Wenceslaus

Read only

Former Member
0 Likes
979

Hi satish,

1). Load of Program

2). initialization

3. at selection screen output

4).at selection screen on <field>

5). At selection screen

6). start-of-selection

7). end-of-selection

Triggerd on the first page and the subsequent triggering is only if there is a page break.

8). top-of-page

9). end-of-page

For interactive reporting the sequence depends on the user action. If the user double clicks on a line then At line selection is triggered. If the user clicks on some button then At usercommand is triggerd and when the user clicks on a Function Keys like F5,F6 etc then AT pf status is triggered. If there is any page break in the secondary list then the top-of-page during line selection is triggered.

at line selection

at user command

at pf status

top-of-page- during line selection

The events purpose:

-


Initialization : triggered when the report is loaded in memory.

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

At selection-screen : before leaving the selection screen.

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

This event keyword defines an event block whose event is triggered by the ABAP runtime environment

when calling the executable program selection screen processing of a selection screen.

In an executable program, all statements that are not declarations,

and are listed before the first explicit processing block, are assigned to this event block.

If the program does not contain an explicitly defined event block START-OF-SELECTION,

these statements form the complete event block START-OF-SELECTION.

If a program contains an explicitly defined event block START-OF-SELECTION,

these statements are added to the beginning of the event block.

If the program contains no explicitly defined event blocks,

these statements form the entire event block START-OF-SELECTION.

end-of-selection : after the start-of-selection is completed.

classiscal report events.

top-of-page : every time a new page is started in the list.

end-of-page : every time the list data reaches the footer region of the page.

interactive report events.

top of page during line selection : top of page event for secondary list.

at line-selection : evey time user dbl-clicks(F2) on the list data.

at pF<key> : function key from F5 to F12 to perform interactive action on the list.

at user-command.

Also gothru this links..

http://www.sap-img.com/abap/events-related-to-reporting.htm

http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/

Regards,

Kumar

Message was edited by: kumar

kumar kk

Read only

Former Member
0 Likes
979

<a href="http://help.sap.com/saphelp_nw04/helpdata/en/9f/dba2eb35c111d1829f0000e829fbfe/content.htm">Events of reports</a>

Read only

Former Member
0 Likes
979

thnk u all for ur nice replies.

regards,

satish

Read only

Former Member
0 Likes
979

Mr KK thnks again.

regards,

satish

Read only

Former Member
0 Likes
979

hi satish,

please find the basic concepts of reporting events.if u need i will send you a sample program which i have done.mark points if helpful.

Classical reports are normal reports. These reports are not having any sub reports. IT IS HAVING ONLY ONE SCREEN/LIST FOR OUTPUT.

Events In Classical Reports.

INTIALIZATION: This event triggers before selection screen display.

AT-SELECTION-SCREEN: This event triggers after proccesing user input still selection screen is in active mode.

START OF SELECTION: Start of selection screen triggers after proceesing selection screen.

END-OF-SELECTION : It is for Logical Database Reporting.

Interactive ReportsEdit section

As the name suggests, the user can Interact with the report. We can have a drill down into the report data. For example, Column one of the report displays the material numbers, and the user feels that he needs some more specific data about the vendor for that material, he can HIDE that data under those material numbers. And when the user clicks the material number, another report (actually sub report/secondary list) which displays the vendor details will be displayed.

We can have a basic list (number starts from 0) and 20 secondary lists (1 to 21). Events associated with Interactive Reports are: 1. AT LINE-SELECTION 2. AT USER-COMMAND 3. AT PF<key> 4. TOP-OF-PAGE DURING LINE-SELECTION. HIDE statement holds the data to be displayed in the secondary list. sy-lisel : contains data of the selected line. sy-lsind : contains the level of report (from 0 to

Interactive Report Events:

AT LINE-SELECTION : This Event triggers when we double click a line on the list, when the event is triggered a new sublist is going to be generated. Under this event what ever the statements that are been return will be displayed on newly generated sublist.

AT PFn: For predefined function keys...

AT USER-COMMAND : It provides user functions keys.

regards,

Deepthi Reddy

Read only

Former Member
0 Likes
979

Hi Satish,

As everone told the sequence of steps are

Initialization

At selection-screen

Start of Selection

Top-of-page

End-of-page

End-of-selection.

But, It purely depends upon , what are events you are triggering in your Report.

Initialization: As you know, it Initializes the initial values , not only this , it validates the initial valus.

At selection-screen : This is purely for validation Purpose.

They are <b>At selection-screen on field</b> , which validated the field in the selection screen, Which is an <b>PAI</b>.

<b>At selection-screen on output</b> this is used to validate the Screen, This is <b>PBO</b>

At selection-screen on Value Request : Which is nothing but F4

At selection-screen on Help Request : F1

At selection-screen on Block: Validates entire Selection-screen Block.

<b>Start of selection</b> : The entire Program Logic will be there. <b>Processsing Block</b>

Top-of-Page

End of page

End of Selection : Which ends enitre selection, Closes the processing block. Further if you want to process any thing use start of selection again.

Thanks

Manju

Read only

Former Member
0 Likes
979

Hi satish,

This is the sequence of events in report programming.

1.Initialization.

2.At Selection-Screen.

3.Start-of-Selection.

4.End-of-Selection.

5.Interactive events.

<b>1.Initialization</b>

Processed before the presentation of the selection screen.

Can be used to initialize values in the selection screen or to assign values to any parameters that appear on the selection screen.

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

Processing block is started after the user has specified all the criteria in the selection screen

This event can also be called on a particular parameter or select-option using At Selection-Screen on <parameter or select-option>

If an error message is displayed from this processing block then the system displays the selection screen again and wrong input fields have to be filled again.

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

Processing block is executed after processing the selection screen.

All the data is selected in this block.

All the main processing on the data except for interactive reporting is handled in this block.

<b>4.End-of-Selection</b>

Data which is selected and has been processed is printed to the screen in this block.

List Processing happens in this block

Top-of-Page.

New-Page.

End-of-Page.

<b>5.Interactive Events</b>.

Top-of-page during line selection.

At line-selection.

At user-command.

At pf <ar>.

Regards....

Arun.

If useful don't forget to award points.