2014 Oct 16 7:11 AM
Hi Everyone,
This is my code, I need to exclude my select options
ranges : v_dat for *****
v_dat-sign = 'I'.
v_dat-option = 'BT'.
V_dat-low = '00000000'.
v_dat-high = sy-datum-days.( days(03) default '01').
append v_dat.
select * from table
into coress field of table itab
where date in v_dat.
If i use this condition i am getting values....but if i use sign I or option EQ...in case all the values r selected........but for abv condition exclude selection is not wrking
Much better but I'm sorry, that's still not clear (to me anyway). Try using sentences!
How about an example, with actual dates.
cheers
Paul
2014 Oct 16 7:14 AM
Hi,
I --> Include
E --> Exclude
BT --> Between
so just change the sign.
regards
Fred
2014 Oct 16 7:32 AM
I have tried that but in output all the vales r fetched....not from the ranges given
2014 Oct 16 8:26 AM
Hi,
Just to eliminate potential problem .
Is field date was added after there were some data in the table ?
Do a test and try:
select * from table
into corresponding field of table ITAB
where
date in v_dat or
date EQ null or
date EQ space .
Regards.
2014 Oct 16 8:36 AM
Your post title is misleading .
You use 'I' sign and you call it exclude .
Next time call the post something like "Range selection does not work as expected"
Regards.
2014 Oct 16 10:36 AM
" in case all the values r selected........but for abv condition exclude selection is not wrking "
Are the vowels missing on your keyboard?
It's not clear to me what you are saying here - what does your SELECT resolve to, what values are you actually getting, and what are you expecting?
Friendly tip: If you want quick, good quality answers you should spend a bit of time composing a legible question.
cheers
Paul
2014 Oct 16 11:16 AM
Sorry for my words.....actually .......if i use sign 'E' in case the excluded values bt 00000 and sy-datum-days only i am getting......if iam having 10 values in my range....and in that 5 th value iam giving in the select option ]X[ exclude range in case ......not the given value is printing but all the value as usuall
2014 Oct 16 11:14 PM
Much better but I'm sorry, that's still not clear (to me anyway). Try using sentences!
How about an example, with actual dates.
cheers
Paul
2014 Oct 17 3:30 AM
Hi Bharani,
For exclude, values need to be fed in exclude tab of selection parameter.
Thanks,
Anil
2014 Oct 17 2:37 PM
In a range/select-options
∞,A] and ]B,+ ∞] to selectionRegards,
Raymond
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |