SAP DD_SET_REPLICATOR_DATA Function Module for









DD_SET_REPLICATOR_DATA is a standard dd set replicator data 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 dd set replicator data FM, simply by entering the name DD_SET_REPLICATOR_DATA into the relevant SAP transaction such as SE37 or SE38.

Function Group: SDRPLI
Program Name: SAPLSDRPLI
Main Program: SAPLSDRPLI
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function DD_SET_REPLICATOR_DATA 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 'DD_SET_REPLICATOR_DATA'"
EXPORTING
APPLICATION = "
* SRCSYSTEM = '' "
* TAB_EX = ABAP_FALSE "
* PRID = -1 "
* VIEWNAME_CHECKED = ABAP_TRUE "
REPLISET = "

IMPORTING
RC = "

CHANGING
DDREPLICATOR_WA = "
DDREPLICATORVI_WA = "

EXCEPTIONS
NO_RFC_CONNECTION = 1 INFO_MISSING = 2 READ_ERROR = 3 WRITE_ERROR = 4 NAME_ERROR = 5
.



IMPORTING Parameters details for DD_SET_REPLICATOR_DATA

APPLICATION -

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

SRCSYSTEM -

Data type: CSEQUENCE
Default: ''
Optional: Yes
Call by Reference: Yes

TAB_EX -

Data type: ABAP_BOOL
Default: ABAP_FALSE
Optional: Yes
Call by Reference: Yes

PRID -

Data type: SYTABIX
Default: -1
Optional: Yes
Call by Reference: Yes

VIEWNAME_CHECKED -

Data type: ABAP_BOOL
Default: ABAP_TRUE
Optional: Yes
Call by Reference: Yes

REPLISET -

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

EXPORTING Parameters details for DD_SET_REPLICATOR_DATA

RC -

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

CHANGING Parameters details for DD_SET_REPLICATOR_DATA

DDREPLICATOR_WA -

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

DDREPLICATORVI_WA -

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

EXCEPTIONS details

NO_RFC_CONNECTION -

Data type:
Optional: No
Call by Reference: Yes

INFO_MISSING -

Data type:
Optional: No
Call by Reference: Yes

READ_ERROR -

Data type:
Optional: No
Call by Reference: Yes

WRITE_ERROR -

Data type:
Optional: No
Call by Reference: Yes

NAME_ERROR -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for DD_SET_REPLICATOR_DATA 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_rc  TYPE SYSUBRC, "   
lv_application  TYPE DDAPPLICATION, "   
lv_ddreplicator_wa  TYPE DDREPLICATOR, "   
lv_no_rfc_connection  TYPE DDREPLICATOR, "   
lv_srcsystem  TYPE CSEQUENCE, "   ''
lv_info_missing  TYPE CSEQUENCE, "   
lv_ddreplicatorvi_wa  TYPE DDREPLICATORVI, "   
lv_tab_ex  TYPE ABAP_BOOL, "   ABAP_FALSE
lv_read_error  TYPE ABAP_BOOL, "   
lv_prid  TYPE SYTABIX, "   -1
lv_write_error  TYPE SYTABIX, "   
lv_name_error  TYPE SYTABIX, "   
lv_viewname_checked  TYPE ABAP_BOOL, "   ABAP_TRUE
lv_repliset  TYPE DDREPLISET. "   

  CALL FUNCTION 'DD_SET_REPLICATOR_DATA'  "
    EXPORTING
         APPLICATION = lv_application
         SRCSYSTEM = lv_srcsystem
         TAB_EX = lv_tab_ex
         PRID = lv_prid
         VIEWNAME_CHECKED = lv_viewname_checked
         REPLISET = lv_repliset
    IMPORTING
         RC = lv_rc
    CHANGING
         DDREPLICATOR_WA = lv_ddreplicator_wa
         DDREPLICATORVI_WA = lv_ddreplicatorvi_wa
    EXCEPTIONS
        NO_RFC_CONNECTION = 1
        INFO_MISSING = 2
        READ_ERROR = 3
        WRITE_ERROR = 4
        NAME_ERROR = 5
. " DD_SET_REPLICATOR_DATA




ABAP code using 7.40 inline data declarations to call FM DD_SET_REPLICATOR_DATA

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_srcsystem) = ''.
 
 
 
DATA(ld_tab_ex) = ABAP_FALSE.
 
 
DATA(ld_prid) = -1.
 
 
 
DATA(ld_viewname_checked) = ABAP_TRUE.
 
 


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!