Ansicht
Dokumentation

ABENFILTER_TABLE_CONDITION_ABEXA - FILTER TABLE CONDITION ABEXA

ABENFILTER_TABLE_CONDITION_ABEXA - FILTER TABLE CONDITION ABEXA

CL_GUI_FRONTEND_SERVICES - Frontend Services   General Material Data  
This documentation is copyright by SAP AG.
SAP E-Book

FILTER, Filterings with Table Filter

This example demonstrates various types of table filtering using a filter table.

Source Code

Execute

Description

A table itab contains five random numbers between 1 and 7, a table ftab contains five random numbers between 3 and 10. Different types of table filters for itab are performed using the table ftab as a filter table:

  • The first filtering creates a table of all lines from itab for which there is at least one line with the same value in ftab.
  • The second filtering creates a table of all lines from itab for which there is no line with the same value in ftab.
  • The third filtering creates a table of all lines from itab for which there is at least one line with a lesser value in ftab.
  • The fourth filtering creates a table of all lines from itab for which there is at least one line with a non-equal value in ftab.
  • The fifth filtering creates a table of all lines from itab for which there is at least one line with a greater or lesser value in ftab.

When merged, the results from the first and second filtering are all lines from itab. The first filtering creates the union and the second filtering the difference of the two tables itab and ftab.

The fourth filtering does not produce the same result as the second filtering. The fifth filtering does not produce the lines from itab that remain after the third filtering.






BAL Application Log Documentation   Addresses (Business Address Services)  
This documentation is copyright by SAP AG.

Length: 1921 Date: 20240419 Time: 012339     sap01-206 ( 40 ms )