SAP FKK_ACCOUNT_TRANSFER_BALA_COMP Function Module for
FKK_ACCOUNT_TRANSFER_BALA_COMP is a standard fkk account transfer bala comp SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 fkk account transfer bala comp FM, simply by entering the name FKK_ACCOUNT_TRANSFER_BALA_COMP into the relevant SAP transaction such as SE37 or SE38.
Function Group: FKK4
Program Name: SAPLFKK4
Main Program: SAPLFKK4
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FKK_ACCOUNT_TRANSFER_BALA_COMP 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 'FKK_ACCOUNT_TRANSFER_BALA_COMP'".
EXPORTING
* I_VKONT = ' ' "Underlying Contract Account
* I_GPART = ' ' "Business Partner
* I_VTREF = ' ' "Contract Reference
I_START_DATE = "Start Date of Period
I_START_TIME = "Start Time of Period
I_END_DATE = "End Date of Period
I_END_TIME = "End Time of Period
* I_SUBAP = ' ' "Subapplication in Contract Accounts Receivable and Payable
IMPORTING
E_BALANCE_OUTGOING = "
E_BALANCE_INCOMING = "
TABLES
T_OUTGOING = "
T_INCOMING = "
EXCEPTIONS
NOTHING_FOUND = 1 INVALID_PARAMETERS = 2
IMPORTING Parameters details for FKK_ACCOUNT_TRANSFER_BALA_COMP
I_VKONT - Underlying Contract Account
Data type: FKKVK-VKONTDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_GPART - Business Partner
Data type: GPART_KKDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_VTREF - Contract Reference
Data type: VTREF_KKDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_START_DATE - Start Date of Period
Data type: SY-DATUMOptional: No
Call by Reference: No ( called with pass by value option)
I_START_TIME - Start Time of Period
Data type: COITM_KKOptional: No
Call by Reference: No ( called with pass by value option)
I_END_DATE - End Date of Period
Data type: SY-DATUMOptional: No
Call by Reference: No ( called with pass by value option)
I_END_TIME - End Time of Period
Data type: COITM_KKOptional: No
Call by Reference: No ( called with pass by value option)
I_SUBAP - Subapplication in Contract Accounts Receivable and Payable
Data type: SUBAP_KKDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for FKK_ACCOUNT_TRANSFER_BALA_COMP
E_BALANCE_OUTGOING -
Data type: FKKOP-BETRHOptional: No
Call by Reference: No ( called with pass by value option)
E_BALANCE_INCOMING -
Data type: FKKOP-BETRHOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for FKK_ACCOUNT_TRANSFER_BALA_COMP
T_OUTGOING -
Data type: FKKCLOptional: No
Call by Reference: No ( called with pass by value option)
T_INCOMING -
Data type: FKKCLOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NOTHING_FOUND - No Item in Period
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INVALID_PARAMETERS - Wrong Parameter Combination
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for FKK_ACCOUNT_TRANSFER_BALA_COMP 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_vkont | TYPE FKKVK-VKONT, " ' ' | |||
| lt_t_outgoing | TYPE STANDARD TABLE OF FKKCL, " | |||
| lv_nothing_found | TYPE FKKCL, " | |||
| lv_e_balance_outgoing | TYPE FKKOP-BETRH, " | |||
| lv_i_gpart | TYPE GPART_KK, " ' ' | |||
| lt_t_incoming | TYPE STANDARD TABLE OF FKKCL, " | |||
| lv_e_balance_incoming | TYPE FKKOP-BETRH, " | |||
| lv_invalid_parameters | TYPE FKKOP, " | |||
| lv_i_vtref | TYPE VTREF_KK, " ' ' | |||
| lv_i_start_date | TYPE SY-DATUM, " | |||
| lv_i_start_time | TYPE COITM_KK, " | |||
| lv_i_end_date | TYPE SY-DATUM, " | |||
| lv_i_end_time | TYPE COITM_KK, " | |||
| lv_i_subap | TYPE SUBAP_KK. " SPACE |
|   CALL FUNCTION 'FKK_ACCOUNT_TRANSFER_BALA_COMP' " |
| EXPORTING | ||
| I_VKONT | = lv_i_vkont | |
| I_GPART | = lv_i_gpart | |
| I_VTREF | = lv_i_vtref | |
| I_START_DATE | = lv_i_start_date | |
| I_START_TIME | = lv_i_start_time | |
| I_END_DATE | = lv_i_end_date | |
| I_END_TIME | = lv_i_end_time | |
| I_SUBAP | = lv_i_subap | |
| IMPORTING | ||
| E_BALANCE_OUTGOING | = lv_e_balance_outgoing | |
| E_BALANCE_INCOMING | = lv_e_balance_incoming | |
| TABLES | ||
| T_OUTGOING | = lt_t_outgoing | |
| T_INCOMING | = lt_t_incoming | |
| EXCEPTIONS | ||
| NOTHING_FOUND = 1 | ||
| INVALID_PARAMETERS = 2 | ||
| . " FKK_ACCOUNT_TRANSFER_BALA_COMP | ||
ABAP code using 7.40 inline data declarations to call FM FKK_ACCOUNT_TRANSFER_BALA_COMP
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 VKONT FROM FKKVK INTO @DATA(ld_i_vkont). | ||||
| DATA(ld_i_vkont) | = ' '. | |||
| "SELECT single BETRH FROM FKKOP INTO @DATA(ld_e_balance_outgoing). | ||||
| DATA(ld_i_gpart) | = ' '. | |||
| "SELECT single BETRH FROM FKKOP INTO @DATA(ld_e_balance_incoming). | ||||
| DATA(ld_i_vtref) | = ' '. | |||
| "SELECT single DATUM FROM SY INTO @DATA(ld_i_start_date). | ||||
| "SELECT single DATUM FROM SY INTO @DATA(ld_i_end_date). | ||||
| DATA(ld_i_subap) | = ' '. | |||
Search for further information about these or an SAP related objects