SAP Function Modules

BKK_CASH_BAL_GET_ALL SAP Function module - BCA: Selection of a Position List for Each Account







BKK_CASH_BAL_GET_ALL 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 BKK_CASH_BAL_GET_ALL into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM BKK_CASH_BAL_GET_ALL - BKK CASH BAL GET ALL





CALL FUNCTION 'BKK_CASH_BAL_GET_ALL' "BCA: Selection of a Position List for Each Account
  EXPORTING
    i_bkkrs =                   " ibkkakeyin-bkkrs  Bank Area
*   i_cashb_catg = G_CON_CHEQUE  " ibkkakeyin-cashbcatg  Internal Key of a Position
*   i_accnoint =                " ibkk42-acnum_int  Internal Account Number
*   i_r_cashbtype =             " bkks_r_tab_cashbtype  Range Table for Position Types
*   i_r_cashbstat =             " bkks_r_tab_cashbstat  Range Table for Position Status
*   i_cashbnofrom =             " ibkkakeyex-cashbno  Position Number From
*   i_cashbnoto =               " ibkkakeyex-cashbno  Position Number To
*   i_flg_authcheck_acc =       " boole-boole   Indicator: Authorization Check for Account
*   i_flg_authcheck_type =      " boole-boole   Indicator: Authorization Check for Position Type
*   i_actvt =                   " tact-actvt    Activity for Authorization Check
  IMPORTING
    e_rc =                      " sy-subrc      Return Code (See Long Text)
    e_cnt_selected =            " sy-dbcnt      Number of Selected Positions
  TABLES
*   t_where_cond =              " rsdswhere     Table of WHERE Conditions
    t_cashb_selected =          " bkka1         Table of Selected Positions
    .  "  BKK_CASH_BAL_GET_ALL

ABAP code example for Function Module BKK_CASH_BAL_GET_ALL





The ABAP code below is a full code listing to execute function module BKK_CASH_BAL_GET_ALL 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).

DATA:
ld_e_rc  TYPE SY-SUBRC ,
ld_e_cnt_selected  TYPE SY-DBCNT ,
it_t_where_cond  TYPE STANDARD TABLE OF RSDSWHERE,"TABLES PARAM
wa_t_where_cond  LIKE LINE OF it_t_where_cond ,
it_t_cashb_selected  TYPE STANDARD TABLE OF BKKA1,"TABLES PARAM
wa_t_cashb_selected  LIKE LINE OF it_t_cashb_selected .


DATA(ld_i_bkkrs) = some text here

DATA(ld_i_cashb_catg) = Check type of data required

DATA(ld_i_accnoint) = some text here
DATA(ld_i_r_cashbtype) = 'Check type of data required'.
DATA(ld_i_r_cashbstat) = 'Check type of data required'.

DATA(ld_i_cashbnofrom) = some text here

DATA(ld_i_cashbnoto) = some text here

DATA(ld_i_flg_authcheck_acc) = some text here

DATA(ld_i_flg_authcheck_type) = some text here

SELECT single ACTVT
FROM TACT
INTO @DATA(ld_i_actvt).


"populate fields of struture and append to itab
append wa_t_where_cond to it_t_where_cond.

"populate fields of struture and append to itab
append wa_t_cashb_selected to it_t_cashb_selected. . CALL FUNCTION 'BKK_CASH_BAL_GET_ALL' EXPORTING i_bkkrs = ld_i_bkkrs * i_cashb_catg = ld_i_cashb_catg * i_accnoint = ld_i_accnoint * i_r_cashbtype = ld_i_r_cashbtype * i_r_cashbstat = ld_i_r_cashbstat * i_cashbnofrom = ld_i_cashbnofrom * i_cashbnoto = ld_i_cashbnoto * i_flg_authcheck_acc = ld_i_flg_authcheck_acc * i_flg_authcheck_type = ld_i_flg_authcheck_type * i_actvt = ld_i_actvt IMPORTING e_rc = ld_e_rc e_cnt_selected = ld_e_cnt_selected TABLES * t_where_cond = it_t_where_cond t_cashb_selected = it_t_cashb_selected . " BKK_CASH_BAL_GET_ALL
IF SY-SUBRC EQ 0. "All OK ENDIF.







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.

DATA:
ld_e_rc  TYPE SY-SUBRC ,
ld_i_bkkrs  TYPE IBKKAKEYIN-BKKRS ,
it_t_where_cond  TYPE STANDARD TABLE OF RSDSWHERE ,
wa_t_where_cond  LIKE LINE OF it_t_where_cond,
ld_e_cnt_selected  TYPE SY-DBCNT ,
ld_i_cashb_catg  TYPE IBKKAKEYIN-CASHBCATG ,
it_t_cashb_selected  TYPE STANDARD TABLE OF BKKA1 ,
wa_t_cashb_selected  LIKE LINE OF it_t_cashb_selected,
ld_i_accnoint  TYPE IBKK42-ACNUM_INT ,
ld_i_r_cashbtype  TYPE BKKS_R_TAB_CASHBTYPE ,
ld_i_r_cashbstat  TYPE BKKS_R_TAB_CASHBSTAT ,
ld_i_cashbnofrom  TYPE IBKKAKEYEX-CASHBNO ,
ld_i_cashbnoto  TYPE IBKKAKEYEX-CASHBNO ,
ld_i_flg_authcheck_acc  TYPE BOOLE-BOOLE ,
ld_i_flg_authcheck_type  TYPE BOOLE-BOOLE ,
ld_i_actvt  TYPE TACT-ACTVT .


ld_i_bkkrs = some text here

"populate fields of struture and append to itab
append wa_t_where_cond to it_t_where_cond.

ld_i_cashb_catg = Check type of data required

"populate fields of struture and append to itab
append wa_t_cashb_selected to it_t_cashb_selected.

ld_i_accnoint = some text here
ld_i_r_cashbtype = 'Check type of data required'.
ld_i_r_cashbstat = 'Check type of data required'.

ld_i_cashbnofrom = some text here

ld_i_cashbnoto = some text here

ld_i_flg_authcheck_acc = some text here

ld_i_flg_authcheck_type = some text here

SELECT single ACTVT
FROM TACT
INTO ld_i_actvt.

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 BKK_CASH_BAL_GET_ALL or its description.