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

Former Member
0 Kudos

Hi

how many events are there in REPORT PROGRAMING

explain each and evry thing

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi

<u><b>EVENTS</b></u>

<b>INITIALIZATION</b>:-Point before the selection screen is displayed

<b>AT SELECTION-SCREEN</b>:-Point after processing user input on the selection screen while the selection screen is still active

<b>START-OF-SELECTION</b> :-Point after processing the selection screen

<b>GET <table>:-</b>Point at which the logical database offers a line of the database table <table>.

<b>END-OF-SELECTION</b>:-Point after processing all lines offered by the logical database.

<u><b>Events occurring during the processing of the output list of a report.</b></u> TOP-OF-PAGE:- Point during list processing when a new page is started.

<b>END-OF-PAGE</b>:-Point during list processing when a page is ended.Event keywords to write a program for interactive reporting:

<b>AT LINE-SELECTION</b>:- Point at which the user selects a line

<b>AT USER-COMMAND</b> :- Point at which the user presses a function key or enters a command in the command field.

<b>AT PF<nn>:- </b> Point at which the user presses the function key with the function code PF<n>

reward if usefull

5 REPLIES 5

Former Member
0 Kudos

Hi,

here i am writing the events in the order they trigger.

SELECTION-SCREEN.....

INITIALIZATION: Fill the default values into the fields or we can assign values to the fields in this event. It triggers first.

AT SELECTION-SCREEN: It is commonly used for validations like ON-REQUEST ( for search help) , OUTPUT ( modify screens ).

TOP-OF-PAGE: Header of the report or any data to print on top of the page in list.

END-OF-PAGE: Footer details like page no: / total no: of pages.

START-OF-SELECTION: For processing ur code selects, loops, FM'S and all.

END-OF-SELECTION: Output formating. It is not required to write normally but in some special conditions like to print after the START-OF-SELECTION event.

Reward to all helpful answers.

Thanks.

Former Member
0 Kudos

Hi,

Common Events:

1. Intialization:

This is the first event will be trigerred among all the events. In this event you will assigning values to variables.

For eg: if you want to display comments on the selection -screen.

v1 = 'HAI'. and write this variable in the at selection screen then HAI will be displayed in the selection screen.

2. At Selection-screen OUTPUT.

This is triggered before displaying the selection screen. It's just like PBO in Module pool.

3. At Selection-screen.

This event is triggered when the before leaving the selection screen.

4. Start-of-selection.

this is default event trigerred for every executable program. Here you can do all the retrival logic.

5. End-of-selection:

This event is triggered after the start-of-selection. to display the contents on the report.

Classical report events:

1.Top-of-page: Every time a new page is triggered. Mainly this is used for header of the report.

2. 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.

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

2. At pF<key> :function key from F5 to F12 to perform interactive action on the lis

3. At user-command: to assign the function code for the button on the report.

It's just like PAI of the Module pool program.

Also Check This Link..

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

Regards,

Priyanka.

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.

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.

also refer

<a href="http://cbbrowne.com/info/abap4.html">link1</a>

<a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db9a1435c111d1829f0000e829fbfe/content.htm">link2</a>

<a href="http://www.saptechies.com/events-related-to-reporting/">link3</a>

<a href="http://www.saptechies.com/in-reporting-tell-the-events-in-a-sequentail-order/">link4</a>

regards,

srinivas

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

Former Member
0 Kudos

INITILIZATION.

A programmer can execute another block of code before the selection screen by using the event keyword INITIALIZATION. This processing block can be used to define characteristics of the selection screen. Examples include : setting default values on selection fields, setting a title bar, assigning text to pushbuttons, etc.

AT SELECTION-SCREEN.....

AT SELECTION-SCREEN occurs when the user triggers a function code on the selection screen

START-OF-SELECTION

START-OF-SELECTION is triggered after the selection screen is processed.For hiiting data base tbles.

GET <table> events can only be used for the basic list in an interactive report.

The GET event is triggered each time a row is read from a logical database table. The data for this record is loaded into the table work area.

The GET <table> LATE event, if coded, occurs just before the next row (record) of the table specified in the GET event is selected from the database.

END-OF-SELECTION is the last system event to be processed during the runtime of a report program. It occurs after all logical database records have been read, and before any user-invoked events.

TOP-OF-PAGE is used for page headers on the basic list only.

TOP-OF-PAGE DURING LINE-SELECTION allows a programmer to display headers for detail lists (other than the basic list).

The END-OF-PAGE event is used for page footers.

Former Member
0 Kudos

Hi

<u><b>EVENTS</b></u>

<b>INITIALIZATION</b>:-Point before the selection screen is displayed

<b>AT SELECTION-SCREEN</b>:-Point after processing user input on the selection screen while the selection screen is still active

<b>START-OF-SELECTION</b> :-Point after processing the selection screen

<b>GET <table>:-</b>Point at which the logical database offers a line of the database table <table>.

<b>END-OF-SELECTION</b>:-Point after processing all lines offered by the logical database.

<u><b>Events occurring during the processing of the output list of a report.</b></u> TOP-OF-PAGE:- Point during list processing when a new page is started.

<b>END-OF-PAGE</b>:-Point during list processing when a page is ended.Event keywords to write a program for interactive reporting:

<b>AT LINE-SELECTION</b>:- Point at which the user selects a line

<b>AT USER-COMMAND</b> :- Point at which the user presses a function key or enters a command in the command field.

<b>AT PF<nn>:- </b> Point at which the user presses the function key with the function code PF<n>

reward if usefull