SAP DPR_REPLICATE_RATES Function Module for NOTRANSL: Kosten-/Erlössätze replizieren









DPR_REPLICATE_RATES is a standard dpr replicate rates SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Kosten-/Erlössätze replizieren 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 dpr replicate rates FM, simply by entering the name DPR_REPLICATE_RATES into the relevant SAP transaction such as SE37 or SE38.

Function Group: DPR_CALC
Program Name: SAPLDPR_CALC
Main Program: SAPLDPR_CALC
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function DPR_REPLICATE_RATES 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 'DPR_REPLICATE_RATES'"NOTRANSL: Kosten-/Erlössätze replizieren
EXPORTING
* ID_TEST = 'X' "Test Run

TABLES
IT_SELOPT_RATE = "
* ET_DPR_RATES_T_DEL = "
* ET_DPR_RATES_CALC_DEL = "
* ET_DPR_RATES_UPD = "
* ET_DPR_RATES_T_UPD = "
* ET_DPR_RATES_CALC_UPD = "
* ET_DPR_RATES_NCH = "
* ET_DPR_RATES_T_NCH = "
* ET_DPR_RATES_CALC_NCH = "
* ET_MESSAGES = "Collected Messages
IT_SELOPT_OBJID = "
IT_DPR_RATES_CPR = "
IT_DPR_RATES_T_CPR = "
IT_DPR_RATES_MAP_CPR = "
* ET_DPR_RATES_INS = "
* ET_DPR_RATES_T_INS = "
* ET_DPR_RATES_CALC_INS = "
* ET_DPR_RATES_DEL = "
.



IMPORTING Parameters details for DPR_REPLICATE_RATES

ID_TEST - Test Run

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

TABLES Parameters details for DPR_REPLICATE_RATES

IT_SELOPT_RATE -

Data type: DPR_TS_SELOPTIONS_RATE
Optional: No
Call by Reference: Yes

ET_DPR_RATES_T_DEL -

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

ET_DPR_RATES_CALC_DEL -

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

ET_DPR_RATES_UPD -

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

ET_DPR_RATES_T_UPD -

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

ET_DPR_RATES_CALC_UPD -

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

ET_DPR_RATES_NCH -

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

ET_DPR_RATES_T_NCH -

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

ET_DPR_RATES_CALC_NCH -

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

ET_MESSAGES - Collected Messages

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

IT_SELOPT_OBJID -

Data type: DPR_TS_SELOPTIONS_OBJID
Optional: No
Call by Reference: Yes

IT_DPR_RATES_CPR -

Data type: DPR_RATES_CO
Optional: No
Call by Reference: Yes

IT_DPR_RATES_T_CPR -

Data type: DPR_RATES_T_CO
Optional: No
Call by Reference: Yes

IT_DPR_RATES_MAP_CPR -

Data type: DPR_TS_RATES_MAP_CO
Optional: No
Call by Reference: Yes

ET_DPR_RATES_INS -

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

ET_DPR_RATES_T_INS -

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

ET_DPR_RATES_CALC_INS -

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

ET_DPR_RATES_DEL -

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

Copy and paste ABAP code example for DPR_REPLICATE_RATES 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_id_test  TYPE XFLAG, "   'X'
lt_it_selopt_rate  TYPE STANDARD TABLE OF DPR_TS_SELOPTIONS_RATE, "   
lt_et_dpr_rates_t_del  TYPE STANDARD TABLE OF DPR_RATES_T_CO, "   
lt_et_dpr_rates_calc_del  TYPE STANDARD TABLE OF DPR_RATES_CALC, "   
lt_et_dpr_rates_upd  TYPE STANDARD TABLE OF DPR_RATES_CO, "   
lt_et_dpr_rates_t_upd  TYPE STANDARD TABLE OF DPR_RATES_T_CO, "   
lt_et_dpr_rates_calc_upd  TYPE STANDARD TABLE OF DPR_RATES_CALC, "   
lt_et_dpr_rates_nch  TYPE STANDARD TABLE OF DPR_RATES_CO, "   
lt_et_dpr_rates_t_nch  TYPE STANDARD TABLE OF DPR_RATES_T_CO, "   
lt_et_dpr_rates_calc_nch  TYPE STANDARD TABLE OF DPR_RATES_CALC, "   
lt_et_messages  TYPE STANDARD TABLE OF BAPIRET2, "   
lt_it_selopt_objid  TYPE STANDARD TABLE OF DPR_TS_SELOPTIONS_OBJID, "   
lt_it_dpr_rates_cpr  TYPE STANDARD TABLE OF DPR_RATES_CO, "   
lt_it_dpr_rates_t_cpr  TYPE STANDARD TABLE OF DPR_RATES_T_CO, "   
lt_it_dpr_rates_map_cpr  TYPE STANDARD TABLE OF DPR_TS_RATES_MAP_CO, "   
lt_et_dpr_rates_ins  TYPE STANDARD TABLE OF DPR_RATES_CO, "   
lt_et_dpr_rates_t_ins  TYPE STANDARD TABLE OF DPR_RATES_T_CO, "   
lt_et_dpr_rates_calc_ins  TYPE STANDARD TABLE OF DPR_RATES_CALC, "   
lt_et_dpr_rates_del  TYPE STANDARD TABLE OF DPR_RATES_CO. "   

  CALL FUNCTION 'DPR_REPLICATE_RATES'  "NOTRANSL: Kosten-/Erlössätze replizieren
    EXPORTING
         ID_TEST = lv_id_test
    TABLES
         IT_SELOPT_RATE = lt_it_selopt_rate
         ET_DPR_RATES_T_DEL = lt_et_dpr_rates_t_del
         ET_DPR_RATES_CALC_DEL = lt_et_dpr_rates_calc_del
         ET_DPR_RATES_UPD = lt_et_dpr_rates_upd
         ET_DPR_RATES_T_UPD = lt_et_dpr_rates_t_upd
         ET_DPR_RATES_CALC_UPD = lt_et_dpr_rates_calc_upd
         ET_DPR_RATES_NCH = lt_et_dpr_rates_nch
         ET_DPR_RATES_T_NCH = lt_et_dpr_rates_t_nch
         ET_DPR_RATES_CALC_NCH = lt_et_dpr_rates_calc_nch
         ET_MESSAGES = lt_et_messages
         IT_SELOPT_OBJID = lt_it_selopt_objid
         IT_DPR_RATES_CPR = lt_it_dpr_rates_cpr
         IT_DPR_RATES_T_CPR = lt_it_dpr_rates_t_cpr
         IT_DPR_RATES_MAP_CPR = lt_it_dpr_rates_map_cpr
         ET_DPR_RATES_INS = lt_et_dpr_rates_ins
         ET_DPR_RATES_T_INS = lt_et_dpr_rates_t_ins
         ET_DPR_RATES_CALC_INS = lt_et_dpr_rates_calc_ins
         ET_DPR_RATES_DEL = lt_et_dpr_rates_del
. " DPR_REPLICATE_RATES




ABAP code using 7.40 inline data declarations to call FM DPR_REPLICATE_RATES

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.

DATA(ld_id_test) = 'X'.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


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!