SAP RSDS_DATASOURCE_SINGLE_GET Function Module for Returns DataSource properties (old / new)
RSDS_DATASOURCE_SINGLE_GET is a standard rsds datasource single get SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Returns DataSource properties (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 single get FM, simply by entering the name RSDS_DATASOURCE_SINGLE_GET 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_SINGLE_GET 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_SINGLE_GET'"Returns DataSource properties (old / new).
EXPORTING
I_DATASOURCE = "DataSource
* I_LANGU = SY-LANGU "Language Key
I_LOGSYS = "Source System
* I_OBJVERS = RS_C_OBJVERS-ACTIVE "Object Version
* I_OLD_DS = RS_C_TRUE "Read old data source
* I_NEW_DS = RS_C_TRUE "Read new DataSource
* I_TARGET_NAME = "Target name
* I_TARGET_LOGSYS = "
* I_TARGET_OBJVERS = RS_C_OBJVERS-ACTIVE "Target object version
* I_GENOBJ_MODE = RSDST_C_GENOBJ-KEEP "Generated fields
IMPORTING
E_S_DS = "DataSource in BW
E_T_DSESRFDMAP = "Field Mapping DataSource - ESR
E_OLD_DS = "DataSource: Old Version (3.x)
E_T_SELFD = "Selection Fields of a DataSource with Texts
E_ISOSTYPE = "BW Infosource type (transaction data/basic characteristic)
E_T_DST = "DataSource Texts
E_T_DSSEG = "DataSource Segments
E_T_DSSEGT = "DataSource Segment Texts
E_T_DSSEGFD = "DataSource Fields
E_T_DSSEGFDT = "DataSource Field Texts
E_T_DSACCESSATTR = "DataSource - Attribute Access Method
E_S_DSESRMAP = "Mapping DataSource ESR (Serialized Object)
E_S_DSESRHDMAP = "Header Mapping of DataSource - ESR
EXCEPTIONS
NOT_FOUND = 1 INTERNAL_ERROR = 2
IMPORTING Parameters details for RSDS_DATASOURCE_SINGLE_GET
I_DATASOURCE - DataSource
Data type: RSDS_S_DSHEAD-DATASOURCEOptional: No
Call by Reference: Yes
I_LANGU - Language Key
Data type: LANGUDefault: SY-LANGU
Optional: Yes
Call by Reference: Yes
I_LOGSYS - Source System
Data type: RSDS_S_DSHEAD-LOGSYSOptional: No
Call by Reference: Yes
I_OBJVERS - Object Version
Data type: RSDS_S_DSHEAD-OBJVERSDefault: RS_C_OBJVERS-ACTIVE
Optional: Yes
Call by Reference: Yes
I_OLD_DS - Read old data source
Data type: RS_BOOLDefault: RS_C_TRUE
Optional: Yes
Call by Reference: Yes
I_NEW_DS - Read new DataSource
Data type: RS_BOOLDefault: RS_C_TRUE
Optional: Yes
Call by Reference: Yes
I_TARGET_NAME - Target name
Data type: RSDS-DATASOURCEOptional: Yes
Call by Reference: Yes
I_TARGET_LOGSYS -
Data type: RSSLOGSYSOptional: Yes
Call by Reference: Yes
I_TARGET_OBJVERS - Target object version
Data type: RSOBJVERSDefault: RS_C_OBJVERS-ACTIVE
Optional: Yes
Call by Reference: Yes
I_GENOBJ_MODE - Generated fields
Data type: RSDST_GENOBJDefault: RSDST_C_GENOBJ-KEEP
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for RSDS_DATASOURCE_SINGLE_GET
E_S_DS - DataSource in BW
Data type: RSDSOptional: No
Call by Reference: Yes
E_T_DSESRFDMAP - Field Mapping DataSource - ESR
Data type: ROTESRFDMAPOptional: No
Call by Reference: Yes
E_OLD_DS - DataSource: Old Version (3.x)
Data type: RSDS_OLD_DSOptional: No
Call by Reference: Yes
E_T_SELFD - Selection Fields of a DataSource with Texts
Data type: RSDS_T_SELFDOptional: No
Call by Reference: Yes
E_ISOSTYPE - BW Infosource type (transaction data/basic characteristic)
Data type: RSISOSTYPEOptional: No
Call by Reference: Yes
E_T_DST - DataSource Texts
Data type: RSDS_T_RSDSTOptional: No
Call by Reference: Yes
E_T_DSSEG - DataSource Segments
Data type: RSDS_T_RSDSSEGOptional: No
Call by Reference: Yes
E_T_DSSEGT - DataSource Segment Texts
Data type: RSDS_T_RSDSSEGTOptional: No
Call by Reference: Yes
E_T_DSSEGFD - DataSource Fields
Data type: RSDS_T_RSDSSEGFDOptional: No
Call by Reference: Yes
E_T_DSSEGFDT - DataSource Field Texts
Data type: RSDS_T_RSDSSEGFDTOptional: No
Call by Reference: Yes
E_T_DSACCESSATTR - DataSource - Attribute Access Method
Data type: RSDS_T_ACCESSATTROptional: No
Call by Reference: Yes
E_S_DSESRMAP - Mapping DataSource ESR (Serialized Object)
Data type: RSDSESRMAPOptional: No
Call by Reference: Yes
E_S_DSESRHDMAP - Header Mapping of DataSource - ESR
Data type: ROESRHDMAPOptional: No
Call by Reference: Yes
EXCEPTIONS details
NOT_FOUND - DataSource not found
Data type:Optional: No
Call by Reference: Yes
INTERNAL_ERROR - Internal error
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for RSDS_DATASOURCE_SINGLE_GET 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_s_ds | TYPE RSDS, " | |||
| lv_not_found | TYPE RSDS, " | |||
| lv_i_datasource | TYPE RSDS_S_DSHEAD-DATASOURCE, " | |||
| lv_i_langu | TYPE LANGU, " SY-LANGU | |||
| lv_e_t_dsesrfdmap | TYPE ROTESRFDMAP, " | |||
| lv_e_old_ds | TYPE RSDS_OLD_DS, " | |||
| lv_e_t_selfd | TYPE RSDS_T_SELFD, " | |||
| lv_e_isostype | TYPE RSISOSTYPE, " | |||
| lv_e_t_dst | TYPE RSDS_T_RSDST, " | |||
| lv_i_logsys | TYPE RSDS_S_DSHEAD-LOGSYS, " | |||
| lv_internal_error | TYPE RSDS_S_DSHEAD, " | |||
| lv_e_t_dsseg | TYPE RSDS_T_RSDSSEG, " | |||
| lv_i_objvers | TYPE RSDS_S_DSHEAD-OBJVERS, " RS_C_OBJVERS-ACTIVE | |||
| lv_i_old_ds | TYPE RS_BOOL, " RS_C_TRUE | |||
| lv_e_t_dssegt | TYPE RSDS_T_RSDSSEGT, " | |||
| lv_i_new_ds | TYPE RS_BOOL, " RS_C_TRUE | |||
| lv_e_t_dssegfd | TYPE RSDS_T_RSDSSEGFD, " | |||
| lv_e_t_dssegfdt | TYPE RSDS_T_RSDSSEGFDT, " | |||
| lv_i_target_name | TYPE RSDS-DATASOURCE, " | |||
| lv_i_target_logsys | TYPE RSSLOGSYS, " | |||
| lv_e_t_dsaccessattr | TYPE RSDS_T_ACCESSATTR, " | |||
| lv_e_s_dsesrmap | TYPE RSDSESRMAP, " | |||
| lv_i_target_objvers | TYPE RSOBJVERS, " RS_C_OBJVERS-ACTIVE | |||
| lv_i_genobj_mode | TYPE RSDST_GENOBJ, " RSDST_C_GENOBJ-KEEP | |||
| lv_e_s_dsesrhdmap | TYPE ROESRHDMAP. " |
|   CALL FUNCTION 'RSDS_DATASOURCE_SINGLE_GET' "Returns DataSource properties (old / new) |
| EXPORTING | ||
| I_DATASOURCE | = lv_i_datasource | |
| I_LANGU | = lv_i_langu | |
| I_LOGSYS | = lv_i_logsys | |
| I_OBJVERS | = lv_i_objvers | |
| I_OLD_DS | = lv_i_old_ds | |
| I_NEW_DS | = lv_i_new_ds | |
| I_TARGET_NAME | = lv_i_target_name | |
| I_TARGET_LOGSYS | = lv_i_target_logsys | |
| I_TARGET_OBJVERS | = lv_i_target_objvers | |
| I_GENOBJ_MODE | = lv_i_genobj_mode | |
| IMPORTING | ||
| E_S_DS | = lv_e_s_ds | |
| E_T_DSESRFDMAP | = lv_e_t_dsesrfdmap | |
| E_OLD_DS | = lv_e_old_ds | |
| E_T_SELFD | = lv_e_t_selfd | |
| E_ISOSTYPE | = lv_e_isostype | |
| E_T_DST | = lv_e_t_dst | |
| E_T_DSSEG | = lv_e_t_dsseg | |
| E_T_DSSEGT | = lv_e_t_dssegt | |
| E_T_DSSEGFD | = lv_e_t_dssegfd | |
| E_T_DSSEGFDT | = lv_e_t_dssegfdt | |
| E_T_DSACCESSATTR | = lv_e_t_dsaccessattr | |
| E_S_DSESRMAP | = lv_e_s_dsesrmap | |
| E_S_DSESRHDMAP | = lv_e_s_dsesrhdmap | |
| EXCEPTIONS | ||
| NOT_FOUND = 1 | ||
| INTERNAL_ERROR = 2 | ||
| . " RSDS_DATASOURCE_SINGLE_GET | ||
ABAP code using 7.40 inline data declarations to call FM RSDS_DATASOURCE_SINGLE_GET
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 DATASOURCE FROM RSDS_S_DSHEAD INTO @DATA(ld_i_datasource). | ||||
| DATA(ld_i_langu) | = SY-LANGU. | |||
| "SELECT single LOGSYS FROM RSDS_S_DSHEAD INTO @DATA(ld_i_logsys). | ||||
| "SELECT single OBJVERS FROM RSDS_S_DSHEAD INTO @DATA(ld_i_objvers). | ||||
| DATA(ld_i_objvers) | = RS_C_OBJVERS-ACTIVE. | |||
| DATA(ld_i_old_ds) | = RS_C_TRUE. | |||
| DATA(ld_i_new_ds) | = RS_C_TRUE. | |||
| "SELECT single DATASOURCE FROM RSDS INTO @DATA(ld_i_target_name). | ||||
| DATA(ld_i_target_objvers) | = RS_C_OBJVERS-ACTIVE. | |||
| DATA(ld_i_genobj_mode) | = RSDST_C_GENOBJ-KEEP. | |||
Search for further information about these or an SAP related objects