‎2007 Apr 29 4:16 PM
hi guru's
i am using all the events in classical report.and placing write statement in all those
events.if i'll execute wich write statement will trigger first.
thanx
loki
‎2007 Apr 29 5:08 PM
Hi
we don't write any output write statements in Initialization and At selection-screen.
so first we start writing the WRITE statements in Top-of-page and start-of-selection.
First Top-of-page WRITE statement executed them the other Write statements in Start-0f-selection.
reward points if useful
regards,
Anji
‎2007 Apr 29 4:26 PM
First event -
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 : before leaving the selection screen.
start-of-selection : the first event for displaying the report.
This event keyword defines an event block whose event is triggered by the ABAP runtime environment
when calling the executable program selection screen processing of a selection screen.
In an executable program, all statements that are not declarations,
and are listed before the first explicit processing block, are assigned to this event block.
If the program does not contain an explicitly defined event block START-OF-SELECTION,
these statements form the complete event block START-OF-SELECTION.
If a program contains an explicitly defined event block START-OF-SELECTION,
these statements are added to the beginning of the event block.
If the program contains no explicitly defined event blocks,
these statements form the entire event block START-OF-SELECTION.
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.
at user-command
‎2007 Apr 29 5:08 PM
Hi
we don't write any output write statements in Initialization and At selection-screen.
so first we start writing the WRITE statements in Top-of-page and start-of-selection.
First Top-of-page WRITE statement executed them the other Write statements in Start-0f-selection.
reward points if useful
regards,
Anji
‎2007 Apr 29 5:17 PM
hi anji,
suppose if i'll write all the write statements in the events , then wat will happen.
it's my interview question.clarify once it clear to me i'll give full points.
thanx,
loki
‎2007 Apr 29 5:27 PM
Hi
nothing will happen
i practically tested now on the system.
the program won't give any syntax error
upon execution it will output the first WRITE statement in top-of-page and followed by other write statements in start-of-selection and end-os-selection.
reward points
regards
Anji