SAP FVD_MD_TOOLS_GET_ACCOUNT_BALAN Function Module for Determine Contract Balance
FVD_MD_TOOLS_GET_ACCOUNT_BALAN is a standard fvd md tools get account balan 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 Contract Balance 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 fvd md tools get account balan FM, simply by entering the name FVD_MD_TOOLS_GET_ACCOUNT_BALAN into the relevant SAP transaction such as SE37 or SE38.
Function Group: FVD_MD_TOOLS
Program Name: SAPLFVD_MD_TOOLS
Main Program: SAPLFVD_MD_TOOLS
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FVD_MD_TOOLS_GET_ACCOUNT_BALAN 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 'FVD_MD_TOOLS_GET_ACCOUNT_BALAN'"Determine Contract Balance.
EXPORTING
I_DATE_OF_DISBURSEMENT = "Payment date / Day of payment
I_BUKRS = "Company Code
I_CONTRACT = "Contract Number
I_MODE = "1=Kreditablösung 2=Ratenplanänderung
* I_USE_BUFFER = "Boolean Variable
* I_LOG_HANDLE = "Application Log: Log Handle
IMPORTING
E_SALDO = "Drawing Amount from Disbursement
E_CURR = "Currency Key
EXCEPTIONS
FAILED = 1
IMPORTING Parameters details for FVD_MD_TOOLS_GET_ACCOUNT_BALAN
I_DATE_OF_DISBURSEMENT - Payment date / Day of payment
Data type: DDISPOOptional: No
Call by Reference: Yes
I_BUKRS - Company Code
Data type: BUKRSOptional: No
Call by Reference: Yes
I_CONTRACT - Contract Number
Data type: RANLOptional: No
Call by Reference: Yes
I_MODE - 1=Kreditablösung 2=Ratenplanänderung
Data type: CHAR1Optional: No
Call by Reference: Yes
I_USE_BUFFER - Boolean Variable
Data type: BOOLE_DOptional: Yes
Call by Reference: Yes
I_LOG_HANDLE - Application Log: Log Handle
Data type: BALLOGHNDLOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for FVD_MD_TOOLS_GET_ACCOUNT_BALAN
E_SALDO - Drawing Amount from Disbursement
Data type: VCBTROptional: No
Call by Reference: Yes
E_CURR - Currency Key
Data type: WAERSOptional: No
Call by Reference: Yes
EXCEPTIONS details
FAILED -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for FVD_MD_TOOLS_GET_ACCOUNT_BALAN 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_failed | TYPE STRING, " | |||
| lv_e_saldo | TYPE VCBTR, " | |||
| lv_i_date_of_disbursement | TYPE DDISPO, " | |||
| lv_e_curr | TYPE WAERS, " | |||
| lv_i_bukrs | TYPE BUKRS, " | |||
| lv_i_contract | TYPE RANL, " | |||
| lv_i_mode | TYPE CHAR1, " | |||
| lv_i_use_buffer | TYPE BOOLE_D, " | |||
| lv_i_log_handle | TYPE BALLOGHNDL. " |
|   CALL FUNCTION 'FVD_MD_TOOLS_GET_ACCOUNT_BALAN' "Determine Contract Balance |
| EXPORTING | ||
| I_DATE_OF_DISBURSEMENT | = lv_i_date_of_disbursement | |
| I_BUKRS | = lv_i_bukrs | |
| I_CONTRACT | = lv_i_contract | |
| I_MODE | = lv_i_mode | |
| I_USE_BUFFER | = lv_i_use_buffer | |
| I_LOG_HANDLE | = lv_i_log_handle | |
| IMPORTING | ||
| E_SALDO | = lv_e_saldo | |
| E_CURR | = lv_e_curr | |
| EXCEPTIONS | ||
| FAILED = 1 | ||
| . " FVD_MD_TOOLS_GET_ACCOUNT_BALAN | ||
ABAP code using 7.40 inline data declarations to call FM FVD_MD_TOOLS_GET_ACCOUNT_BALAN
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.Search for further information about these or an SAP related objects