‎2007 May 16 12:07 PM
which r report events.tell me in sequence.what is use of each event
‎2007 May 16 12:10 PM
‎2007 May 16 12:10 PM
Hi,
The Load of Program is more relevant for the Module Pool Program than for a Report program. It corresponds to the Initialization event of a report program.
Classical Reports can have these events, in the given order :
initialization
at selection-screen
start-of-selection
end-of-selection
top-of-page
end-of-page
In addition o the above, the following events are possible in case of Interactive Reports -
at line-selection
at user-command
at PFnn.
Jogdand M B
‎2007 May 16 12:46 PM
‎2007 May 17 3:57 AM
Hi,
ABAP is an event-driven language.
It executes based on the events.
The events are
1.Initialization-It is used when we are declaring the data.The data declaration is done here and it is the first event to get triggered.
2.At Selection-screen-Here we design the selection-screen.i.e,select-options,parameters e.t.c.This is triggered after initialization.
3.Start-of-selection-Here we retrieve the data from tables.i.e,select query.
4.End-of-selection-Here we print the data.i.e,write statement
5.Top-of-page-To get the heading for the page.i.e.Header
6.End-of-page-To get the footer.i.e here we can get page numbers e.t.c
‎2007 May 17 4:36 AM
there are 2 types of report.
events in a classical report are:
1)initialization
2)at selection screen
3)start-of-selection
4)top of page
5)end of page
initialization is used for ranging the output
at selection screen is used for validating the output
start of selection is used for specifying the selection
top of page its for the header part
end of page its for the footer part.
events in interative report are:
1)at line-selection
2)at user-command
and
3)set pf-status
‎2007 May 17 5:23 AM
Classical Reports generates the Basic List and Interactive reports generates the Up to 20 Secondary Lists.
Initialization: is the event to get assign the value as a default(nothing but the initialization of the variable). It is the first event to trigger but if your program contains parameters or Select Options it trigger but not show the output on the list.
Top-of-page: is the event to design the header of the list. It is the only the event trigger after the initialization. Fist the control goes to Start-of-selection and then system(driver program ) searches for the Top-of-page envent if it has declared, immediatly control goes to that event and print the data whatever you given under that event.
Start-of-Selection: is the event to picking up the data from the database and for generating the Basic list data. It triggers after the top-of-page event. By defualt system declares this event, if you forget to declare in your report.
End-of-Selection: is the event that let to know the system program has just completed the execution of the Start-of-Selection event. it triggers after the Start-of-selection event.
End-of-page: is the event to display the Total Calculations or Page No.s and Footer Headings.
At PF: is the event to generate the GUIs(Graphical User Interface) like tool bars, application bar, title bar, Menu bar etc.,
At User-Command: used for generates the Push Buttons , Command Buttons etc., These events will trigger when the user perform some actions like pressing the command button .
At Line-Selection: is the event to geneartes the Secondary Lists, it will trigger when the user double click or press F2 key on the list contents. for generating the Secondary list sap provided predifined statements: SY-LIST,SY-LILLY,etc.,for entire record ,if you double click anywhere on the record it generates same secondary list. if you want to generate the secondary list based on the field you can go for GET CURSOR FIELD fieldname VALUE fieldvalue.
Top-of-page During Line-Selection: is the event to generate the Headers during on the Secondary List. You can generate different page headers for secondary lists.
These are the Basic and Major events to generates the Reports.
Please dont forget to Reward Marks
‎2007 May 17 6:20 AM
The different events in a report Program are:
<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.
<b>
Please Reward Points if helpful</b>
regards
Hitesh
‎2007 May 17 9:32 AM
<b>at selection-screen output</b>
Acts as PBO(Process Before Output) for selection screen.
at selection-screen on field.
at selection screen on block.
etc.,
Check the below underlined programs.
Selection Screen Events - <u>demo_selection_screen_events</u>
PBO of selection Screen - <u>demo_at_selection_screen_pbo</u>
Hope this will solve ur problem..
<b><u>Dont forget to reward all the useful replies</u></b>
Sudheer
‎2007 May 17 10:44 AM
hi,
<b>classical report sequence</b>
initialization
at selection-screen
at selection screen on (output,value request,help request)
start of selection
end of selction
top of page
end of page
<b>interactive reports sequence</b>
at line-selection
at user command
at PF-nn
Thanks,
Madhukar
‎2007 May 17 10:06 PM
Hi Shital,
Reports in the R/3 systems are online programs whose function is to retrieve data from database and monitoring it.
It consists of Classical reports & Interactive reports.
Classical report consists of one program that creates a single list.
This means that when the list is displayed it has to contain all data requested regardless of details the user want to see.
Classical Report Events:
1) Initialization: This event is triggered when you execute your program for the first time.
2) At selection-screen output: triggered when the selection screen is loaded in memory before being displayed.
3) At selection-screen: The user enters the values in the fields of selection screen and click on execute button this event gets triggered.
4) At selection screen on <filed>: This event is for checking individual fields.
5) Start-of-selection: This is the first event for u r list. Once all the events are triggered for selection-screen the data is retrieved from database.
6) Top-of-page: This event is triggered with first write statement. What ever you write under this event is applicable to all the pages.
7) End-of-page: This event is triggered when end- of page is reached. In this case page numbers will be written in every page.
8) End-of-selection: All output statements are mentioned after end-of-selection.
Interactive Reporting: Allows to user to participate retrieving and processing data on each level using the session.
It consists of one Basic list and 20 secondary lists.
Basil list starts from: 0
Secondary list starts from: 1
Events:
1) At line selection: The secondary list triggers the event at line-selection.
2) At user-command: this event is triggered when the users selects the menu item or press any function key.
3) Top of page during line selection: top of page event for secondary list.
4) Set PF-STATUS <VAR>: If you double click on the variable the system takes you to menu painter screen.
‎2007 May 18 10:18 AM
U need to <b><u>award points for all the useful replies</u></b>, and also u nees to <b><u>mark it as Answered if ur problem is solved</u></b>.
Regards
Sudheer