SAP ACCUMULATION_DEPOT Function Module for Release Securities Account Position on a Key Date
ACCUMULATION_DEPOT is a standard accumulation depot SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Release Securities Account Position on a Key Date 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 depot FM, simply by entering the name ACCUMULATION_DEPOT into the relevant SAP transaction such as SE37 or SE38.
Function Group: FVWA
Program Name: SAPLFVWA
Main Program:
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ACCUMULATION_DEPOT 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_DEPOT'"Release Securities Account Position on a Key Date.
EXPORTING
BUKRS = "Buchungskreis für Selektion
* DBESTAND = SY-DATUM "Stichtag (inkl.)
* JNULLB = 0 "Nullbestände ausweisen ?
* KZ_BEVI = 0 "Kennzeichen, ob Bewegungssätze schon gelesen
RANL = "Analgenummer
RLDEPOT = "Securities Account ID
IMPORTING
ANZAH = "Anzahl Einträge in der Tab. O_REVAL
TABLES
I_TVWBEVI = "
O_REVALB = "Bestand am Stichtag im Format REVALB
IMPORTING Parameters details for ACCUMULATION_DEPOT
BUKRS - Buchungskreis für Selektion
Data type: VWPDEPO-BUKRSOptional: No
Call by Reference: No ( called with pass by value option)
DBESTAND - Stichtag (inkl.)
Data type: VWBEPI-DBESTANDDefault: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)
JNULLB - Nullbestände ausweisen ?
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
KZ_BEVI - Kennzeichen, ob Bewegungssätze schon gelesen
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
RANL - Analgenummer
Data type: VWPDEPO-RANLOptional: No
Call by Reference: No ( called with pass by value option)
RLDEPOT - Securities Account ID
Data type: VWPDEPO-RLDEPOOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for ACCUMULATION_DEPOT
ANZAH - Anzahl Einträge in der Tab. O_REVAL
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for ACCUMULATION_DEPOT
I_TVWBEVI -
Data type: VWBEVIOptional: No
Call by Reference: No ( called with pass by value option)
O_REVALB - Bestand am Stichtag im Format REVALB
Data type: REVALBOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for ACCUMULATION_DEPOT 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_anzah | TYPE STRING, " | |||
| lv_bukrs | TYPE VWPDEPO-BUKRS, " | |||
| lt_i_tvwbevi | TYPE STANDARD TABLE OF VWBEVI, " | |||
| lv_dbestand | TYPE VWBEPI-DBESTAND, " SY-DATUM | |||
| lt_o_revalb | TYPE STANDARD TABLE OF REVALB, " | |||
| lv_jnullb | TYPE REVALB, " 0 | |||
| lv_kz_bevi | TYPE REVALB, " 0 | |||
| lv_ranl | TYPE VWPDEPO-RANL, " | |||
| lv_rldepot | TYPE VWPDEPO-RLDEPO. " |
|   CALL FUNCTION 'ACCUMULATION_DEPOT' "Release Securities Account Position on a Key Date |
| EXPORTING | ||
| BUKRS | = lv_bukrs | |
| DBESTAND | = lv_dbestand | |
| JNULLB | = lv_jnullb | |
| KZ_BEVI | = lv_kz_bevi | |
| RANL | = lv_ranl | |
| RLDEPOT | = lv_rldepot | |
| IMPORTING | ||
| ANZAH | = lv_anzah | |
| TABLES | ||
| I_TVWBEVI | = lt_i_tvwbevi | |
| O_REVALB | = lt_o_revalb | |
| . " ACCUMULATION_DEPOT | ||
ABAP code using 7.40 inline data declarations to call FM ACCUMULATION_DEPOT
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 BUKRS FROM VWPDEPO INTO @DATA(ld_bukrs). | ||||
| "SELECT single DBESTAND FROM VWBEPI INTO @DATA(ld_dbestand). | ||||
| DATA(ld_dbestand) | = SY-DATUM. | |||
| "SELECT single RANL FROM VWPDEPO INTO @DATA(ld_ranl). | ||||
| "SELECT single RLDEPO FROM VWPDEPO INTO @DATA(ld_rldepot). | ||||
Search for further information about these or an SAP related objects