SAP RP_GET_CUMULATION Function Module for
RP_GET_CUMULATION is a standard rp get cumulation 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 rp get cumulation FM, simply by entering the name RP_GET_CUMULATION into the relevant SAP transaction such as SE37 or SE38.
Function Group: RPCU
Program Name: SAPLRPCU
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function RP_GET_CUMULATION 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 'RP_GET_CUMULATION'".
EXPORTING
IMP_MOLGA = "
IMP_DATMO = "
IMP_PERMO = "
IMP_PAPER = "
IMP_BONDT = "
IMP_CUMTY = "
IMPORTING
EXP_CUMNO = "
EXP_CUMYR = "
TABLES
* ERRORTEXT = "
EXCEPTIONS
NO_ENTRY_FOUND = 1 CLEAN_UP_FAILED = 2
IMPORTING Parameters details for RP_GET_CUMULATION
IMP_MOLGA -
Data type: MOLGAOptional: No
Call by Reference: Yes
IMP_DATMO -
Data type: DATMOOptional: No
Call by Reference: Yes
IMP_PERMO -
Data type: PERMOOptional: No
Call by Reference: Yes
IMP_PAPER -
Data type: PAPEROptional: No
Call by Reference: Yes
IMP_BONDT -
Data type: BONDTOptional: No
Call by Reference: Yes
IMP_CUMTY -
Data type: PBAS_CUMTYOptional: No
Call by Reference: Yes
EXPORTING Parameters details for RP_GET_CUMULATION
EXP_CUMNO -
Data type: PBAS_CUMNOOptional: No
Call by Reference: Yes
EXP_CUMYR -
Data type: PBAS_CUMYROptional: No
Call by Reference: Yes
TABLES Parameters details for RP_GET_CUMULATION
ERRORTEXT -
Data type: PLOG_TEXTOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
NO_ENTRY_FOUND -
Data type:Optional: No
Call by Reference: Yes
CLEAN_UP_FAILED -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for RP_GET_CUMULATION 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: | ||||
lt_errortext | TYPE STANDARD TABLE OF PLOG_TEXT, " | |||
lv_exp_cumno | TYPE PBAS_CUMNO, " | |||
lv_imp_molga | TYPE MOLGA, " | |||
lv_no_entry_found | TYPE MOLGA, " | |||
lv_exp_cumyr | TYPE PBAS_CUMYR, " | |||
lv_imp_datmo | TYPE DATMO, " | |||
lv_clean_up_failed | TYPE DATMO, " | |||
lv_imp_permo | TYPE PERMO, " | |||
lv_imp_paper | TYPE PAPER, " | |||
lv_imp_bondt | TYPE BONDT, " | |||
lv_imp_cumty | TYPE PBAS_CUMTY. " |
  CALL FUNCTION 'RP_GET_CUMULATION' " |
EXPORTING | ||
IMP_MOLGA | = lv_imp_molga | |
IMP_DATMO | = lv_imp_datmo | |
IMP_PERMO | = lv_imp_permo | |
IMP_PAPER | = lv_imp_paper | |
IMP_BONDT | = lv_imp_bondt | |
IMP_CUMTY | = lv_imp_cumty | |
IMPORTING | ||
EXP_CUMNO | = lv_exp_cumno | |
EXP_CUMYR | = lv_exp_cumyr | |
TABLES | ||
ERRORTEXT | = lt_errortext | |
EXCEPTIONS | ||
NO_ENTRY_FOUND = 1 | ||
CLEAN_UP_FAILED = 2 | ||
. " RP_GET_CUMULATION |
ABAP code using 7.40 inline data declarations to call FM RP_GET_CUMULATION
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