Skip to Content
avatar image
Former Member

EVENTS

Hi

how many events are there in REPORT PROGRAMING

explain each and evry thing

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Best Answer
    avatar image
    Former Member
    Aug 17, 2007 at 09:40 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 17, 2007 at 09:29 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 17, 2007 at 09:30 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 17, 2007 at 09:35 AM

    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

    link1http://cbbrowne.com/info/abap4.html">link1>

    link2http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db9a1435c111d1829f0000e829fbfe/content.htm">link2>

    link3http://www.saptechies.com/events-related-to-reporting/">link3>

    link4http://www.saptechies.com/in-reporting-tell-the-events-in-a-sequentail-order/">link4>

    regards,

    srinivas

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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 17, 2007 at 09:36 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded