SAP ACCUMULATION_INIT_MR Function Module for Initialization for Cumulation of Positions
ACCUMULATION_INIT_MR is a standard accumulation init mr SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Initialization for Cumulation of Positions 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 accumulation init mr FM, simply by entering the name ACCUMULATION_INIT_MR into the relevant SAP transaction such as SE37 or SE38.
Function Group: FVBU
Program Name: SAPLFVBU
Main Program:
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ACCUMULATION_INIT_MR 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 'ACCUMULATION_INIT_MR'"Initialization for Cumulation of Positions.
EXPORTING
* FOREIGN_CURRENCY = ' ' "Bestandswährung
* LOCAL_CURRENCY = ' ' "Hauswährung
* RANTYP = '2' "Vertragsart Vermögensverwaltung
* SOLL_IST_REVAL = ' ' "REVAL-Werte: S(oll) oder I(st) Prinzip rechnen
* S_REVAL = '1' "Steuerung für Werte der Struktur REVAL
* S_RLOAM = '1' "Steuerung für Werte der Struktur RLOAM
* S_RPROF = '1' "X - Werte der Struktur RPROF berechnen
* X_STORNO_VERARBEITEN = ' ' "X - Storno verarbeiten
IMPORTING Parameters details for ACCUMULATION_INIT_MR
FOREIGN_CURRENCY - Bestandswährung
Data type: T001-WAERSDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
LOCAL_CURRENCY - Hauswährung
Data type: T001-WAERSDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
RANTYP - Vertragsart Vermögensverwaltung
Data type: TZPA-RANTYPDefault: '2'
Optional: Yes
Call by Reference: No ( called with pass by value option)
SOLL_IST_REVAL - REVAL-Werte: S(oll) oder I(st) Prinzip rechnen
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
S_REVAL - Steuerung für Werte der Struktur REVAL
Data type:Default: '1'
Optional: Yes
Call by Reference: No ( called with pass by value option)
S_RLOAM - Steuerung für Werte der Struktur RLOAM
Data type:Default: '1'
Optional: Yes
Call by Reference: No ( called with pass by value option)
S_RPROF - X - Werte der Struktur RPROF berechnen
Data type:Default: '1'
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_STORNO_VERARBEITEN - X - Storno verarbeiten
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for ACCUMULATION_INIT_MR 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_foreign_currency | TYPE T001-WAERS, " SPACE | |||
| lv_local_currency | TYPE T001-WAERS, " SPACE | |||
| lv_rantyp | TYPE TZPA-RANTYP, " '2' | |||
| lv_soll_ist_reval | TYPE TZPA, " SPACE | |||
| lv_s_reval | TYPE TZPA, " '1' | |||
| lv_s_rloam | TYPE TZPA, " '1' | |||
| lv_s_rprof | TYPE TZPA, " '1' | |||
| lv_x_storno_verarbeiten | TYPE TZPA. " SPACE |
|   CALL FUNCTION 'ACCUMULATION_INIT_MR' "Initialization for Cumulation of Positions |
| EXPORTING | ||
| FOREIGN_CURRENCY | = lv_foreign_currency | |
| LOCAL_CURRENCY | = lv_local_currency | |
| RANTYP | = lv_rantyp | |
| SOLL_IST_REVAL | = lv_soll_ist_reval | |
| S_REVAL | = lv_s_reval | |
| S_RLOAM | = lv_s_rloam | |
| S_RPROF | = lv_s_rprof | |
| X_STORNO_VERARBEITEN | = lv_x_storno_verarbeiten | |
| . " ACCUMULATION_INIT_MR | ||
ABAP code using 7.40 inline data declarations to call FM ACCUMULATION_INIT_MR
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 WAERS FROM T001 INTO @DATA(ld_foreign_currency). | ||||
| DATA(ld_foreign_currency) | = ' '. | |||
| "SELECT single WAERS FROM T001 INTO @DATA(ld_local_currency). | ||||
| DATA(ld_local_currency) | = ' '. | |||
| "SELECT single RANTYP FROM TZPA INTO @DATA(ld_rantyp). | ||||
| DATA(ld_rantyp) | = '2'. | |||
| DATA(ld_soll_ist_reval) | = ' '. | |||
| DATA(ld_s_reval) | = '1'. | |||
| DATA(ld_s_rloam) | = '1'. | |||
| DATA(ld_s_rprof) | = '1'. | |||
| DATA(ld_x_storno_verarbeiten) | = ' '. | |||
Search for further information about these or an SAP related objects