SAP FAGL_CL_GET_ACCOUNT_BALANCE Function Module for
FAGL_CL_GET_ACCOUNT_BALANCE is a standard fagl cl get account balance 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 fagl cl get account balance FM, simply by entering the name FAGL_CL_GET_ACCOUNT_BALANCE into the relevant SAP transaction such as SE37 or SE38.
Function Group: FAGL_CL_MIG
Program Name: SAPLFAGL_CL_MIG
Main Program: SAPLFAGL_CL_MIG
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FAGL_CL_GET_ACCOUNT_BALANCE 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 'FAGL_CL_GET_ACCOUNT_BALANCE'".
EXPORTING
IV_RLDNR = "
IV_RBUKRS = "
IV_RACCT = "
* IV_RTCUR = ' ' "
* IV_POPER = 000 "
* IV_RYEAR = "
* IV_RRCTY = '0' "
* IV_RVERS = '001' "
IMPORTING
ET_ACC_BALANCE = "
EXCEPTIONS
CONFIGURATION_ERROR = 1 OVERFLOW_OCCURED = 2
IMPORTING Parameters details for FAGL_CL_GET_ACCOUNT_BALANCE
IV_RLDNR -
Data type: FAGL_RLDNROptional: No
Call by Reference: Yes
IV_RBUKRS -
Data type: BUKRSOptional: No
Call by Reference: Yes
IV_RACCT -
Data type: RACCTOptional: No
Call by Reference: Yes
IV_RTCUR -
Data type: RTCURDefault: SPACE
Optional: Yes
Call by Reference: Yes
IV_POPER -
Data type: POPERDefault: 000
Optional: Yes
Call by Reference: Yes
IV_RYEAR -
Data type: GJAHROptional: Yes
Call by Reference: Yes
IV_RRCTY -
Data type: RRCTYDefault: '0'
Optional: Yes
Call by Reference: Yes
IV_RVERS -
Data type: RVERSDefault: '001'
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for FAGL_CL_GET_ACCOUNT_BALANCE
ET_ACC_BALANCE -
Data type: GLT9_ACC_TABOptional: No
Call by Reference: Yes
EXCEPTIONS details
CONFIGURATION_ERROR -
Data type:Optional: No
Call by Reference: Yes
OVERFLOW_OCCURED -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for FAGL_CL_GET_ACCOUNT_BALANCE 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_iv_rldnr | TYPE FAGL_RLDNR, " | |||
| lv_et_acc_balance | TYPE GLT9_ACC_TAB, " | |||
| lv_configuration_error | TYPE GLT9_ACC_TAB, " | |||
| lv_iv_rbukrs | TYPE BUKRS, " | |||
| lv_overflow_occured | TYPE BUKRS, " | |||
| lv_iv_racct | TYPE RACCT, " | |||
| lv_iv_rtcur | TYPE RTCUR, " SPACE | |||
| lv_iv_poper | TYPE POPER, " 000 | |||
| lv_iv_ryear | TYPE GJAHR, " | |||
| lv_iv_rrcty | TYPE RRCTY, " '0' | |||
| lv_iv_rvers | TYPE RVERS. " '001' |
|   CALL FUNCTION 'FAGL_CL_GET_ACCOUNT_BALANCE' " |
| EXPORTING | ||
| IV_RLDNR | = lv_iv_rldnr | |
| IV_RBUKRS | = lv_iv_rbukrs | |
| IV_RACCT | = lv_iv_racct | |
| IV_RTCUR | = lv_iv_rtcur | |
| IV_POPER | = lv_iv_poper | |
| IV_RYEAR | = lv_iv_ryear | |
| IV_RRCTY | = lv_iv_rrcty | |
| IV_RVERS | = lv_iv_rvers | |
| IMPORTING | ||
| ET_ACC_BALANCE | = lv_et_acc_balance | |
| EXCEPTIONS | ||
| CONFIGURATION_ERROR = 1 | ||
| OVERFLOW_OCCURED = 2 | ||
| . " FAGL_CL_GET_ACCOUNT_BALANCE | ||
ABAP code using 7.40 inline data declarations to call FM FAGL_CL_GET_ACCOUNT_BALANCE
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.| DATA(ld_iv_rtcur) | = ' '. | |||
| DATA(ld_iv_poper) | = 000. | |||
| DATA(ld_iv_rrcty) | = '0'. | |||
| DATA(ld_iv_rvers) | = '001'. | |||
Search for further information about these or an SAP related objects