SAP BKK_COND_GET_DIRECT_FEE Function Module for Determine Direct Charges
BKK_COND_GET_DIRECT_FEE is a standard bkk cond get direct fee SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Determine Direct Charges 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 bkk cond get direct fee FM, simply by entering the name BKK_COND_GET_DIRECT_FEE into the relevant SAP transaction such as SE37 or SE38.
Function Group: FB94
Program Name: SAPLFB94
Main Program: SAPLFB94
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function BKK_COND_GET_DIRECT_FEE 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 'BKK_COND_GET_DIRECT_FEE'"Determine Direct Charges.
EXPORTING
I_BKKRS = "Bank Area, Account Number
I_ACNUM_INT = "
I_ACNUM_EXT = "
I_BUPA_NO = "
I_CURRENCY = "
I_DATE = "
IMPORTING
E_FEE_AMOUNT = "Currency, Charge
E_FEE_TRNSTYPE = "Transaction Type for Charge Posting
E_RC = "Return Value (Long Text)
TABLES
T_DIFF_VALUE = "
IMPORTING Parameters details for BKK_COND_GET_DIRECT_FEE
I_BKKRS - Bank Area, Account Number
Data type: BKK42-BKKRSOptional: No
Call by Reference: Yes
I_ACNUM_INT -
Data type: BKK42-ACNUM_INTOptional: No
Call by Reference: Yes
I_ACNUM_EXT -
Data type: BKK42-ACNUM_EXTOptional: No
Call by Reference: Yes
I_BUPA_NO -
Data type: BUT000-PARTNEROptional: No
Call by Reference: Yes
I_CURRENCY -
Data type: BKK42-WAERSOptional: No
Call by Reference: Yes
I_DATE -
Data type: SY-DATUMOptional: No
Call by Reference: Yes
EXPORTING Parameters details for BKK_COND_GET_DIRECT_FEE
E_FEE_AMOUNT - Currency, Charge
Data type: IBKK_ITEM-A_CHARGEOptional: No
Call by Reference: Yes
E_FEE_TRNSTYPE - Transaction Type for Charge Posting
Data type: IBKK_ITEM-TRNSTYPEOptional: No
Call by Reference: Yes
E_RC - Return Value (Long Text)
Data type: SY-SUBRCOptional: No
Call by Reference: Yes
TABLES Parameters details for BKK_COND_GET_DIRECT_FEE
T_DIFF_VALUE -
Data type: IBKK9NOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for BKK_COND_GET_DIRECT_FEE 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_i_bkkrs | TYPE BKK42-BKKRS, " | |||
| lv_e_fee_amount | TYPE IBKK_ITEM-A_CHARGE, " | |||
| lt_t_diff_value | TYPE STANDARD TABLE OF IBKK9N, " | |||
| lv_i_acnum_int | TYPE BKK42-ACNUM_INT, " | |||
| lv_e_fee_trnstype | TYPE IBKK_ITEM-TRNSTYPE, " | |||
| lv_e_rc | TYPE SY-SUBRC, " | |||
| lv_i_acnum_ext | TYPE BKK42-ACNUM_EXT, " | |||
| lv_i_bupa_no | TYPE BUT000-PARTNER, " | |||
| lv_i_currency | TYPE BKK42-WAERS, " | |||
| lv_i_date | TYPE SY-DATUM. " |
|   CALL FUNCTION 'BKK_COND_GET_DIRECT_FEE' "Determine Direct Charges |
| EXPORTING | ||
| I_BKKRS | = lv_i_bkkrs | |
| I_ACNUM_INT | = lv_i_acnum_int | |
| I_ACNUM_EXT | = lv_i_acnum_ext | |
| I_BUPA_NO | = lv_i_bupa_no | |
| I_CURRENCY | = lv_i_currency | |
| I_DATE | = lv_i_date | |
| IMPORTING | ||
| E_FEE_AMOUNT | = lv_e_fee_amount | |
| E_FEE_TRNSTYPE | = lv_e_fee_trnstype | |
| E_RC | = lv_e_rc | |
| TABLES | ||
| T_DIFF_VALUE | = lt_t_diff_value | |
| . " BKK_COND_GET_DIRECT_FEE | ||
ABAP code using 7.40 inline data declarations to call FM BKK_COND_GET_DIRECT_FEE
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 BKKRS FROM BKK42 INTO @DATA(ld_i_bkkrs). | ||||
| "SELECT single A_CHARGE FROM IBKK_ITEM INTO @DATA(ld_e_fee_amount). | ||||
| "SELECT single ACNUM_INT FROM BKK42 INTO @DATA(ld_i_acnum_int). | ||||
| "SELECT single TRNSTYPE FROM IBKK_ITEM INTO @DATA(ld_e_fee_trnstype). | ||||
| "SELECT single SUBRC FROM SY INTO @DATA(ld_e_rc). | ||||
| "SELECT single ACNUM_EXT FROM BKK42 INTO @DATA(ld_i_acnum_ext). | ||||
| "SELECT single PARTNER FROM BUT000 INTO @DATA(ld_i_bupa_no). | ||||
| "SELECT single WAERS FROM BKK42 INTO @DATA(ld_i_currency). | ||||
| "SELECT single DATUM FROM SY INTO @DATA(ld_i_date). | ||||
Search for further information about these or an SAP related objects