Application Development 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: 

sap abap

Former Member
0 Kudos

Is it mandatory to use the Event END_OF_SELECTION with START_OF_SELECTION?

If we doesn't provide Event END_OF_SELECTION ,then what will happen?Explain?

4 REPLIES 4

Former Member
0 Kudos

Hi

NO,

It is not mandatory to use END_OF_SELECTION after start-of-selection.

Nothing will happen if you don't use it.

Even nothing will happen if you don't write start-of-selection also, if there is no other event is used before it like Initialization and At selection-screen.

Reward if useful

Anji

Former Member
0 Kudos

No need

In program no event is mandatory

We can write program with out mention any event

Start of any event mention end of privious event

By default if u not write any event all consider as START-OF-SELECTION

END_OF_SELECTION with START_OF_SELECTION we can write it

In genaral we will write all clear statement for all globle variables and free all internal table in END-OF-SELECTION to free memory

but it is not mandatory.

If we not write memory get free once we come out of program

Rewards if useful..................

Minal

Former Member
0 Kudos

Hi ,

In report programs using LDB for every value selected the program issues the output, to control this you would use END-OF-SELECTION. Now if you call your output in this event, the output is made only after all the values are selected as per the selection criteria.

but i will give u a nice example where u need end-of-selection.

suppose while coding, u need a logic like below

if a condition is satisfied continue with the report

and if not satisfied, then display a message and end the report.

then u can code like below.

start-of-slection.

if a = <condition>.

do the following.......

else.

stop.

end-of-selection.

write: 'THIS IS END'.

note: stop command triggers end-of-slection from anywhere.

Regards

Former Member
0 Kudos

nothing will happen if we dont provide end of selection.

it will just execute start of selection.

reward points if useful.

Thank you,

gangula vikram.