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

Former Member
0 Likes
290

Hi all,

I want to validate my selection screen.

suppose i have my select options like

select-options : s_kunnr for kna1-kunnr.

so i want to validate the select options both low and high parameter . but not like only one parameter.

so what are the steps for doing that.

i have my code which i feel validates only one parameter i.e low parameter.

<code>

if so_cust is not initial.

select single kunnr from kna1 into v_kunnr where kuunr in so_cust.

if sy-subrc ne 0.

error message.

endif.

</code>

so what i think here is we are only able to validate low- field.

plzz correct me if i am wrong and try to give me exact way of validating this select-options.

thanks,

satish

2 REPLIES 2
Read only

Former Member
0 Likes
271

Hi

Its not,If you say that

<b>IF NOT SO_KUNNR[] is Initial.</b>

select single kunnr from kna1 into v_kunnr where kuunr in so_cust.

if sy-subrc ne 0.

error message.

endif.

endif.

This will take care of both low and high values

this is correct only

Regards

Anji

Read only

Former Member
0 Likes
271

Hi,

You have use the code as below :

if not so_cust[] is initial.

select single kunnr from kna1 into v_kunnr where kuunr in so_cust.

if sy-subrc ne 0.
     error message.
endif.

endif.

Thanks,

Sriram Ponna.