SAP RSDS_WS_DS_MODIFY Function Module for WebService-DataSource create/modify (and activate)









RSDS_WS_DS_MODIFY is a standard rsds ws ds modify SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for WebService-DataSource create/modify (and activate) 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 ws ds modify FM, simply by entering the name RSDS_WS_DS_MODIFY into the relevant SAP transaction such as SE37 or SE38.

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



Function RSDS_WS_DS_MODIFY 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_WS_DS_MODIFY'"WebService-DataSource create/modify (and activate)
EXPORTING
I_DATASOURCE = "
* I_DATEFROMFIELD = "
* I_DATETOFIELD = "
* I_TXTSH = "
* I_TXTLG = "
* I_FIXOBJNM = "
* I_ACTIVATE_DATASOURCE = 'X' "
I_LOGSYS = "
I_DATATYPE = "
* I_DELTAMETHOD = "
* I_PACKGUPD = "
* I_APPLNM = "
* I_MODIFICATIONDATE = "
* I_MODIFICATIONTIME = "
* I_LANGUFIELD = "

TABLES
I_T_FIELD = "
* I_T_FIELD_TEXT = "
* E_T_RETURN = "

EXCEPTIONS
FAILED = 1
.



IMPORTING Parameters details for RSDS_WS_DS_MODIFY

I_DATASOURCE -

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

I_DATEFROMFIELD -

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

I_DATETOFIELD -

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

I_TXTSH -

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

I_TXTLG -

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

I_FIXOBJNM -

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

I_ACTIVATE_DATASOURCE -

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

I_LOGSYS -

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

I_DATATYPE -

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

I_DELTAMETHOD -

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

I_PACKGUPD -

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

I_APPLNM -

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

I_MODIFICATIONDATE -

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

I_MODIFICATIONTIME -

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

I_LANGUFIELD -

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

TABLES Parameters details for RSDS_WS_DS_MODIFY

I_T_FIELD -

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

I_T_FIELD_TEXT -

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

E_T_RETURN -

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

EXCEPTIONS details

FAILED -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for RSDS_WS_DS_MODIFY 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, "   
lt_i_t_field  TYPE STANDARD TABLE OF RSDS_S_FIELD, "   
lv_i_datasource  TYPE ROOSOURCER, "   
lv_i_datefromfield  TYPE RSDS_DATEFROMFD, "   
lv_i_datetofield  TYPE RSDS_DATETOFD, "   
lv_i_txtsh  TYPE RSTXTSH, "   
lv_i_txtlg  TYPE RSTXTLG, "   
lv_i_fixobjnm  TYPE RSDSWSFIXOBJNM, "   
lv_i_activate_datasource  TYPE XFELD, "   'X'
lv_i_logsys  TYPE RSSLOGSYS, "   
lt_i_t_field_text  TYPE STANDARD TABLE OF RSAR_S_FIELDTXT, "   
lt_e_t_return  TYPE STANDARD TABLE OF BAPIRETTAB, "   
lv_i_datatype  TYPE RSDS_REQUTYPE, "   
lv_i_deltamethod  TYPE RSDS_DELTAMETHOD, "   
lv_i_packgupd  TYPE RSPACKGUPD, "   
lv_i_applnm  TYPE RSAPPLNM, "   
lv_i_modificationdate  TYPE RSMODDATE, "   
lv_i_modificationtime  TYPE RSMODTIME, "   
lv_i_langufield  TYPE RSDS_LANGUFD. "   

  CALL FUNCTION 'RSDS_WS_DS_MODIFY'  "WebService-DataSource create/modify (and activate)
    EXPORTING
         I_DATASOURCE = lv_i_datasource
         I_DATEFROMFIELD = lv_i_datefromfield
         I_DATETOFIELD = lv_i_datetofield
         I_TXTSH = lv_i_txtsh
         I_TXTLG = lv_i_txtlg
         I_FIXOBJNM = lv_i_fixobjnm
         I_ACTIVATE_DATASOURCE = lv_i_activate_datasource
         I_LOGSYS = lv_i_logsys
         I_DATATYPE = lv_i_datatype
         I_DELTAMETHOD = lv_i_deltamethod
         I_PACKGUPD = lv_i_packgupd
         I_APPLNM = lv_i_applnm
         I_MODIFICATIONDATE = lv_i_modificationdate
         I_MODIFICATIONTIME = lv_i_modificationtime
         I_LANGUFIELD = lv_i_langufield
    TABLES
         I_T_FIELD = lt_i_t_field
         I_T_FIELD_TEXT = lt_i_t_field_text
         E_T_RETURN = lt_e_t_return
    EXCEPTIONS
        FAILED = 1
. " RSDS_WS_DS_MODIFY




ABAP code using 7.40 inline data declarations to call FM RSDS_WS_DS_MODIFY

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_activate_datasource) = '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!