Application Development and Automation 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: 
Read only

classical report

Former Member
0 Likes
567

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
545

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

4 REPLIES 4
Read only

Former Member
0 Likes
545

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

Read only

Former Member
0 Likes
546

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

Read only

0 Likes
545

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

Read only

0 Likes
545

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