12-05-2007 11:25 AM
hello!
do anybody know, if there exists a comment in ABAP,
that goes back to the start-of-selection event?
best regards
biclibic
12-05-2007 2:05 PM
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
12-05-2007 2:18 PM
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
12-05-2007 2:20 PM
Hi,
Just give the above coding and debugg it slowly it will be clear to you.
Kindly post question more clearly.
Thanks
Sakthi
12-05-2007 3:15 PM
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
12-05-2007 3:50 PM
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.