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

Function RP_PERFORM_MODULE 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_PERFORM_MODULE'".
EXPORTING
MODULE = "
MODULE_SPEC = "
MOLGA = "
BEGDA = "
* TCLAS = 'A' "
PERNR = "
INFTY = "
LGART = "
CHANGING
AMOUNT = "
CURRENCY = "
NUMBER = "
UNIT = "
ENDDA = "
EXCEPTIONS
ERROR_AT_INDIRECT_EVALUATION = 1
IMPORTING Parameters details for RP_PERFORM_MODULE
MODULE -
Data type: PADIV_MODULEOptional: No
Call by Reference: Yes
MODULE_SPEC -
Data type: PADIV_MODULE_SPECOptional: No
Call by Reference: Yes
MOLGA -
Data type: MOLGAOptional: No
Call by Reference: Yes
BEGDA -
Data type: BEGDAOptional: No
Call by Reference: Yes
TCLAS -
Data type: TCLASDefault: 'A'
Optional: Yes
Call by Reference: No ( called with pass by value option)
PERNR -
Data type: PERNR_DOptional: No
Call by Reference: Yes
INFTY -
Data type: INFTYOptional: No
Call by Reference: Yes
LGART -
Data type: LGARTOptional: No
Call by Reference: Yes
CHANGING Parameters details for RP_PERFORM_MODULE
AMOUNT -
Data type: PTBINDBW-BETRGOptional: No
Call by Reference: Yes
CURRENCY -
Data type: PTBINDBW-WAERSOptional: No
Call by Reference: Yes
NUMBER -
Data type: P0008-ANZ01Optional: No
Call by Reference: Yes
UNIT -
Data type: P0008-EIN01Optional: No
Call by Reference: Yes
ENDDA -
Data type: P0008-ENDDAOptional: No
Call by Reference: Yes
EXCEPTIONS details
ERROR_AT_INDIRECT_EVALUATION -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RP_PERFORM_MODULE 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_amount | TYPE PTBINDBW-BETRG, " | |||
| lv_module | TYPE PADIV_MODULE, " | |||
| lv_error_at_indirect_evaluation | TYPE PADIV_MODULE, " | |||
| lv_currency | TYPE PTBINDBW-WAERS, " | |||
| lv_module_spec | TYPE PADIV_MODULE_SPEC, " | |||
| lv_molga | TYPE MOLGA, " | |||
| lv_number | TYPE P0008-ANZ01, " | |||
| lv_unit | TYPE P0008-EIN01, " | |||
| lv_begda | TYPE BEGDA, " | |||
| lv_endda | TYPE P0008-ENDDA, " | |||
| lv_tclas | TYPE TCLAS, " 'A' | |||
| lv_pernr | TYPE PERNR_D, " | |||
| lv_infty | TYPE INFTY, " | |||
| lv_lgart | TYPE LGART. " |
|   CALL FUNCTION 'RP_PERFORM_MODULE' " |
| EXPORTING | ||
| MODULE | = lv_module | |
| MODULE_SPEC | = lv_module_spec | |
| MOLGA | = lv_molga | |
| BEGDA | = lv_begda | |
| TCLAS | = lv_tclas | |
| PERNR | = lv_pernr | |
| INFTY | = lv_infty | |
| LGART | = lv_lgart | |
| CHANGING | ||
| AMOUNT | = lv_amount | |
| CURRENCY | = lv_currency | |
| NUMBER | = lv_number | |
| UNIT | = lv_unit | |
| ENDDA | = lv_endda | |
| EXCEPTIONS | ||
| ERROR_AT_INDIRECT_EVALUATION = 1 | ||
| . " RP_PERFORM_MODULE | ||
ABAP code using 7.40 inline data declarations to call FM RP_PERFORM_MODULE
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 BETRG FROM PTBINDBW INTO @DATA(ld_amount). | ||||
| "SELECT single WAERS FROM PTBINDBW INTO @DATA(ld_currency). | ||||
| "SELECT single ANZ01 FROM P0008 INTO @DATA(ld_number). | ||||
| "SELECT single EIN01 FROM P0008 INTO @DATA(ld_unit). | ||||
| "SELECT single ENDDA FROM P0008 INTO @DATA(ld_endda). | ||||
| DATA(ld_tclas) | = 'A'. | |||
Search for further information about these or an SAP related objects