SAP RP_EVALUATE_INDIRECTLY Function Module for









RP_EVALUATE_INDIRECTLY is a standard rp evaluate indirectly 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 evaluate indirectly FM, simply by entering the name RP_EVALUATE_INDIRECTLY 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_EVALUATE_INDIRECTLY 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_EVALUATE_INDIRECTLY'"
EXPORTING
* APPLI = 'M' "
* PP0052 = "
* PP0230 = "
* PP0237 = "
* PPNNNN = "
* MSGFLG = '' "
* NORDCT = '' "
* CONV_CURR = 'X' "
* PSUBTY = "
* INITIALIZE_PERNR_BUFFER = ' ' "
PBEGDA = "
PINFTY = "
PMOLGA = "
* PTCLAS = 'A' "
PPERNR = "
* PP0001 = "
* PP0007 = "
* PP0008 = "

IMPORTING
PENDDA = "

TABLES
PTBINDBW = "
* PPNNNN_TAB = "

EXCEPTIONS
BAD_PARAMETERS = 1 ERROR_AT_INDIRECT_EVALUATION = 2
.



IMPORTING Parameters details for RP_EVALUATE_INDIRECTLY

APPLI -

Data type: PINDB-ANWDG
Default: 'M'
Optional: Yes
Call by Reference: No ( called with pass by value option)

PP0052 -

Data type: P0052
Optional: Yes
Call by Reference: No ( called with pass by value option)

PP0230 -

Data type: P0230
Optional: Yes
Call by Reference: No ( called with pass by value option)

PP0237 -

Data type: P0237
Optional: Yes
Call by Reference: No ( called with pass by value option)

PPNNNN -

Data type: PRELP
Optional: Yes
Call by Reference: No ( called with pass by value option)

MSGFLG -

Data type:
Default: ''
Optional: Yes
Call by Reference: No ( called with pass by value option)

NORDCT -

Data type:
Default: ''
Optional: Yes
Call by Reference: No ( called with pass by value option)

CONV_CURR -

Data type:
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

PSUBTY -

Data type: SUBTYP
Optional: Yes
Call by Reference: No ( called with pass by value option)

INITIALIZE_PERNR_BUFFER -

Data type: BOOLE_D
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

PBEGDA -

Data type: P0008-BEGDA
Optional: No
Call by Reference: No ( called with pass by value option)

PINFTY -

Data type: PREL-INFTY
Optional: No
Call by Reference: No ( called with pass by value option)

PMOLGA -

Data type: T001P-MOLGA
Optional: No
Call by Reference: No ( called with pass by value option)

PTCLAS -

Data type: TCLAS
Default: 'A'
Optional: Yes
Call by Reference: No ( called with pass by value option)

PPERNR -

Data type: PREL-PERNR
Optional: No
Call by Reference: No ( called with pass by value option)

PP0001 -

Data type: P0001
Optional: Yes
Call by Reference: No ( called with pass by value option)

PP0007 -

Data type: P0007
Optional: Yes
Call by Reference: No ( called with pass by value option)

PP0008 -

Data type: P0008
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for RP_EVALUATE_INDIRECTLY

PENDDA -

Data type: P0008-ENDDA
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for RP_EVALUATE_INDIRECTLY

PTBINDBW -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

PPNNNN_TAB -

Data type: PRELP
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

BAD_PARAMETERS -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

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_EVALUATE_INDIRECTLY 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_appli  TYPE PINDB-ANWDG, "   'M'
lv_pendda  TYPE P0008-ENDDA, "   
lt_ptbindbw  TYPE STANDARD TABLE OF P0008, "   
lv_bad_parameters  TYPE P0008, "   
lv_pp0052  TYPE P0052, "   
lv_pp0230  TYPE P0230, "   
lv_pp0237  TYPE P0237, "   
lv_ppnnnn  TYPE PRELP, "   
lv_msgflg  TYPE PRELP, "   ''
lv_nordct  TYPE PRELP, "   ''
lv_conv_curr  TYPE PRELP, "   'X'
lv_psubty  TYPE SUBTYP, "   
lv_initialize_pernr_buffer  TYPE BOOLE_D, "   SPACE
lv_pbegda  TYPE P0008-BEGDA, "   
lt_ppnnnn_tab  TYPE STANDARD TABLE OF PRELP, "   
lv_error_at_indirect_evaluation  TYPE PRELP, "   
lv_pinfty  TYPE PREL-INFTY, "   
lv_pmolga  TYPE T001P-MOLGA, "   
lv_ptclas  TYPE TCLAS, "   'A'
lv_ppernr  TYPE PREL-PERNR, "   
lv_pp0001  TYPE P0001, "   
lv_pp0007  TYPE P0007, "   
lv_pp0008  TYPE P0008. "   

  CALL FUNCTION 'RP_EVALUATE_INDIRECTLY'  "
    EXPORTING
         APPLI = lv_appli
         PP0052 = lv_pp0052
         PP0230 = lv_pp0230
         PP0237 = lv_pp0237
         PPNNNN = lv_ppnnnn
         MSGFLG = lv_msgflg
         NORDCT = lv_nordct
         CONV_CURR = lv_conv_curr
         PSUBTY = lv_psubty
         INITIALIZE_PERNR_BUFFER = lv_initialize_pernr_buffer
         PBEGDA = lv_pbegda
         PINFTY = lv_pinfty
         PMOLGA = lv_pmolga
         PTCLAS = lv_ptclas
         PPERNR = lv_ppernr
         PP0001 = lv_pp0001
         PP0007 = lv_pp0007
         PP0008 = lv_pp0008
    IMPORTING
         PENDDA = lv_pendda
    TABLES
         PTBINDBW = lt_ptbindbw
         PPNNNN_TAB = lt_ppnnnn_tab
    EXCEPTIONS
        BAD_PARAMETERS = 1
        ERROR_AT_INDIRECT_EVALUATION = 2
. " RP_EVALUATE_INDIRECTLY




ABAP code using 7.40 inline data declarations to call FM RP_EVALUATE_INDIRECTLY

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 ANWDG FROM PINDB INTO @DATA(ld_appli).
DATA(ld_appli) = 'M'.
 
"SELECT single ENDDA FROM P0008 INTO @DATA(ld_pendda).
 
 
 
 
 
 
 
DATA(ld_msgflg) = ''.
 
DATA(ld_nordct) = ''.
 
DATA(ld_conv_curr) = 'X'.
 
 
DATA(ld_initialize_pernr_buffer) = ' '.
 
"SELECT single BEGDA FROM P0008 INTO @DATA(ld_pbegda).
 
 
 
"SELECT single INFTY FROM PREL INTO @DATA(ld_pinfty).
 
"SELECT single MOLGA FROM T001P INTO @DATA(ld_pmolga).
 
DATA(ld_ptclas) = 'A'.
 
"SELECT single PERNR FROM PREL INTO @DATA(ld_ppernr).
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!