‎2009 Apr 07 3:45 PM
hi
select-option for character data in from and to fields
how to check so that the data in high can be less or greater than low value
‎2009 Apr 07 3:49 PM
Hi,
at selection-screen.
loop at s_op
if s_op-low ...s_op-high.
endif.
endloop.
Regards,
Leo.
‎2009 Apr 07 3:52 PM
hi i need to process character data
so do not any error message even if low is greater than high
"means need to eliminate standard error for select-option"
‎2009 Apr 07 3:54 PM
how will you know if ABAP is greater than SAP ?
TABLES makt.
SELECT-OPTIONS: so_char FOR makt.try giving Abap and sap and sap and abap
‎2009 Apr 07 4:12 PM
s u can check
makt-matnr is actually number field
try with makt-matkx for select-option
and enter "z" and "a" as low and high
it will show error
‎2009 Apr 07 4:13 PM
i think u need to proceed like the following found in help for select-option
so exploring how to use...check this and reply
parameters: dbtab type c length 30,
column type c length 30.
data name(80) type c.
selection-screen begin of screen 500 as window.
select-options selcrit for (name).
selection-screen end of screen 500.
concatenate dbtab '-' column into name.
call selection-screen 500 starting at 10 10.
‎2009 Apr 07 4:22 PM
Hi Ajay,
If you entering the char in the select options then the comparison between From and to will be taken care by the system. Like as you said if Z in From and A in TO then it gives the error.
But the problem you face when you have the combination of the char and number..the high and low compassion will be different.
‎2009 Apr 07 4:22 PM
‎2009 Apr 07 3:52 PM
The system by default checks if low is greater than high value ...
‎2009 Apr 07 3:52 PM