SAP BD_CO_GET_FILTER_DATA Function Module for UCES: Return Filter Data









BD_CO_GET_FILTER_DATA is a standard bd co get filter data SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for UCES: Return Filter Data 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 bd co get filter data FM, simply by entering the name BD_CO_GET_FILTER_DATA into the relevant SAP transaction such as SE37 or SE38.

Function Group: BDISU_CO
Program Name: SAPLBDISU_CO
Main Program: SAPLBDISU_CO
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function BD_CO_GET_FILTER_DATA 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 'BD_CO_GET_FILTER_DATA'"UCES: Return Filter Data
EXPORTING
* I_SPRAS = SY-LANGU "Language Key
I_PARTNER = "Business Partner Number
* I_ACCOUNT = "Contract Account Number
* I_DATE = SY-DATUM "UCES: Filter Selection Date - From
* I_USER = SY-UNAME "User Name in User Master Record
* I_ABBP_ADJ = "
* I_APP_ADJ = "Indicator

IMPORTING
RETURN = "Return Parameter(s)
E_FILTER_CA = "Table Category for UCES_FILTER_CA
E_FILTER_CONTRACT = "Table Category for UCES_FILTER_CONTRACT
E_FILTER_PREMISE = "Table Category for UCES_FILTER_PREMISE
E_FILTER_DIVISION = "Table Category for UCES_FILTER_DEVISION

TABLES
* XT_UCES_EXTENSION = "UCES: Display Customer-Specific Fields from JSP
.



IMPORTING Parameters details for BD_CO_GET_FILTER_DATA

I_SPRAS - Language Key

Data type: SPRAS
Default: SY-LANGU
Optional: No
Call by Reference: No ( called with pass by value option)

I_PARTNER - Business Partner Number

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

I_ACCOUNT - Contract Account Number

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

I_DATE - UCES: Filter Selection Date - From

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

I_USER - User Name in User Master Record

Data type: USR04-BNAME
Default: SY-UNAME
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_ABBP_ADJ -

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

I_APP_ADJ - Indicator

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

EXPORTING Parameters details for BD_CO_GET_FILTER_DATA

RETURN - Return Parameter(s)

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

E_FILTER_CA - Table Category for UCES_FILTER_CA

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

E_FILTER_CONTRACT - Table Category for UCES_FILTER_CONTRACT

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

E_FILTER_PREMISE - Table Category for UCES_FILTER_PREMISE

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

E_FILTER_DIVISION - Table Category for UCES_FILTER_DEVISION

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

TABLES Parameters details for BD_CO_GET_FILTER_DATA

XT_UCES_EXTENSION - UCES: Display Customer-Specific Fields from JSP

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

Copy and paste ABAP code example for BD_CO_GET_FILTER_DATA 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_return  TYPE BAPIRET2, "   
lv_i_spras  TYPE SPRAS, "   SY-LANGU
lt_xt_uces_extension  TYPE STANDARD TABLE OF UCES_TAB_DUMMY, "   
lv_i_partner  TYPE GPART_KK, "   
lv_e_filter_ca  TYPE UCES_TAB_FILTER_CA, "   
lv_i_account  TYPE VKONT_KK, "   
lv_e_filter_contract  TYPE UCES_TAB_FILTER_CONTRACT, "   
lv_i_date  TYPE UCES_CO_FILTER_FROM, "   SY-DATUM
lv_e_filter_premise  TYPE UCES_TAB_FILTER_PREMISE, "   
lv_i_user  TYPE USR04-BNAME, "   SY-UNAME
lv_e_filter_division  TYPE UCES_TAB_FILER_DIVISION, "   
lv_i_abbp_adj  TYPE REGEN-KENNZX, "   
lv_i_app_adj  TYPE REGEN-KENNZX. "   

  CALL FUNCTION 'BD_CO_GET_FILTER_DATA'  "UCES: Return Filter Data
    EXPORTING
         I_SPRAS = lv_i_spras
         I_PARTNER = lv_i_partner
         I_ACCOUNT = lv_i_account
         I_DATE = lv_i_date
         I_USER = lv_i_user
         I_ABBP_ADJ = lv_i_abbp_adj
         I_APP_ADJ = lv_i_app_adj
    IMPORTING
         RETURN = lv_return
         E_FILTER_CA = lv_e_filter_ca
         E_FILTER_CONTRACT = lv_e_filter_contract
         E_FILTER_PREMISE = lv_e_filter_premise
         E_FILTER_DIVISION = lv_e_filter_division
    TABLES
         XT_UCES_EXTENSION = lt_xt_uces_extension
. " BD_CO_GET_FILTER_DATA




ABAP code using 7.40 inline data declarations to call FM BD_CO_GET_FILTER_DATA

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.

 
DATA(ld_i_spras) = SY-LANGU.
 
 
 
 
 
 
DATA(ld_i_date) = SY-DATUM.
 
 
"SELECT single BNAME FROM USR04 INTO @DATA(ld_i_user).
DATA(ld_i_user) = SY-UNAME.
 
 
"SELECT single KENNZX FROM REGEN INTO @DATA(ld_i_abbp_adj).
 
"SELECT single KENNZX FROM REGEN INTO @DATA(ld_i_app_adj).
 


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!