Application Development and Automation 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: 
Read only

selection screen validation

Former Member
0 Likes
607

hi experts,

i have three selection screens like matnr-ekpo,ebeln-ekpo, ihrez-ekko. how can i validate each selection screen?

plzz tell me.

thanks

5 REPLIES 5
Read only

Former Member
0 Likes
580

Hi,

you need to use AT SELECTION-SCREEN ON FILED_NAME event.

data : so_ekpo for matnr-ekpo.

at selection-screen on so_ekpo.

**your validation code***

regards

Jijo

Read only

Former Member
0 Likes
580

Hi Paramabap,

Put this code in the at selection-screen event......

as mentioned in above thread....

Select field 1

field2

into itab

from table

where ekpo = so_ekpo.

If sy-subrc <> 0.

Give error

Endif.

Likekewise....

depends upon the requirement whether its necessary to fill all the fields or not...

Mohinder

Edited by: Mohinder Singh Chauhan on Aug 4, 2008 10:04 AM

Read only

0 Likes
580

Hi,

using AT SELECTION SCREEN Event screen validations can be done.

DATA: sflight_tab TYPE TABLE OF sflight,

sflight_wa LIKE LINE OF sflight_tab.

  • Selection screens

PARAMETERS p_carrid TYPE spfli-carrid.

SELECTION-SCREEN BEGIN OF SCREEN 500.

SELECT-OPTIONS s_conn FOR sflight_wa-connid.

DATA s_conn_wa LIKE LINE OF s_conn.

SELECTION-SCREEN END OF SCREEN 500.

  • Handling selection screen events

AT SELECTION-SCREEN ON p_carrid.

IF p_carrid IS INITIAL.

MESSAGE 'Please enter a value' TYPE 'E'.

ENDIF.

Thanks,

Nelson

Read only

0 Likes
580

Hi,

Use

At selection-screen on block or

At selection-screen on field statments....

Raghav

Read only

Former Member
0 Likes
580

Search in SDN with term Loop at screen you will get your answer.

Amit.