‎2008 Aug 04 8:54 AM
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
‎2008 Aug 04 8:59 AM
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
‎2008 Aug 04 9:00 AM
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
‎2008 Aug 04 9:04 AM
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
‎2008 Aug 04 9:07 AM
Hi,
Use
At selection-screen on block or
At selection-screen on field statments....
Raghav
‎2008 Aug 04 9:30 AM
Search in SDN with term Loop at screen you will get your answer.
Amit.