SAP Function Modules

CMS_DB_RBL_GET_LIST SAP Function module - Fetch receivables of selected criteria

CMS_DB_RBL_GET_LIST is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name CMS_DB_RBL_GET_LIST into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: CMS_DB_RBL
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


CALL FUNCTION 'CMS_DB_RBL_GET_LIST' "Fetch receivables of selected criteria
*   i_max_rows = 250            " bapimaxrow    Maximum number of lines of hits
*   i_creditsystem =            " cms_dte_rbl_crdsys  Credit System
*   i_tab_rbl_prd_class_rng =   " cms_tab_rbl_prd_class_rng  Range Table for  Product Class
*   i_tab_rbl_product_rng =     " cms_tab_rbl_product_rng  Range Table for  Product
*   i_tab_rbl_org_unit_rng =    " cms_tab_rbl_org_unit_rng  Range Table for  Receivable OrgUnit
*   i_tab_rbl_currency_rng =    " cms_tab_rbl_currency_rng  Range Table for  Receivable currency
*   i_tab_bpf_rng =             " cms_tab_bpf_rng  Range Table for Business Partner Functions
*   i_tab_bpid_rng =            " cms_tab_bpid_rng  Range Table for Business Partner Identifiers
    e_tab_rbl_key =             " cms_tab_rbl_key  Receivable primary and semantic keys
    e_tab_rc =                  " cms_tab_msg_col_message  Return Code and corresponding Message

ABAP code example for Function Module CMS_DB_RBL_GET_LIST

The ABAP code below is a full code listing to execute function module CMS_DB_RBL_GET_LIST including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

ld_e_tab_rbl_key  TYPE CMS_TAB_RBL_KEY ,

DATA(ld_i_max_rows) = 'Check type of data required'.
DATA(ld_i_creditsystem) = 'some text here'.
DATA(ld_i_tab_rbl_prd_class_rng) = 'some text here'.
DATA(ld_i_tab_rbl_product_rng) = 'some text here'.
DATA(ld_i_tab_rbl_org_unit_rng) = 'some text here'.
DATA(ld_i_tab_rbl_currency_rng) = 'some text here'.
DATA(ld_i_tab_bpf_rng) = 'some text here'.
DATA(ld_i_tab_bpid_rng) = 'some text here'. . CALL FUNCTION 'CMS_DB_RBL_GET_LIST' * EXPORTING * i_max_rows = ld_i_max_rows * i_creditsystem = ld_i_creditsystem * i_tab_rbl_prd_class_rng = ld_i_tab_rbl_prd_class_rng * i_tab_rbl_product_rng = ld_i_tab_rbl_product_rng * i_tab_rbl_org_unit_rng = ld_i_tab_rbl_org_unit_rng * i_tab_rbl_currency_rng = ld_i_tab_rbl_currency_rng * i_tab_bpf_rng = ld_i_tab_bpf_rng * i_tab_bpid_rng = ld_i_tab_bpid_rng IMPORTING e_tab_rbl_key = ld_e_tab_rbl_key e_tab_rc = ld_e_tab_rc . " CMS_DB_RBL_GET_LIST

ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

ld_e_tab_rbl_key  TYPE CMS_TAB_RBL_KEY ,
ld_i_max_rows  TYPE BAPIMAXROW ,
ld_i_creditsystem  TYPE CMS_DTE_RBL_CRDSYS ,
ld_i_tab_rbl_prd_class_rng  TYPE CMS_TAB_RBL_PRD_CLASS_RNG ,
ld_i_tab_rbl_product_rng  TYPE CMS_TAB_RBL_PRODUCT_RNG ,
ld_i_tab_rbl_org_unit_rng  TYPE CMS_TAB_RBL_ORG_UNIT_RNG ,
ld_i_tab_rbl_currency_rng  TYPE CMS_TAB_RBL_CURRENCY_RNG ,
ld_i_tab_bpf_rng  TYPE CMS_TAB_BPF_RNG ,
ld_i_tab_bpid_rng  TYPE CMS_TAB_BPID_RNG .

ld_i_max_rows = 'some text here'.
ld_i_creditsystem = 'some text here'.
ld_i_tab_rbl_prd_class_rng = 'some text here'.
ld_i_tab_rbl_product_rng = 'some text here'.
ld_i_tab_rbl_org_unit_rng = 'some text here'.
ld_i_tab_rbl_currency_rng = 'some text here'.
ld_i_tab_bpf_rng = 'some text here'.
ld_i_tab_bpid_rng = 'some text here'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name CMS_DB_RBL_GET_LIST or its description.