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: 

Filter on two columns : ALV List display

Former Member
0 Kudos

Hello,

I am using REUSE_ALV_LIST_DISPLAY to display a report. The sample report as below :

Matnr qty1 qty2

-


1234 1.00 0.00

ABCD 0.00 0.00

5678 0.00 1.00

After display of the report, user wants to filter on the quantity fields where qty1 = 0.00 AND qty2 = 0.00.

User will execute the report. Output is displayed. Then user clicks on qty1 and qty2 field heading. Then user clicks on filter (funnel) button. Then a small popup will appear which will display two filter fields qty1 and qty2. Then user will enter filter criteria for qty1/qty2 columns as :

qty1 = 0.00 (here '=' symbol is in red meaning 'exclude' the rows having zeroes

in qty1 column)

qty2 = 0.00 (here '=' symbol is in red meaning 'exclude' the rows having zeroes

in qty2 column)

Once the user presses the enter button of this popup window, the filter criteria is applied and the whole report is becoming empty. Because in the above example all the three rows are having the zeroes in qty1 or qty2 columns. So logically the filter criteria applied was qty1 = 0.00 OR qty2 = 0.00

The expected output after applying the filter was just one row like below because both qty1 and qty2 are having zeroes. Logically the filter criteria applied should have been qty1 = 0.00 AND qty2 = 0.00

Matnr qty1 qty2

-


ABCD 0.00 0.00

How to solve this problem?

Regards

Rajesh.

1 REPLY 1

Former Member
0 Kudos

hi,

i think u have to apply logic for filter in report itself....