Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

ALV filter with own logic

former_member517
Participant
0 Kudos

Hello colleagues out there,

I have a request from my users concerning ALV filtering. They want to have filters of the kind :

- A = 5 or B = 6

- A + B > C

(A, B, C Columns of the table)

Surely I can implement such rules "hard" coded in the ABAP. But my question is: Is there are more generic way, that allows the users to define their filter rules themselves without having to modify my programs ?

Many thanky for your help

Rabanus Diehl

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi rabanus,

1. A = 5 can be done

B = 6 can be done

but OR conditions, between two fields cannot be done,

in standard alv filter functionality.

2. A + B > C

cannot be done,

bcos it allows filter only one one field, by one field,

not

using some expressions/equations.

regards,

amit m.

3 REPLIES 3

Former Member
0 Kudos

Hi rabanus,

1. A = 5 can be done

B = 6 can be done

but OR conditions, between two fields cannot be done,

in standard alv filter functionality.

2. A + B > C

cannot be done,

bcos it allows filter only one one field, by one field,

not

using some expressions/equations.

regards,

amit m.

Former Member
0 Kudos

If you can use ALV for displaying your report, the users can set the filter by themselves and the data will be automtically filtered. You don't have to do a single change to your program.

They can even save the filter criteria.

Regards,

Ravi

Note : Please mark all the helpful answers

0 Kudos

I am not sure, if you got my point. The feature of ALV filtering is well known to me.

My question is: Has anybody written a kind of popup, where the user can enter his filter expression like a condition in an IF statement and then apply this condition to the internal table like the standard ALV filter does ?

Best regards

Rabanus Diehl