12-13-2007 5:47 AM
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.
12-13-2007 10:54 AM
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
12-13-2007 7:35 AM
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'.
12-13-2007 7:35 AM
12-13-2007 10:54 AM
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