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

validating field value..

Former Member
0 Likes
674

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

1 ACCEPTED SOLUTION
Read only

premal_mistry2
Active Participant
0 Likes
642

Hi,

You can use

Loop at <select-option field>.

endloop.

Regards,

Premal

4 REPLIES 4
Read only

premal_mistry2
Active Participant
0 Likes
643

Hi,

You can use

Loop at <select-option field>.

endloop.

Regards,

Premal

Read only

Former Member
0 Likes
642

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

Read only

Former Member
0 Likes
642

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

Read only

former_member206439
Contributor
0 Likes
642

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