SAP RSDS_DATASOURCE_OLDNEW Function Module for DataSource old / new?









RSDS_DATASOURCE_OLDNEW is a standard rsds datasource oldnew SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for DataSource old / new? 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 rsds datasource oldnew FM, simply by entering the name RSDS_DATASOURCE_OLDNEW into the relevant SAP transaction such as SE37 or SE38.

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



Function RSDS_DATASOURCE_OLDNEW 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 'RSDS_DATASOURCE_OLDNEW'"DataSource old / new?
EXPORTING
I_DATASOURCE = "DataSource
I_LOGSYS = "Source System
* I_OBJVERS = RS_C_OBJVERS-ACTIVE "Object version: A (=A/M) or D
* I_REPAIR = RS_C_FALSE "Deprecated
* I_CHECK_CONSISTENCY = RS_C_FALSE "Consistency check old/new
* I_BYPASSING_BUFFER = RS_C_FALSE "Ignore Buffer

IMPORTING
E_NEW_ISUSED = "New DataSource usable
E_OLD_ISUSED = "Old DataSource usable
E_NEW_ACTIVE = "New DataSource active
E_OLD_ACTIVE = "Old DataSource active
E_NEW_EXISTS = "New DataSource exists
E_OLD_EXISTS = "Old DataSource exists

EXCEPTIONS
INCONSISTENT = 1 BOTH_ACTIVE = 2 FAILED = 3
.



IMPORTING Parameters details for RSDS_DATASOURCE_OLDNEW

I_DATASOURCE - DataSource

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

I_LOGSYS - Source System

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

I_OBJVERS - Object version: A (=A/M) or D

Data type: RSOBJVERS
Default: RS_C_OBJVERS-ACTIVE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_REPAIR - Deprecated

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

I_CHECK_CONSISTENCY - Consistency check old/new

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

I_BYPASSING_BUFFER - Ignore Buffer

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

EXPORTING Parameters details for RSDS_DATASOURCE_OLDNEW

E_NEW_ISUSED - New DataSource usable

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

E_OLD_ISUSED - Old DataSource usable

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

E_NEW_ACTIVE - New DataSource active

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

E_OLD_ACTIVE - Old DataSource active

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

E_NEW_EXISTS - New DataSource exists

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

E_OLD_EXISTS - Old DataSource exists

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

EXCEPTIONS details

INCONSISTENT -

Data type:
Optional: No
Call by Reference: Yes

BOTH_ACTIVE - Old and new DataSource active

Data type:
Optional: No
Call by Reference: Yes

FAILED -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for RSDS_DATASOURCE_OLDNEW 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_e_new_isused  TYPE RS_BOOL, "   
lv_inconsistent  TYPE RS_BOOL, "   
lv_i_datasource  TYPE RSOLTPSOURCER, "   
lv_i_logsys  TYPE RSSLOGSYS, "   
lv_both_active  TYPE RSSLOGSYS, "   
lv_e_old_isused  TYPE RS_BOOL, "   
lv_failed  TYPE RS_BOOL, "   
lv_i_objvers  TYPE RSOBJVERS, "   RS_C_OBJVERS-ACTIVE
lv_e_new_active  TYPE RS_BOOL, "   
lv_i_repair  TYPE RS_BOOL, "   RS_C_FALSE
lv_e_old_active  TYPE RS_BOOL, "   
lv_e_new_exists  TYPE RS_BOOL, "   
lv_i_check_consistency  TYPE RS_BOOL, "   RS_C_FALSE
lv_e_old_exists  TYPE RS_BOOL, "   
lv_i_bypassing_buffer  TYPE RS_BOOL. "   RS_C_FALSE

  CALL FUNCTION 'RSDS_DATASOURCE_OLDNEW'  "DataSource old / new?
    EXPORTING
         I_DATASOURCE = lv_i_datasource
         I_LOGSYS = lv_i_logsys
         I_OBJVERS = lv_i_objvers
         I_REPAIR = lv_i_repair
         I_CHECK_CONSISTENCY = lv_i_check_consistency
         I_BYPASSING_BUFFER = lv_i_bypassing_buffer
    IMPORTING
         E_NEW_ISUSED = lv_e_new_isused
         E_OLD_ISUSED = lv_e_old_isused
         E_NEW_ACTIVE = lv_e_new_active
         E_OLD_ACTIVE = lv_e_old_active
         E_NEW_EXISTS = lv_e_new_exists
         E_OLD_EXISTS = lv_e_old_exists
    EXCEPTIONS
        INCONSISTENT = 1
        BOTH_ACTIVE = 2
        FAILED = 3
. " RSDS_DATASOURCE_OLDNEW




ABAP code using 7.40 inline data declarations to call FM RSDS_DATASOURCE_OLDNEW

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_i_objvers) = RS_C_OBJVERS-ACTIVE.
 
 
DATA(ld_i_repair) = RS_C_FALSE.
 
 
 
DATA(ld_i_check_consistency) = RS_C_FALSE.
 
 
DATA(ld_i_bypassing_buffer) = RS_C_FALSE.
 


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!