SAP RP_PERIOD_AMOUNTS_ADD Function Module for
RP_PERIOD_AMOUNTS_ADD is a standard rp period amounts add 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 period amounts add FM, simply by entering the name RP_PERIOD_AMOUNTS_ADD into the relevant SAP transaction such as SE37 or SE38.
Function Group: PARA
Program Name: SAPLPARA
Main Program:
Appliation area: P
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RP_PERIOD_AMOUNTS_ADD 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_PERIOD_AMOUNTS_ADD'".
EXPORTING
* P_BUKRS = "
* P_CURRENCY_OUT = "
* P_ANSAL_WAGETYPE = "
* P_PERSA = "
* P_BTRTL = "
* P_PERSK = "
* P_PERSG = "
* P_MOLGA = "
P_DATE = "
* P_SUBTY = '0 ' "
P_CURRENCY_IN = "
IMPORTING
P_SUMME = "
TABLES
P_WAGETYPES = "
EXCEPTIONS
FEATURE_ANSAL = 1 NO_ENTRY_T511 = 2
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_SAPLPARA_001 Exit to Determine the Number of Periods (Feature 'PFREQ')
EXIT_SAPLPARA_002 Exit for Calculating Salary Percentage from IT0008 'Basic Pay'
EXIT_SAPLPARA_003 Exit for Calculating Salary Percentage from IT0014 'Recurr. Payments/Ded.'
EXIT_SAPLPARA_004 Exit for Calculating Salary Percentage from IT0015 'Additional Payments'
IMPORTING Parameters details for RP_PERIOD_AMOUNTS_ADD
P_BUKRS -
Data type: P0001-BUKRSOptional: Yes
Call by Reference: No ( called with pass by value option)
P_CURRENCY_OUT -
Data type: P0008-WAERSOptional: Yes
Call by Reference: No ( called with pass by value option)
P_ANSAL_WAGETYPE -
Data type: Q0008-LGARTOptional: Yes
Call by Reference: No ( called with pass by value option)
P_PERSA -
Data type: P0001-WERKSOptional: Yes
Call by Reference: No ( called with pass by value option)
P_BTRTL -
Data type: P0001-BTRTLOptional: Yes
Call by Reference: No ( called with pass by value option)
P_PERSK -
Data type: P0001-PERSKOptional: Yes
Call by Reference: No ( called with pass by value option)
P_PERSG -
Data type: P0001-PERSGOptional: Yes
Call by Reference: No ( called with pass by value option)
P_MOLGA -
Data type: T500P-MOLGAOptional: Yes
Call by Reference: No ( called with pass by value option)
P_DATE -
Data type: P0008-BEGDAOptional: No
Call by Reference: No ( called with pass by value option)
P_SUBTY -
Data type: P0008-SUBTYDefault: '0 '
Optional: Yes
Call by Reference: No ( called with pass by value option)
P_CURRENCY_IN -
Data type: P0008-WAERSOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for RP_PERIOD_AMOUNTS_ADD
P_SUMME -
Data type: POptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for RP_PERIOD_AMOUNTS_ADD
P_WAGETYPES -
Data type: PTBINDBWOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
FEATURE_ANSAL -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_ENTRY_T511 -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RP_PERIOD_AMOUNTS_ADD 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_p_bukrs | TYPE P0001-BUKRS, " | |||
| lv_p_summe | TYPE P, " | |||
| lt_p_wagetypes | TYPE STANDARD TABLE OF PTBINDBW, " | |||
| lv_feature_ansal | TYPE PTBINDBW, " | |||
| lv_p_currency_out | TYPE P0008-WAERS, " | |||
| lv_p_ansal_wagetype | TYPE Q0008-LGART, " | |||
| lv_p_persa | TYPE P0001-WERKS, " | |||
| lv_no_entry_t511 | TYPE P0001, " | |||
| lv_p_btrtl | TYPE P0001-BTRTL, " | |||
| lv_p_persk | TYPE P0001-PERSK, " | |||
| lv_p_persg | TYPE P0001-PERSG, " | |||
| lv_p_molga | TYPE T500P-MOLGA, " | |||
| lv_p_date | TYPE P0008-BEGDA, " | |||
| lv_p_subty | TYPE P0008-SUBTY, " '0 ' | |||
| lv_p_currency_in | TYPE P0008-WAERS. " |
|   CALL FUNCTION 'RP_PERIOD_AMOUNTS_ADD' " |
| EXPORTING | ||
| P_BUKRS | = lv_p_bukrs | |
| P_CURRENCY_OUT | = lv_p_currency_out | |
| P_ANSAL_WAGETYPE | = lv_p_ansal_wagetype | |
| P_PERSA | = lv_p_persa | |
| P_BTRTL | = lv_p_btrtl | |
| P_PERSK | = lv_p_persk | |
| P_PERSG | = lv_p_persg | |
| P_MOLGA | = lv_p_molga | |
| P_DATE | = lv_p_date | |
| P_SUBTY | = lv_p_subty | |
| P_CURRENCY_IN | = lv_p_currency_in | |
| IMPORTING | ||
| P_SUMME | = lv_p_summe | |
| TABLES | ||
| P_WAGETYPES | = lt_p_wagetypes | |
| EXCEPTIONS | ||
| FEATURE_ANSAL = 1 | ||
| NO_ENTRY_T511 = 2 | ||
| . " RP_PERIOD_AMOUNTS_ADD | ||
ABAP code using 7.40 inline data declarations to call FM RP_PERIOD_AMOUNTS_ADD
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 P0001 INTO @DATA(ld_p_bukrs). | ||||
| "SELECT single WAERS FROM P0008 INTO @DATA(ld_p_currency_out). | ||||
| "SELECT single LGART FROM Q0008 INTO @DATA(ld_p_ansal_wagetype). | ||||
| "SELECT single WERKS FROM P0001 INTO @DATA(ld_p_persa). | ||||
| "SELECT single BTRTL FROM P0001 INTO @DATA(ld_p_btrtl). | ||||
| "SELECT single PERSK FROM P0001 INTO @DATA(ld_p_persk). | ||||
| "SELECT single PERSG FROM P0001 INTO @DATA(ld_p_persg). | ||||
| "SELECT single MOLGA FROM T500P INTO @DATA(ld_p_molga). | ||||
| "SELECT single BEGDA FROM P0008 INTO @DATA(ld_p_date). | ||||
| "SELECT single SUBTY FROM P0008 INTO @DATA(ld_p_subty). | ||||
| DATA(ld_p_subty) | = '0 '. | |||
| "SELECT single WAERS FROM P0008 INTO @DATA(ld_p_currency_in). | ||||
Search for further information about these or an SAP related objects