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: 

hi guru's how many events is in classical & interactive how it trigered

Former Member
0 Kudos

hi guru's how many events is in classical & interactive how it trigered plz help me

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Event related to reports are not triggered based on any statements in ABAP.

The event are triggered depended on the way the output is generated .

for eg:

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 / <field> : before leaving the selection screen.

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

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

<b>classiscal report events.</b>

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.

<b>interactive report events.</b>

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.

Regards,

Maha

5 REPLIES 5

Former Member
0 Kudos

Event related to reports are not triggered based on any statements in ABAP.

The event are triggered depended on the way the output is generated .

for eg:

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 / <field> : before leaving the selection screen.

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

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

<b>classiscal report events.</b>

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.

<b>interactive report events.</b>

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.

Regards,

Maha

Former Member
0 Kudos

Hi,

For Classical Reports,

1.Initialization

2. At line-selection

3. Start-of-selection

4.Top-of-page

5. At user-command

6.End-of-selection

7. End-of-page

8.At Pfn

For Interactive Reports,

9.At line-selection 10. Top-of-page during line selection

For LDB (Logical DataBase) Reports,

10. get 11.put 12. get table

U can also refer this link:

h<u>ttp://www.sap-img.com/abap/events-related-to-reporting.htm</u>

Thanks

Vasudha

Message was edited by:

Vasudha L

Former Member
0 Kudos

Hi Srivasu,

This is kiran kuamar.G(Working in SAP).I have mentioned the events which are used in classical and interactive reports.And i will metion those in sequence ok.

If u r satisy with my answer plz give me REWARD POINTS.

HAVE A NICE DAY ..

CLASSICAL REPORT:

1.INITIALIZATION : Automatically place values in the selection screen.

2.AT SELECTION SCREEN: For Validations.

3.AT SELECTION SCREEN ON <FIELD> : Validation on particular field.

4.START-OF-SELECTION : Generally used to Fetch data form the database.

5.TOP-OF-PAGE : For headings

6.END-OF-SELECTION : Display the data.

7.END-OF-PAGE : For Page Number at the end of page.

Note:

1.If there is no event mentioned in the program the DEFAULT event that is triggered is START-OF-SELECTION.

2.whenever the first WRITE statement encountered in ur report(In genereal write statements are present in END-OF-SELECITON event) the control is automatically transfer to TOP-OF-PAGE event and then goes back to WRITE statement.

INTERACTIVE REPORT:

1.AT LINE SELECTION : Whenever u click on some field in the output it will take u another screen.(i.e to another list)

2.AT USER COMMAND : U have a facility that u have to create ur own application tool bar .whenever u select some value in the output and click the button in the application toolbar.That time it will take u another screen i.e interactive output screen.

3.AT PF-STATUS : Work like above two events that i mentioned.

Former Member
0 Kudos

Hi

Order for different events is:

1 . Initialization

2 . At selection-screen output

3 . At selection-screen

4 . Start-of-selection

5 . End-of-selection

Apart from these there are other events like

a. Top-of-page

b. End-of-page

c. At user-command

d. At pfkey

e. At line selection.

check

http://help.sap.com/saphelp_47x200/helpdata/en/56/1eb6c705ad11d2952f0000e8353423/content.htm

<b>Reward if usefull</b>

Former Member
0 Kudos

HI,

Classical Reports Edit section

These are the most simple reports. Programmers learn this one first. It is just an output of data using the Write statement inside a loop.

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 21)

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.

<b>Events keywords in Reports are

For Classical Reports,

1.Initialization - triggers when click on execute buton in the report program

2. At line-selection - it triggers only when you double click on the perticular line on the output

3. Start-of-selection - it triggers when you click on the execute button on the election screen

4.Top-of-page - it triggers for every page break like you will define some page size if it comes to the last line the top-of-page will trigger

5. At user-command - it triggers only on the action based on the user action

6.End-of-selection - it will trigger at the end of the report program execution'

7. End-of-page - it triggers for every end of the page that means you will define one footer for every report program, when the command reaches to the footer it will trigger'

8.At Pfn- it triggers based on the function keys tou pressed

<b>For Interactive Reports,</b>

9.At line-selection

10. Top-of-page during line selection - it will trigger only in the secondary list when it reaches to the new page</b>

<b>Reward i ufseful</b>