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: 

about events:-------

Former Member
0 Kudos

Hi experts,

1.which event will work first in

at new or at first why

at last or at end of or end of selection.

2. what's d difference between set screen and call screen.

1 ACCEPTED SOLUTION

former_member585865
Contributor
0 Kudos

Hi anshu,

for your question just refer the following links,what you have mentioned is control break statements.in that end-of-selection is the only event rest of all control break statements.

http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/at_itab.htm

http://www.saptechies.com/what-is-the-difference-between-set-screen-and-call-screen

3 REPLIES 3

0 Kudos

Hi Anshu,

First of all...Without 'End-of-selection', all the other statements specified by you are not events. Those are called control break statements.

In a loop of an internal table, you can use this control break statements. Remember, these statements can only be used in active loops. For using the control break statements, we should always sort the internal table based on one or more than one key field/s as per the requirement.

AT LAST or AT END OF is used for do an operation (such as SUM) after the last iteration of the loop.

AT FIRST is used to do an operation at the very firs iteration of the loop.

AT NEW is used to do an operation whenever the iteration of the loop contains a new value of the key field by which the internal table has been sorted.

END-OF-SELECTION is an event which is triggered after START-OF-SELECTION event.

Difference between SET SCREEN and CALL SCREEN.

SET SCREEN is mostly used as SET SCREEN 0 to call the previous screen from the current screen. If you are using a SET SCREEN 'XXX' in the PAI of a screen 'YYY' then the control will come to the point in 'XXX' from exactly where control was sent to 'YYY'.

But if you are using a CALL SCREEN 'XXX' in the PAI of a screen 'YYY' then the control will come to the PBO of 'XXX'.

0 Kudos

Please reward, if helpful.

former_member585865
Contributor
0 Kudos

Hi anshu,

for your question just refer the following links,what you have mentioned is control break statements.in that end-of-selection is the only event rest of all control break statements.

http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/at_itab.htm

http://www.saptechies.com/what-is-the-difference-between-set-screen-and-call-screen