‎2007 Jul 30 4:46 AM
if i write a WRITE statement after end-of-selection will that be triggered?
‎2007 Jul 30 4:52 AM
hi Pradeep
yes it will definitely be triggered
regards
ravish
<b>plz dont forget to reward if useful</b>
‎2007 Jul 30 4:49 AM
Yes , it will be triggered if you write a WRITE statement after END-OF-SELECTION
The END-OF-SELECTION event is triggered in executable programs once the reading of all data is finished and before the list processor is started, which is nothing but the write statement.
Regards
Gopi
‎2007 Jul 30 4:52 AM
hi Pradeep
yes it will definitely be triggered
regards
ravish
<b>plz dont forget to reward if useful</b>
‎2007 Jul 30 5:19 AM
Hello Pradeep,
Yes, after END-OF-SELECTION write statement will trigger.
After all the data has been selected this event writes the data to the screen.
This is the last of the events called by the runtime environment to occur. It is triggered after all of the data has been read from the logical database, and before the list processor is started.
It is mainly used to free the memory when you are using logical database.
This statement defines an event block, whose event is raised by the ABAP-runtime environment during the calling of an executable program , if the logical database, with which the program is linked, has completely finished its work.
<u>For your kind reference, please check the below link</u><b>http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9aca35c111d1829f0000e829fbfe/content.htm</b>
Regards,
Moqeeth.
‎2007 Jul 30 5:33 AM
Hi pradeep
Yes after end-of-selection WRITE statement will trigger
<b>
Regards,
Azhar</b>
‎2007 Jul 30 5:41 AM
please read this
END-OF-SELECTION
This is the last of the events called by the runtime environment to occur. It is triggered after all of the data has been read from the logical database, and before the list processor is started. You can use the corresponding event block to process and format the data that the program has stored in internal tables or extracts during the various GET events.
The following program is connected to the logical database F1S.
REPORT EVENT_DEMO.
NODES SPFLI.
DATA: SPFLI_TAB TYPE SORTED TABLE OF SPFLI
WITH UNIQUE KEY CITYFROM CITYTO CARRID CONNID,
SPFLI_LINE TYPE SPFLI.
START-OF-SELECTION.
WRITE 'Demo program for END-OF-SELECTION'.
SKIP.
GET SPFLI FIELDS CARRID CONNID CITYFROM CITYTO.
MOVE-CORRESPONDING SPFLI TO SPFLI_LINE.
INSERT SPFLI_LINE INTO TABLE SPFLI_TAB.
END-OF-SELECTION.
LOOP AT SPFLI_TAB INTO SPFLI_LINE.
WRITE: / SPFLI_LINE-CITYFROM,
SPFLI_LINE-CITYTO,
SPFLI_LINE-CARRID,
SPFLI_LINE-CONNID.
ENDLOOP.