01-30-2007 9:16 AM
hi
could anybody tell me
at selection-screen output
at selection-screen on field
at selection-screen
order of triggering ..?
could u plz anybody tell me is there any program we ll use all these three events
plz send the program if possible
thanx
kals.
01-30-2007 9:18 AM
Please check this link
http://help.sap.com/saphelp_47x200/helpdata/en/56/1eb6c705ad11d2952f0000e8353423/content.htm
First
TOP-OF-PAGE.
INITIALIZATION
at selection-screen output
at selection-screen on field
at selection-screen
START-OF-SELECTION.
END-OF-SELECTION.
Hi. If you put a search in the forums on 'Order of Events'
you would get much more information for the same.
01-30-2007 9:41 AM
Hi kalyan,
The order is
1.at selection-screen output
2. at selection-screen on field
3. at selection-screen
The order of all the events of classical reports
1. Initialization
2. At selection-screen output
3. At selection-screen on value request for field
4. At selection-screen on help request for field
5. At selection-screen on select-option field
6. At selection-screen on parameter field
7. At selection-screen on Block Blockname
8. At selection-screen on Radiobutton Group Groupname
9. At selection-screen
10. start-of-selection.
11. Top-of-page
12. End-of-page
13. End-of-selection
<b>Example</b>
REPORT zex33 message-id zsmg .
PARAMETER :p_vbeln LIKE vbak-vbeln MODIF ID md1,
p_erdat LIKE vbak-erdat MODIF ID md2 default sy-datum,
p_auart like vbak-auart.
DATA: return TYPE TABLE OF ddshretval WITH HEADER LINE.
At selection-screen .
if p_vbeln ne space.
message e001(zsmg) with 'select by pressing F4'.
endif.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_vbeln.
CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
EXPORTING
tabname = 'VBAK'
fieldname = 'VBELN'
dynpprog = sy-cprog
dynpnr = sy-dynnr
dynprofield = 'P_VBELN'
TABLES
return_tab = return
EXCEPTIONS
field_not_found = 1
no_help_for_field = 2
inconsistent_help = 3
no_values_found = 4
OTHERS = 5.
LOOP AT SCREEN.
IF screen-group1 = 'MD1'.
screen-input = '0'.
MODIFY SCREEN.
CONTINUE.
ENDIF.
ENDLOOP.
at selection-screen on p_auart.
if p_auart eq space.
message e002(zsmg) with 'Enter Sales document Type'.
endif.
At selection-screen output.
LOOP AT SCREEN.
IF screen-group1 = 'MD2'.
screen-input = '0'.
MODIFY SCREEN.
CONTINUE.
ENDIF.
ENDLOOP.
START-OF-SELECTION.
01-30-2007 9:45 AM
hi,
First event -
Initialization : triggered when the report is loaded in memory.
At selection-screen output : triggered when the selection screen is loaded in memory before being displayed.
At selection-screen : before leaving the selection screen.
start-of-selection : the first event for displaying the report.
This event keyword defines an event block whose event is triggered by the ABAP runtime environment
when calling the executable program selection screen processing of a selection screen.
In an executable program, all statements that are not declarations,
and are listed before the first explicit processing block, are assigned to this event block.
If the program does not contain an explicitly defined event block START-OF-SELECTION,
these statements form the complete event block START-OF-SELECTION.
If a program contains an explicitly defined event block START-OF-SELECTION,
these statements are added to the beginning of the event block.
If the program contains no explicitly defined event blocks,
these statements form the entire event block START-OF-SELECTION.
end-of-selection : after the start-of-selection is completed.
classiscal report events.
top-of-page : every time a new page is started in the list.
end-of-page : every time the list data reaches the footer region of the page.
interactive report events.
top of page during line selection : top of page event for secondary list.
at line-selection : evey time user dbl-clicks(F2) on the list data.
at pF<key> : function key from F5 to F12 to perform interactive action on the list.
at user-command
http://help.sap.com/saphelp_47x200/helpdata/en/56/1eb6c705ad11d2952f0000e8353423/content.htm
Regards
Anver
01-30-2007 10:04 AM
Hey Kalyan,
The order what you have mentioned is exactly the way how it triggers.
Regs,
Venkat Ramanan N