SAP Function Modules

BKK_COND_BALANCE_READ SAP Function module - Export Balances







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

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


Pattern for FM BKK_COND_BALANCE_READ - BKK COND BALANCE READ





CALL FUNCTION 'BKK_COND_BALANCE_READ' "Export Balances
  EXPORTING
    i_bkkrs =                   " bkk9a-bkkrs
    i_acnum_int =               " bkk9a-acnum_int
    i_bal_type =                " bkk9a-bal_type
    i_bal_year =                " bkk9a-bal_year
    i_bal_month =               " bkk9a-bal_month
*   i_turnover_class = ' '      " bkk9a-turnover_class
    i_curr =                    " bkk9a-curr
  IMPORTING
    e_balance =                 " bkk9a-balance
    e_rc =                      " sy-subrc
    .  "  BKK_COND_BALANCE_READ

ABAP code example for Function Module BKK_COND_BALANCE_READ





The ABAP code below is a full code listing to execute function module BKK_COND_BALANCE_READ 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_balance  TYPE BKK9A-BALANCE ,
ld_e_rc  TYPE SY-SUBRC .


SELECT single BKKRS
FROM BKK9A
INTO @DATA(ld_i_bkkrs).


SELECT single ACNUM_INT
FROM BKK9A
INTO @DATA(ld_i_acnum_int).


SELECT single BAL_TYPE
FROM BKK9A
INTO @DATA(ld_i_bal_type).


SELECT single BAL_YEAR
FROM BKK9A
INTO @DATA(ld_i_bal_year).


SELECT single BAL_MONTH
FROM BKK9A
INTO @DATA(ld_i_bal_month).


SELECT single TURNOVER_CLASS
FROM BKK9A
INTO @DATA(ld_i_turnover_class).


SELECT single CURR
FROM BKK9A
INTO @DATA(ld_i_curr).
. CALL FUNCTION 'BKK_COND_BALANCE_READ' EXPORTING i_bkkrs = ld_i_bkkrs i_acnum_int = ld_i_acnum_int i_bal_type = ld_i_bal_type i_bal_year = ld_i_bal_year i_bal_month = ld_i_bal_month * i_turnover_class = ld_i_turnover_class i_curr = ld_i_curr IMPORTING e_balance = ld_e_balance e_rc = ld_e_rc . " BKK_COND_BALANCE_READ
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_balance  TYPE BKK9A-BALANCE ,
ld_i_bkkrs  TYPE BKK9A-BKKRS ,
ld_e_rc  TYPE SY-SUBRC ,
ld_i_acnum_int  TYPE BKK9A-ACNUM_INT ,
ld_i_bal_type  TYPE BKK9A-BAL_TYPE ,
ld_i_bal_year  TYPE BKK9A-BAL_YEAR ,
ld_i_bal_month  TYPE BKK9A-BAL_MONTH ,
ld_i_turnover_class  TYPE BKK9A-TURNOVER_CLASS ,
ld_i_curr  TYPE BKK9A-CURR .


SELECT single BKKRS
FROM BKK9A
INTO ld_i_bkkrs.


SELECT single ACNUM_INT
FROM BKK9A
INTO ld_i_acnum_int.


SELECT single BAL_TYPE
FROM BKK9A
INTO ld_i_bal_type.


SELECT single BAL_YEAR
FROM BKK9A
INTO ld_i_bal_year.


SELECT single BAL_MONTH
FROM BKK9A
INTO ld_i_bal_month.


SELECT single TURNOVER_CLASS
FROM BKK9A
INTO ld_i_turnover_class.


SELECT single CURR
FROM BKK9A
INTO ld_i_curr.

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