05-24-2007 6:48 AM
Can someone please explain me the order to write the events in SELECTION-SCREEN .
I pass some values at the beginning of the report and then when i change them i can't take the changed values ...
POINTS WILL BE REWARDED ...
Thanks a lot ..
05-24-2007 7:03 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
Rgds
Anversha
05-24-2007 6:54 AM
Hi Dimath,
Using initialisation event or Defalt extended parameter statement with PARAMETERS and SELECT-OPTIOns statement , we can pass before selection screen dispaly.
Regards,
bhaskar
05-24-2007 6:58 AM
The order of the selection screen events is :
AT SELECTION-SCREEN OUTPUT which is PBO(Process Before Output) event for Selection-Screen.
Then is AT SELECTION-SCREEN [ON FIELD] which is PAI(Process after Input) event for the selection-screen.
AT SELECTION-SCREEN OUTPUT contains the code for formatting ur selection screen or say passing some values initially to the screen.
AT SELECTIOn-SCREEN is triggered when the user enters some data or does some action on the selection-screen.
Regards,
Himanshu
05-24-2007 7:02 AM
Hi Dimath,
Selection-screen statement has so many variants,
Expect SELECTION-SCREEN output, Remaining all events trigger in PAI of your selection screen,
BUT SELECTION-SCREEN OUTPUT is trigger in PBO
05-24-2007 7:00 AM
HI Dimath,
This is the sequence for report program
initialization->
at selection-screen output->allows to modify selection screen before displaying.
at selection-screen->
start-of-selection
get -> to get data from ldb
top-of-page
end-of-page
at line-selection
at pf
at user-command
I think this will help you
Regards
Sarath
05-24-2007 7:03 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
Rgds
Anversha
05-24-2007 7:04 AM
Hi,
If you are asking about AT SELECTION-SCREEN Sequence check this
INITILIAZATION
AT SELECTION-SCREEN OUTPUT
AT SELECTION SCREEN ON VALUE REQUEST FOR <FIELD>
AT SELECTION SCREEN ON HELP REQUEST FOR <FIELD>
AT SELECTION SCREEN ON <SEL_OPT>
AT SELECTION SCREEN ON <PARAMETER>
AT SELECTION SCREEN ON BLOCK <B1>
AT SELECTION SCREEN ON RADIOBUTTON GROUP1 <RAD1>
AT SELECTION SCREEN
AT SELECTION SCREEN ON VALUE REQUEST FOR <SEL_OPT-LOW>
AT SELECTION SCREEN ON HELP REQUEST FOR <SEL_OPT-LOW>
AT SELECTION SCREEN ON END OF SEL_OPT
START OF SELCTION
For more information check here
http://help.sap.com/saphelp_nw2004s/helpdata/en/56/1eb6c705ad11d2952f0000e8353423/frameset.htm
Regards,
Raghav
05-24-2007 8:59 AM
Hi,
Selection-screens are special screen defined in ABAP.
- This ABAP at run time only controls the flow logic of Selection-screens. The PBO and PAI triggers the num of. selection-screens.
The basic form of the selection screen events is the AT SELECTION-SCREEN event. This event occurs after the runtime environment has passed all input data from the selection screen to the ABAP program. The other selection screen events allow programmers to modify the selection screen before it is sent and specifically check user input.
At Selection-screen OUTPUT is trigerred in PBO of selection-screen.
- This allows you to modify the Selection-screen, before it is displayed.
At Selection-screen On Field is triggered in PAI of selection-screens.
- The input fields can b checked,in the corresponding event block. If an error message occurs within this event block, the corresponding field is made ready for input again on the selection screen.
At Selection-screen On Block is trigerred in PAI event.
- You define a block by enclosing the declarations of the elements in the block between the statements SELECTION-SCREEN BEGIN OF BLOCK block - END OF BLOCK block. You can use this event block to check the consistency of the input fields in the block.
At Selection-screen On value request.
- This event is trigerred for F4 help.
At Selection-screen On help request .
- This event is triggered when the user clicks F1 for help on fileds
Hope this helps.
Reward if helpful.
Regards,
Sipra