‎2007 May 28 7:59 AM
I need to know the difference between
Difference between At selection-screen and At selection-screen field
Regards
Shashi
‎2007 May 28 8:02 AM
Hi
At selection-screen is used to validate all the fields on the selection screen
where as At selection-screen on field is used to validate only that particular field
Reward points if useful
Regards
Anji
‎2007 May 28 8:01 AM
Hi Shashi,
As the name itself suggest,
At selection-screen - This event will be called and all the fields on the selection screen will be availabe under this
and At selection-screen field - It will be called only when you do something on the field specified here.
Reward points if useful.
Regards,
Atish
‎2007 May 28 8:02 AM
Hi
At selection-screen is used to validate all the fields on the selection screen
where as At selection-screen on field is used to validate only that particular field
Reward points if useful
Regards
Anji
‎2007 May 28 8:03 AM
At selection-screen is the event in list processing before start of selection.
and it can b used in various forms as:
At selection-screen field is used or writing the validation for that field.
At selection-screen output is for making screen active/inactive
‎2007 May 28 8:05 AM
Hi,
AT SELECTION-SCREEN is the event triggered in the PAI of the selection screen.
AT SELECTION-SCREEN on field field_name is the event specific to the field and is triggered when u press enter in that field.
AT SELECTION-SCREEN selscreen_event.
Effect
This statement defines event blocks for different events selscreen_event that are triggered by the ABAP runtime environment during selection screen processing.
Selection screen events occur immediately before sending a selection screen and after certain user actions on a displayed selection screen. They assist in selection screen processing in the ABAP program.
AT SELECTION-SCREEN is triggered at least twice during actions on selection screens that are linked into another selection screen as a subscreen - first for the linked selection screen itself, and then for the linking selection screens.
SELECTION-SCREEN FIELD SELECTION
FOR {NODE|TABLE} node [ID id].
Effect
This statement defines a node node in the structure of the logical database for field selection. If a node belongs to type T, you can use the TABLE addition instead of NODE. The statement cannot be used for type C nodes. .
If a node is defined for field selection, you can use an executable program linked to the logical database in the GET statement to control which fields in the node are to be read by the logical database. If you use the function module LDB_PROCESS, the FIELD_SELECTION parameter must be specified accordingly.
for more details check this link...
http://help.sap.com/saphelp_46c/helpdata/en/9f/db9a2e35c111d1829f0000e829fbfe/frameset.htm
Regards,
Priyanka.
‎2007 May 28 8:05 AM
Hello,
At selection-screen for field will be called first and At selection-screen will have the lowest priority.
If you want to validate a particular field in the selection screen you can go in for At selection-screen for field.
If you need general validation then you can do them in At selection-screen event.
Any error message in AT SELECTION-SCREEN FOR FIELD will open the field for input so that user can fill in valid details. But error message in AT SELECTION-SCREEN will close all the fields.
So depending upon the requirement you can use these events.
Thanks and regards,
S. Chandra Mouli.
‎2007 May 28 8:05 AM
When field validetion, if the field became invalid in 'At selection-screen field' for a field, the screen will displayed and only the respective fields mentioned in the 'At selection-screen field' statement will be editable and rest of the field will become non-editable.
while for At selection-screen statement all elements in the screen will be editable in the same case.
‎2007 May 28 8:06 AM
‎2007 May 28 8:06 AM
Hi Shashi,
At selection-screen statement has various varients,
in that At selection-screen field is one type,
But , if u go with At selection-screen statement, it validates all the fields which are displayed in the screen,
if u go with At selection-screen field, it validates that particular fields which u mention in field place,
If it is useful, some rewards
Regards,
bhaskar
‎2007 May 28 8:08 AM
hi,
AT Selection-screen field
This event is assigned to the selection screen fields corresponding to the report parameter or selection criterion psel.
If the report starts an error dialog at this point, precisely these fields become ready for input.
At selection-screen
but at selection screen can validate all the fields in the selction screen.
‎2007 May 28 8:12 AM
Hi,
The basic form of the selection screen events is the <b>AT SELECTION-SCREEN</b> 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.
<b>At Selection-screen On Field</b> 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.
Hope this helps.
Reward if helpful.
Regards,
Sipra
‎2007 May 28 8:16 AM