SAP INSURANCE_VALUE_CALCULATE Function Module for
INSURANCE_VALUE_CALCULATE is a standard insurance value calculate 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 insurance value calculate FM, simply by entering the name INSURANCE_VALUE_CALCULATE into the relevant SAP transaction such as SE37 or SE38.
Function Group: ANLG
Program Name: SAPLANLG
Main Program: SAPLANLG
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function INSURANCE_VALUE_CALCULATE 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 'INSURANCE_VALUE_CALCULATE'".
EXPORTING
I_ANLV = "Insurance data
I_GJAHR = "Fiscal year calculation of insurable values
* I_RECH_BASISWRT = '' "Calculate switch base value
* I_RECH_VERSWRT = '' "Calculate switch insur. value
* I_XVRSKU = '' "Calculate switch base value from cumulative value
* I_OLDDATA = '' "Switch function for transfer of old values
IMPORTING
E_LNRAN = "
E_VRSBA = "New base insurance value
E_VSBAJ = "
E_VSWRT = "Insurable value
TABLES
T_ANLB = "
T_ANLC = "
EXCEPTIONS
ANLC_GJAHR_FEHLT = 1 INDEX_FEHLT = 2 VERS_ART_NOT_FOUND = 3
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLANLG_001 Substitution Offsetting Accts for Retiremt, Acquis., Post-Capitaliz.
EXIT_SAPLANLG_002 Specif. of Repayment Percentage or Amount at Retirement of Inv. Support
EXIT_SAPLANLG_003 Change Posting Amount
IMPORTING Parameters details for INSURANCE_VALUE_CALCULATE
I_ANLV - Insurance data
Data type: ANLVOptional: No
Call by Reference: No ( called with pass by value option)
I_GJAHR - Fiscal year calculation of insurable values
Data type: ANLC-GJAHROptional: No
Call by Reference: No ( called with pass by value option)
I_RECH_BASISWRT - Calculate switch base value
Data type: RA01M-KZDefault: ''
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_RECH_VERSWRT - Calculate switch insur. value
Data type: RA01M-KZDefault: ''
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_XVRSKU - Calculate switch base value from cumulative value
Data type: T093C-XVRSKUDefault: ''
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_OLDDATA - Switch function for transfer of old values
Data type: T020-KOARTDefault: ''
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for INSURANCE_VALUE_CALCULATE
E_LNRAN -
Data type: ANLV-LNRANOptional: No
Call by Reference: No ( called with pass by value option)
E_VRSBA - New base insurance value
Data type: ANLV-VRSBAOptional: No
Call by Reference: No ( called with pass by value option)
E_VSBAJ -
Data type: ANLV-VSBAJOptional: No
Call by Reference: No ( called with pass by value option)
E_VSWRT - Insurable value
Data type: RA02S-VSWRTOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for INSURANCE_VALUE_CALCULATE
T_ANLB -
Data type: ANLBOptional: No
Call by Reference: No ( called with pass by value option)
T_ANLC -
Data type: ANLCOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
ANLC_GJAHR_FEHLT - A fiscal year is missing in T_ANLC
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INDEX_FEHLT - No index value available
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
VERS_ART_NOT_FOUND - Insurance type not defined
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for INSURANCE_VALUE_CALCULATE 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_anlv | TYPE ANLV, " | |||
| lt_t_anlb | TYPE STANDARD TABLE OF ANLB, " | |||
| lv_e_lnran | TYPE ANLV-LNRAN, " | |||
| lv_anlc_gjahr_fehlt | TYPE ANLV, " | |||
| lt_t_anlc | TYPE STANDARD TABLE OF ANLC, " | |||
| lv_e_vrsba | TYPE ANLV-VRSBA, " | |||
| lv_i_gjahr | TYPE ANLC-GJAHR, " | |||
| lv_index_fehlt | TYPE ANLC, " | |||
| lv_e_vsbaj | TYPE ANLV-VSBAJ, " | |||
| lv_i_rech_basiswrt | TYPE RA01M-KZ, " '' | |||
| lv_vers_art_not_found | TYPE RA01M, " | |||
| lv_e_vswrt | TYPE RA02S-VSWRT, " | |||
| lv_i_rech_verswrt | TYPE RA01M-KZ, " '' | |||
| lv_i_xvrsku | TYPE T093C-XVRSKU, " '' | |||
| lv_i_olddata | TYPE T020-KOART. " '' |
|   CALL FUNCTION 'INSURANCE_VALUE_CALCULATE' " |
| EXPORTING | ||
| I_ANLV | = lv_i_anlv | |
| I_GJAHR | = lv_i_gjahr | |
| I_RECH_BASISWRT | = lv_i_rech_basiswrt | |
| I_RECH_VERSWRT | = lv_i_rech_verswrt | |
| I_XVRSKU | = lv_i_xvrsku | |
| I_OLDDATA | = lv_i_olddata | |
| IMPORTING | ||
| E_LNRAN | = lv_e_lnran | |
| E_VRSBA | = lv_e_vrsba | |
| E_VSBAJ | = lv_e_vsbaj | |
| E_VSWRT | = lv_e_vswrt | |
| TABLES | ||
| T_ANLB | = lt_t_anlb | |
| T_ANLC | = lt_t_anlc | |
| EXCEPTIONS | ||
| ANLC_GJAHR_FEHLT = 1 | ||
| INDEX_FEHLT = 2 | ||
| VERS_ART_NOT_FOUND = 3 | ||
| . " INSURANCE_VALUE_CALCULATE | ||
ABAP code using 7.40 inline data declarations to call FM INSURANCE_VALUE_CALCULATE
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 LNRAN FROM ANLV INTO @DATA(ld_e_lnran). | ||||
| "SELECT single VRSBA FROM ANLV INTO @DATA(ld_e_vrsba). | ||||
| "SELECT single GJAHR FROM ANLC INTO @DATA(ld_i_gjahr). | ||||
| "SELECT single VSBAJ FROM ANLV INTO @DATA(ld_e_vsbaj). | ||||
| "SELECT single KZ FROM RA01M INTO @DATA(ld_i_rech_basiswrt). | ||||
| DATA(ld_i_rech_basiswrt) | = ''. | |||
| "SELECT single VSWRT FROM RA02S INTO @DATA(ld_e_vswrt). | ||||
| "SELECT single KZ FROM RA01M INTO @DATA(ld_i_rech_verswrt). | ||||
| DATA(ld_i_rech_verswrt) | = ''. | |||
| "SELECT single XVRSKU FROM T093C INTO @DATA(ld_i_xvrsku). | ||||
| DATA(ld_i_xvrsku) | = ''. | |||
| "SELECT single KOART FROM T020 INTO @DATA(ld_i_olddata). | ||||
| DATA(ld_i_olddata) | = ''. | |||
Search for further information about these or an SAP related objects