‎2008 Jun 26 9:29 AM
Hi all,
I have a small code to take one parameter and print its value. the code is as follows,
REPORT z_sdn.
PARAMETERS:
p_var TYPE i.
END-OF-SELECTION.
WRITE:'Input value is',p_var.here I neither have any START-OF-SELECTION nor any free statement so that START-OF-SELECTION be applied to it.
But when I check it in debugging mode, under overview tab, it shows a START-OF-SELECTION .
Please explain.
‎2008 Jun 26 9:49 AM
hi,
START-OF-SELECTION is the default event which is triggered even if we do not explicitly mention the events
The Report statemnt itself acts as START-OF-SELECTION event
regards
prasanth
‎2008 Jun 26 9:31 AM
‎2008 Jun 26 9:43 AM
Hi Anirban,
Start-of-selection is an implicit standard event block in an ABAP program, if there are no blocks mplemented in the program then by default it will be assigned to the "Start-of-selection" event.
Regards,
Vasuki
‎2008 Jun 26 9:49 AM
hi,
START-OF-SELECTION is the default event which is triggered even if we do not explicitly mention the events
The Report statemnt itself acts as START-OF-SELECTION event
regards
prasanth
‎2008 Jun 26 10:20 AM
Hi Anirban
greetings
As per i knw Start-of-Selection is implicitly defined with Report statement.
and it is fired before the first executable statemnet. so in debugging u r seeing a start-of-selection block.
‎2008 Jun 26 10:43 AM
Hi Anirban,
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. Even if we do not have any free statement, START-OF-SELECTION event is implicitly triggerred.
Hope this information will help you.
Reward if helpful.
‎2008 Jun 26 12:17 PM
hi,
The REPORT statement automatically starts the START-OF-SELECTION processing. Any processing between the REPORT statement and the subsequent event key word is executed at START-OF-SELECTION .
Immediately after, the processing block introduced by an explicit START-OF-SELECTION is executed.
In an executable program, any non-declarative statements that occur between the REPORT or PROGRAM statement and the first processing block are also processed in the START-OF-SELECTION block.
hope this will help.
reward if useful.
Sumit Agarwal
‎2008 Jun 26 12:25 PM
Hi anirban,
As you might be knowing that start-of-selection is the default event in any report program.Also the report statement in a program falls under the start-of-selection event.
In your program you only have end-of-selection .So all the remaining statements including the parameter declaration are a part of start-of-selection.That is the reason why you are getting start-of-selection in the debugging mode.
Good Luck,
bhumika