SAP RSDS_DATASOURCE_SH_SAVE Function Module for Write a DataSource to DB









RSDS_DATASOURCE_SH_SAVE is a standard rsds datasource sh save SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Write a DataSource to DB 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 sh save FM, simply by entering the name RSDS_DATASOURCE_SH_SAVE 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_SH_SAVE 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_SH_SAVE'"Write a DataSource to DB
EXPORTING
I_S_DS = "DataSource in BW
I_T_DST = "DataSource Texts
I_T_DSSEG = "DataSource Segments
I_T_DSSEGT = "DataSource Segment Texts
I_T_DSSEGFD = "DataSource Fields
I_T_DSSEGFDT = "DataSource Field Texts
I_T_DSACCESSATTR = "DataSource - Attribute Access Method

EXCEPTIONS
FAILED = 1
.



IMPORTING Parameters details for RSDS_DATASOURCE_SH_SAVE

I_S_DS - DataSource in BW

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

I_T_DST - DataSource Texts

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

I_T_DSSEG - DataSource Segments

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

I_T_DSSEGT - DataSource Segment Texts

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

I_T_DSSEGFD - DataSource Fields

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

I_T_DSSEGFDT - DataSource Field Texts

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

I_T_DSACCESSATTR - DataSource - Attribute Access Method

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

EXCEPTIONS details

FAILED - Failed

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for RSDS_DATASOURCE_SH_SAVE 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_failed  TYPE STRING, "   
lv_i_s_ds  TYPE RSDS, "   
lv_i_t_dst  TYPE RSDS_T_RSDST, "   
lv_i_t_dsseg  TYPE RSDS_T_RSDSSEG, "   
lv_i_t_dssegt  TYPE RSDS_T_RSDSSEGT, "   
lv_i_t_dssegfd  TYPE RSDS_T_RSDSSEGFD, "   
lv_i_t_dssegfdt  TYPE RSDS_T_RSDSSEGFDT, "   
lv_i_t_dsaccessattr  TYPE RSDS_T_ACCESSATTR. "   

  CALL FUNCTION 'RSDS_DATASOURCE_SH_SAVE'  "Write a DataSource to DB
    EXPORTING
         I_S_DS = lv_i_s_ds
         I_T_DST = lv_i_t_dst
         I_T_DSSEG = lv_i_t_dsseg
         I_T_DSSEGT = lv_i_t_dssegt
         I_T_DSSEGFD = lv_i_t_dssegfd
         I_T_DSSEGFDT = lv_i_t_dssegfdt
         I_T_DSACCESSATTR = lv_i_t_dsaccessattr
    EXCEPTIONS
        FAILED = 1
. " RSDS_DATASOURCE_SH_SAVE




ABAP code using 7.40 inline data declarations to call FM RSDS_DATASOURCE_SH_SAVE

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.

 
 
 
 
 
 
 
 


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!