2007 Dec 21 5:35 AM
In which event we use to validate the screen fileds in a reports?
Give me an example pls..
Regards,
pandu.
2007 Dec 21 5:36 AM
at-selectionscreen
AT SELECTION-SCREEN
This event is processed before leaving the Selection Screen i.e. when the selection screen has been processed (at the end of PAI once the ABAP runtime environment has passed all the input data from selection screen to the ABAP program).
This event is used to validate the input provided through selection screen. If an error message occurs in this processing block, the selection screen is redisplayed with all of its fields ready for input. This allows you to check input values for consistency.
with this link you will get complete idea about the at selection screen events
http://help.sap.com/saphelp_nw04/helpdata/en/56/1eb6c705ad11d2952f0000e8353423/content.htm
Regards
Edited by: p498863 on Dec 21, 2007 6:37 AM
2007 Dec 21 5:40 AM
Hi,
AT SELECTION-SCREEN - selscreen_event
Syntax
...
| { ON {para|selcrit} }
| { ON END OF selcrit }
| { ON BLOCK block }
| { ON RADIOBUTTON GROUP radi }
| { }
| { ON {HELP-REQUEST|VALUE-REQUEST}
| FOR {para|selcrit-low|selcrit-high} }
| { ON EXIT-COMMAND }.
Alternatives:
1. ... OUTPUT
2. ... ON {para|selcrit}
3. ... ON END OF selcrit
4. ... ON BLOCK block
5. ... ON RADIOBUTTON GROUP radi
6. ... { }
7. ... ON {HELP-REQUEST|VALUE-REQUEST} FOR
{para|selcrit-low|selcrit-high} }
8. ... ON EXIT-COMMAND
Regards,
Prashant
2007 Dec 21 5:54 AM
Hi Pandu,
AT SELECTION SCREEN IS used to validate selection screen inputs by the user after the selections creen is displayed.
Check the Links
http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/at_selec.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dba66935c111d1829f0000e829fbfe/frameset.htm
Kanagaraja L
2007 Dec 21 6:04 AM
Hi pandu,
U validate ur selection screen field value
AT SELECTION-SCREEN ON P_MATNR.
REGARDS
SRIMANTA
2007 Dec 21 6:15 AM
Hi Pandurangarao,
At Selection-screen is the best Event to Validate Screen Fields.
If you want to validate on screen field value.
use this event At Selection-screen on <field name>.
See this link.
http://help.sap.com/saphelp_nw04s/helpdata/en/9f/db9a2e35c111d1829f0000e829fbfe/frameset.htm
Plzz Reward if useful,
Mahi.
2007 Dec 23 11:28 AM
2007 Dec 21 6:24 AM
Hi pandu RangaRao,
This is kiran kumar.G(working on SAP).I will send a same code for u.plz check it once.It is very much uesful for u.
If u r satisfy with my answer give me REWARD POINTS..
VALIDATIONS CAN BE USED IN "AT SELECTION-SCREEN"
EVENT.
EX:
AT SELECTION-SCREEN.
select single vbeln
from vbak
into vbak-vbeln
where vbeln in s_vbeln.
CODE:
TABLES: VBAK. "COMPULSORY WE HAVE TO MENTION
SELECT-OPTIONS: S_VBELN FOR VBAK-VBELN.
*For Validations
AT SELECTION-SCREEN.
select single vbeln
from vbak
into vbak-vbeln
where vbeln in s_vbeln.
Regards,
Kiran Kumar.G