‎2009 Jul 13 12:31 PM
Hi all,
i want to validate the values of select option ( in range three values are specified) now my need is if all the three values are in the check table then only proceed further else give an error message..
please help me out...
Thanks & Regards
Ashu SIngh
‎2009 Jul 13 12:34 PM
Hi,
You can use
Loop at <select-option field>.
endloop.
Regards,
Premal
‎2009 Jul 13 12:34 PM
Hi,
You can use
Loop at <select-option field>.
endloop.
Regards,
Premal
‎2009 Jul 13 12:37 PM
Hi,
Use the at selection-screen for field event to do the check.
if all the values are specified in range then you have to first check if the seepct-option-low is valid, check if select-option high is valid.
For ex if you have select-option like :
s_matnr for mara-matnr.
at selection-screen for s_matnr-low.
select single * from mara where matnr = s_matnr-low.
if sy-subrc <> 0.
error.
else.
endif.
Regards,
Himanshu
‎2009 Jul 13 12:37 PM
Dear Ashu,
Use AT SELECTION-SCREEN Event to validate your selection screen values.
write the query to validate these values in your check table under this event.
Regds,
Anil
‎2009 Jul 13 12:38 PM
Hi Ashu,
pass that three select option values to one internal table.
and under at selection-screen event write select query to pick that 3 values from the table and store it in another table.
under this event it self compare that select option internal table and internal table under at selection-screen event if that 2 tables are not equal then show error other wise proceed
thanks & Regards
Naresh