‎2007 Jun 05 3:21 PM
Give me the alv events for Interactive reporting
Give details about STOP CONTINUE AND EXIT in reports
‎2007 Jun 05 3:30 PM
Hi Raghavendra,
Classical ReportsEdit 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.
Events keywords in Reports are
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
<b>STOP</b> will go to the end of selection.
<b>CONTINUE</b> will skip that Loop pass.
Reward if useful.
Thanks
Aneesh.
‎2007 Jun 06 4:16 AM
hi,
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.
STOP.
Effect
Cancels all data selection. No further tables are read.
STOP is followed immediately by the END-OF-SELECTION processing. If you do not want this, you may have to use EXIT instead.
EXIT.
Effect
In loop structures:
Leaves the loop processing (DO , WHILE , LOOP , SELECT )
In subroutines and other modularization units (but outside loop structures):
Leaves the subroutine or modularization unit (FORM , MODULE , FUNCTION , TOP-OF-PAGE , END-OF-PAGE )
Outside loop structures and modularization units (report processing):
Cancels the report processing and displays the list
CONTINUE.
Effect
Within loop structures like
DO ... ENDDO
WHILE ... ENDWHILE
LOOP ... ENDLOOP
SELECT ... ENDSELECT
CONTINUE terminates the current loop pass, returns the processing to the beginning of the loop and starts the next loop pass, if there is one.
‎2007 Jun 06 7:55 AM
hi rahavendra,
if u write <b>stop</b> keyword before the end-of-selection after the stop triggers then it dierecly comes to the end of selection, then it goes to the processing logic(ex write statement or alv or loop like that),
where as if its<b> exit</b> keyword once it reaches the trigger then it come out from the report though u have a end of selection event.
CONTINUE can come out the particular Loop and then again it process.
regards,
seshu.