‎2009 Aug 29 8:19 AM
in my report i have selectio-screen fiels s_lifnr.
I want to display only records betweeb two values.
ex. it should disply records between 100 and 300 including both limits.
here 100 and 300 are not fixed.may vary
but it is displaying all records.(i.e. starting from 100 upto 900 )
i wrote like this.
Initialization.
clear So_lifnr.
so_lifnr-SIGN = 'I'.
so_lifnr-OPTION = 'BT'.
APPEND so_lifnr.
thanks
‎2009 Aug 29 8:26 AM
Hello Ravi,
can u tell me wat exact code you have written...
your code should be like...
so_lifnr-high = '0000000100'
so_lifnr-low = '0000000300'
so_lifnr-SIGN = 'I'.
so_lifnr-OPTION = 'BT'.
append so_lifnr.
it will surely work
Note: if you are using select option thn no need for this code.. it is only required if u are using range and not select option.
‎2009 Aug 29 8:30 AM
nothing to change in code.
no initialization needed.
select option by default comes with BT facility.
why do you need a code for this?
its just
select-options s_lifnr for abcd-lifnr.
‎2009 Aug 29 9:24 AM
hi
Ravi,
If u r using select-options by default it will fetch all the values between low and high value no need to initiliaze this.,.,.,
If u r going for ranges it may be useful..
Thanks and REgards,
Thirukumaran. R
‎2009 Aug 29 10:22 AM
Hi Ravi ,
You need not to do anything with select option.
Provide selection screen validation on the field and restrict the entries between 100 and 300.Display an error message if a user enters some other value.
Also, you an set default value if required.
Hope it helps you.
‎2009 Aug 29 11:46 AM
Hi,
As per my understanding you need a select-option with the defaults between two intervals. you need to get the values in the f4 function with the limits entered on the selection. if so write the coding for at selection-screen on field s_lifnr.
Regards,
Venkat.
‎2009 Aug 31 7:09 AM