‎2007 Oct 11 6:45 PM
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
‎2007 Oct 11 6:51 PM
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
‎2007 Oct 11 7:03 PM
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.