SAP CNBF_SET_DYNAMIC_FILTERS Function Module for NOTRANSL: Projekt-Infosystem: Popup zur Eingabe allgemeiner Bedingungen









CNBF_SET_DYNAMIC_FILTERS is a standard cnbf set dynamic filters SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Projekt-Infosystem: Popup zur Eingabe allgemeiner Bedingungen 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 cnbf set dynamic filters FM, simply by entering the name CNBF_SET_DYNAMIC_FILTERS into the relevant SAP transaction such as SE37 or SE38.

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



Function CNBF_SET_DYNAMIC_FILTERS 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 'CNBF_SET_DYNAMIC_FILTERS'"NOTRANSL: Projekt-Infosystem: Popup zur Eingabe allgemeiner Bedingungen
EXPORTING
I_TABNAME = "Field structure name
* I_FIELD_NAME = "Generic Type
* I_FIELDS_NAME = "Generic Type
* I_STATUS_FIELD = "Generic Type
* I_FLG_KEYS = 'X' "Checkbox
* I_FLG_FIELDS = 'X' "Checkbox
* I_FLG_UNITS = "Checkbox
* I_VARIANT_REPORT = "Predefined Type
* I_VARIANT = "ABAP System Field: Selection Screen Variant Used
* I_FLG_DISPLAY = 'X' "Selection indicator
* I_FLG_NEW_ACTUAL_FIELDS = "Selection indicator
* I_ACTION_FIELD = "Interface Structure for Func.Mod. MC_POPUP_TO_SELECT_FIELDS
* I_ACTION = "Generic Type
* I_SELTITLE = "Generic Type
* I_CHOOSETITLE = "Generic Type

CHANGING
C_HANDLE = "Memory ID for EXPORT/IMPORT memory ID

TABLES
* T_ACTUAL_FIELDS = "Interface Structure for Func.Mod. MC_POPUP_TO_SELECT_FIELDS
* T_ACTUAL_RANGES = "Structure for FM RS_REFR_FROM_DYN_SEL
T_ALL_FIELDS = "Interface Structure for Func.Mod. MC_POPUP_TO_SELECT_FIELDS
* T_INCL_FIELDS = "Structure of Excluding Tab. for FB MC_POPUP_TO_SELECT_FIELDS
* T_EXCL_FIELDS = "Structure of Excluding Tab. for FB MC_POPUP_TO_SELECT_FIELDS
* T_ACTION_RANGE = "Structure of generic SELECT-OPTION for (dynamic selections)
* T_GROUPS = "Field Groups

EXCEPTIONS
CANCEL = 1 NO_ALLOWED_FIELDS = 2
.



IMPORTING Parameters details for CNBF_SET_DYNAMIC_FILTERS

I_TABNAME - Field structure name

Data type: DFIES-TABNAME
Optional: No
Call by Reference: No ( called with pass by value option)

I_FIELD_NAME - Generic Type

Data type: CLIKE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_FIELDS_NAME - Generic Type

Data type: CLIKE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_STATUS_FIELD - Generic Type

Data type: CLIKE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_FLG_KEYS - Checkbox

Data type: XFELD
Default: 'X'
Optional: Yes
Call by Reference: Yes

I_FLG_FIELDS - Checkbox

Data type: XFELD
Default: 'X'
Optional: Yes
Call by Reference: Yes

I_FLG_UNITS - Checkbox

Data type: XFELD
Optional: Yes
Call by Reference: Yes

I_VARIANT_REPORT - Predefined Type

Data type: SY-REPID
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_VARIANT - ABAP System Field: Selection Screen Variant Used

Data type: SY-SLSET
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_FLG_DISPLAY - Selection indicator

Data type: RC27X-FLG_SEL
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_FLG_NEW_ACTUAL_FIELDS - Selection indicator

Data type: RC27X-FLG_SEL
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_ACTION_FIELD - Interface Structure for Func.Mod. MC_POPUP_TO_SELECT_FIELDS

Data type: MCS01
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_ACTION - Generic Type

Data type: CLIKE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_SELTITLE - Generic Type

Data type: CLIKE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_CHOOSETITLE - Generic Type

Data type: CLIKE
Optional: Yes
Call by Reference: No ( called with pass by value option)

CHANGING Parameters details for CNBF_SET_DYNAMIC_FILTERS

C_HANDLE - Memory ID for EXPORT/IMPORT memory ID

Data type: ABAP-MEMORY_ID
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for CNBF_SET_DYNAMIC_FILTERS

T_ACTUAL_FIELDS - Interface Structure for Func.Mod. MC_POPUP_TO_SELECT_FIELDS

Data type: MCS01
Optional: Yes
Call by Reference: No ( called with pass by value option)

T_ACTUAL_RANGES - Structure for FM RS_REFR_FROM_DYN_SEL

Data type: RSSELDYN
Optional: Yes
Call by Reference: No ( called with pass by value option)

T_ALL_FIELDS - Interface Structure for Func.Mod. MC_POPUP_TO_SELECT_FIELDS

Data type: MCS01
Optional: No
Call by Reference: No ( called with pass by value option)

T_INCL_FIELDS - Structure of Excluding Tab. for FB MC_POPUP_TO_SELECT_FIELDS

Data type: MCS02
Optional: Yes
Call by Reference: No ( called with pass by value option)

T_EXCL_FIELDS - Structure of Excluding Tab. for FB MC_POPUP_TO_SELECT_FIELDS

Data type: MCS02
Optional: Yes
Call by Reference: No ( called with pass by value option)

T_ACTION_RANGE - Structure of generic SELECT-OPTION for (dynamic selections)

Data type: RSDSSELOPT
Optional: Yes
Call by Reference: No ( called with pass by value option)

T_GROUPS - Field Groups

Data type: CNFA_GROUPS
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

CANCEL - Cancel

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NO_ALLOWED_FIELDS - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for CNBF_SET_DYNAMIC_FILTERS 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_cancel  TYPE STRING, "   
lv_c_handle  TYPE ABAP-MEMORY_ID, "   
lv_i_tabname  TYPE DFIES-TABNAME, "   
lt_t_actual_fields  TYPE STANDARD TABLE OF MCS01, "   
lv_i_field_name  TYPE CLIKE, "   
lv_i_fields_name  TYPE CLIKE, "   
lv_i_status_field  TYPE CLIKE, "   
lv_i_flg_keys  TYPE XFELD, "   'X'
lv_i_flg_fields  TYPE XFELD, "   'X'
lv_i_flg_units  TYPE XFELD, "   
lt_t_actual_ranges  TYPE STANDARD TABLE OF RSSELDYN, "   
lv_i_variant_report  TYPE SY-REPID, "   
lv_no_allowed_fields  TYPE SY, "   
lv_i_variant  TYPE SY-SLSET, "   
lt_t_all_fields  TYPE STANDARD TABLE OF MCS01, "   
lv_i_flg_display  TYPE RC27X-FLG_SEL, "   'X'
lt_t_incl_fields  TYPE STANDARD TABLE OF MCS02, "   
lt_t_excl_fields  TYPE STANDARD TABLE OF MCS02, "   
lv_i_flg_new_actual_fields  TYPE RC27X-FLG_SEL, "   
lv_i_action_field  TYPE MCS01, "   
lt_t_action_range  TYPE STANDARD TABLE OF RSDSSELOPT, "   
lv_i_action  TYPE CLIKE, "   
lt_t_groups  TYPE STANDARD TABLE OF CNFA_GROUPS, "   
lv_i_seltitle  TYPE CLIKE, "   
lv_i_choosetitle  TYPE CLIKE. "   

  CALL FUNCTION 'CNBF_SET_DYNAMIC_FILTERS'  "NOTRANSL: Projekt-Infosystem: Popup zur Eingabe allgemeiner Bedingungen
    EXPORTING
         I_TABNAME = lv_i_tabname
         I_FIELD_NAME = lv_i_field_name
         I_FIELDS_NAME = lv_i_fields_name
         I_STATUS_FIELD = lv_i_status_field
         I_FLG_KEYS = lv_i_flg_keys
         I_FLG_FIELDS = lv_i_flg_fields
         I_FLG_UNITS = lv_i_flg_units
         I_VARIANT_REPORT = lv_i_variant_report
         I_VARIANT = lv_i_variant
         I_FLG_DISPLAY = lv_i_flg_display
         I_FLG_NEW_ACTUAL_FIELDS = lv_i_flg_new_actual_fields
         I_ACTION_FIELD = lv_i_action_field
         I_ACTION = lv_i_action
         I_SELTITLE = lv_i_seltitle
         I_CHOOSETITLE = lv_i_choosetitle
    CHANGING
         C_HANDLE = lv_c_handle
    TABLES
         T_ACTUAL_FIELDS = lt_t_actual_fields
         T_ACTUAL_RANGES = lt_t_actual_ranges
         T_ALL_FIELDS = lt_t_all_fields
         T_INCL_FIELDS = lt_t_incl_fields
         T_EXCL_FIELDS = lt_t_excl_fields
         T_ACTION_RANGE = lt_t_action_range
         T_GROUPS = lt_t_groups
    EXCEPTIONS
        CANCEL = 1
        NO_ALLOWED_FIELDS = 2
. " CNBF_SET_DYNAMIC_FILTERS




ABAP code using 7.40 inline data declarations to call FM CNBF_SET_DYNAMIC_FILTERS

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.

 
"SELECT single MEMORY_ID FROM ABAP INTO @DATA(ld_c_handle).
 
"SELECT single TABNAME FROM DFIES INTO @DATA(ld_i_tabname).
 
 
 
 
 
DATA(ld_i_flg_keys) = 'X'.
 
DATA(ld_i_flg_fields) = 'X'.
 
 
 
"SELECT single REPID FROM SY INTO @DATA(ld_i_variant_report).
 
 
"SELECT single SLSET FROM SY INTO @DATA(ld_i_variant).
 
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_i_flg_display).
DATA(ld_i_flg_display) = 'X'.
 
 
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_i_flg_new_actual_fields).
 
 
 
 
 
 
 


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!