Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

validate the screen fileds in a reports

Former Member
0 Kudos
2,695

In which event we use to validate the screen fileds in a reports?

Give me an example pls..

Regards,

pandu.

7 REPLIES 7

Former Member
0 Kudos
501

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

former_member386202
Active Contributor
0 Kudos
501

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

Kanagaraja_L
Active Contributor
0 Kudos
501

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

Former Member
0 Kudos
501

Hi pandu,

U validate ur selection screen field value

AT SELECTION-SCREEN ON P_MATNR.

REGARDS

SRIMANTA

Former Member
0 Kudos
501

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.

0 Kudos
501

Thank u .

Regards,

pandu.

Former Member
0 Kudos
501

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