SAP DRF_DISPLAY_FILTERED_OBJECTS Function Module for Display Filtered Objects









DRF_DISPLAY_FILTERED_OBJECTS is a standard drf display filtered objects SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Display Filtered Objects processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for drf display filtered objects FM, simply by entering the name DRF_DISPLAY_FILTERED_OBJECTS into the relevant SAP transaction such as SE37 or SE38.

Function Group: DRF_FILTER
Program Name: SAPLDRF_FILTER
Main Program: SAPLDRF_FILTER
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function DRF_DISPLAY_FILTERED_OBJECTS pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'DRF_DISPLAY_FILTERED_OBJECTS'"Display Filtered Objects
EXPORTING
IS_STAT_ID = "Key Fields of Statistical Information
IV_IGNORE_FILTER = "Configured Filter Criteria are/were ignored
IT_FILTER_VALUE = "Filter Criteria for Explicit Filters
IT_EXTERNAL_CRITERIA = "External Filter Criteria
IT_UNFILTERED_OBJECTS = "Objects Before Filter Execution
IT_FILTERED_OBJECTS = "Objects after Filter Execution
IV_SHOW_RESTART_BUTTON = "Show restart button for root filter object
.



IMPORTING Parameters details for DRF_DISPLAY_FILTERED_OBJECTS

IS_STAT_ID - Key Fields of Statistical Information

Data type: DRF_S_STAT_ID
Optional: No
Call by Reference: Yes

IV_IGNORE_FILTER - Configured Filter Criteria are/were ignored

Data type: ABAP_BOOL
Optional: No
Call by Reference: Yes

IT_FILTER_VALUE - Filter Criteria for Explicit Filters

Data type: DRF_T_FILTER_VALUE
Optional: No
Call by Reference: Yes

IT_EXTERNAL_CRITERIA - External Filter Criteria

Data type: RSDS_TRANGE
Optional: No
Call by Reference: Yes

IT_UNFILTERED_OBJECTS - Objects Before Filter Execution

Data type: INDEX TABLE
Optional: No
Call by Reference: Yes

IT_FILTERED_OBJECTS - Objects after Filter Execution

Data type: INDEX TABLE
Optional: No
Call by Reference: Yes

IV_SHOW_RESTART_BUTTON - Show restart button for root filter object

Data type: ABAP_BOOL
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for DRF_DISPLAY_FILTERED_OBJECTS Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.

DATA:
lv_is_stat_id  TYPE DRF_S_STAT_ID, "   
lv_iv_ignore_filter  TYPE ABAP_BOOL, "   
lv_it_filter_value  TYPE DRF_T_FILTER_VALUE, "   
lv_it_external_criteria  TYPE RSDS_TRANGE, "   
lv_it_unfiltered_objects  TYPE INDEX TABLE, "   
lv_it_filtered_objects  TYPE INDEX TABLE, "   
lv_iv_show_restart_button  TYPE ABAP_BOOL. "   

  CALL FUNCTION 'DRF_DISPLAY_FILTERED_OBJECTS'  "Display Filtered Objects
    EXPORTING
         IS_STAT_ID = lv_is_stat_id
         IV_IGNORE_FILTER = lv_iv_ignore_filter
         IT_FILTER_VALUE = lv_it_filter_value
         IT_EXTERNAL_CRITERIA = lv_it_external_criteria
         IT_UNFILTERED_OBJECTS = lv_it_unfiltered_objects
         IT_FILTERED_OBJECTS = lv_it_filtered_objects
         IV_SHOW_RESTART_BUTTON = lv_iv_show_restart_button
. " DRF_DISPLAY_FILTERED_OBJECTS




ABAP code using 7.40 inline data declarations to call FM DRF_DISPLAY_FILTERED_OBJECTS

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
 
 
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!