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: 

start-of-selection

Former Member
0 Kudos

hello!

do anybody know, if there exists a comment in ABAP,

that goes back to the start-of-selection event?

best regards

biclibic

5 REPLIES 5

Former Member
0 Kudos

Hi,

Please try the below code.If you put stop stmt in start-of-selection event the stmts after stop wont get executed and directly goes to end-of-selection event.

Please put a break-point and execute ,you will understand.

REPORT ztemp_sdn2 .

DATA: v_p TYPE p decimals 2.

data: v_c(20) TYPE c.

start-of-selection.

v_p = 123333.

write: v_p to v_c.

stop.

WRITE:/ v_p, v_c.

end-of-selection.

WRITE:/ v_p, v_c.

i think this only you are expecting.feel free to ask any questions on this if your problem not solved..

reward if useful to you

Thanks

Sivaparvathi

Former Member
0 Kudos

Hi,

Start-of-selection gets triggered when the control is passed from DIA processor to ABAP processor with in it. So to retrigger the event you need to shift the control back by reassigning the task to new dialog procesor which can be done by either restarting the program using submit keyword or start a new task by using STARTING IN NEW TASK in subroutine or function module call.

Sirish

Former Member
0 Kudos

Hi,

Just give the above coding and debugg it slowly it will be clear to you.

Kindly post question more clearly.

Thanks

Sakthi

Former Member
0 Kudos

Hi Bianca,

Just FYI, START-OF-SELECTION event is triggerred by the Runtime Environment and we as programmers don't have any control over that! This event is triggerred only once per execution of a report program.

What is your objective? What do you want to do? Little more info may help us.

Thanks

Sanjeev

0 Kudos

Thank you for your answers...

now i have found another solution.

ps: i know that start-of-selection is a event but it would be nice if there are functions in ABAP to trigger events form source coding.