02-18-2015 5:28 PM
Dear community,
I have a BAdI with 2 filters, field 1 and field 2.
I want to implement this BAdI with a very simple filter, but it looks like I can't do it.
I want:
Field 1 = 'A' AND Field 2 <> 'B'.
It seems that all I can do between two different fields is an 'OR'.
Any help will be much appreciated.
Thank you.
Kind regards,
Bruno
02-18-2015 6:20 PM
is it custom badi or standard and once check the attribute of badi
02-18-2015 6:20 PM
is it custom badi or standard and once check the attribute of badi
02-18-2015 6:25 PM
Hi reddy,
Thanks for replying. Maybe some more information wouldn't hurt
I'm talking about these filters:
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/44/f6cd83912541aae10000000a114a6b/content.htm
I cannot create a condition with 2 different fields using an "AND" operator, no matter how hard I try. Only "OR" is allowed. This is useless!
For example, let's say you want to create a BAdI implementation for sales organization X, distribution channel Y. This is impossible!!
Thank you,
Bruno
02-18-2015 6:37 PM
Hi Bruno,
I just tried it myself and was able to create AND operator. The trick was to click on the first part of the filter and then on AND. This created the AND operator as shown below.
According to the documentation it is not possible to link filter combinations via the AND operator. Filter combinations are always linked using the OR operator.
Hope this helps.
Christian
02-18-2015 6:40 PM
Hi Christian,
I thank you for your effort and I will reward you with points.
However, the "key word" in this discussion is that I am talking about two different fields.
A logical condition with "AND" between the same field is pretty much useless (unless if you want some field to be different to this and different to that, but that's not what I want).
Thank you!
Bruno
02-18-2015 6:41 PM
Think of the situation I mention above. What if you want to create an implementation of a BAdI to sales organization X and distribution channel Y, for example.
This is something very common and it *should* be possible. I can't believe this isn't possible with a BAdI filter.
Thanks,
Bruno
02-19-2015 7:08 AM
Hi Bruno,
OK, you are right, I missed the point with my first reply. However, I gave it another try and was able to create a BAdI with a AND combination of two filter values.
First I created a custom BAdI with two possible filter.
Next I created an implementation and an new filter combination. I selected both filters in the pop up window (I did this by holding the <ctrl> key when clicking on the different rows).
This automatically created the AND combination of the two filters.
Hope this helps.
Best,
Christian
02-19-2015 8:45 AM
In Portugal we have this saying (it doesn't translate very well):
Not knowing is like not seeing.
So simple and yet, I didn't think of it. Thanks so much.
If you're ever in the area, let me buy you a drink
Kind regards,
Bruno
02-19-2015 9:56 AM
Hi Bruno,
sounds good. If I will ever be in Portugal I'll drop you a note.
Christian