SAP RSODS_UPDTYPE_SAVE Function Module for Updatetype and Iobjs of the update rules at load time
RSODS_UPDTYPE_SAVE is a standard rsods updtype 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 Updatetype and Iobjs of the update rules at load time 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 rsods updtype save FM, simply by entering the name RSODS_UPDTYPE_SAVE into the relevant SAP transaction such as SE37 or SE38.
Function Group: RSODS
Program Name: SAPLRSODS
Main Program: SAPLRSODS
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RSODS_UPDTYPE_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 'RSODS_UPDTYPE_SAVE'"Updatetype and Iobjs of the update rules at load time.
EXPORTING
I_ODSOBJECT = "InfoProvider
I_REQUEST = "Request number for the data transfer
I_T_ODSUPDTYPE = "
* I_USED_IOS = RS_C_TRUE "Save data for used Infoobjects
EXCEPTIONS
ENTRIES_ALREADY_EXIST = 1 REQUEST_NOT_EXIST = 2
IMPORTING Parameters details for RSODS_UPDTYPE_SAVE
I_ODSOBJECT - InfoProvider
Data type: RSINFOPROVOptional: No
Call by Reference: Yes
I_REQUEST - Request number for the data transfer
Data type: RSREQUNROptional: No
Call by Reference: Yes
I_T_ODSUPDTYPE -
Data type: RSODS_T_ODSUPDTYPEOptional: No
Call by Reference: Yes
I_USED_IOS - Save data for used Infoobjects
Data type: RS_BOOLDefault: RS_C_TRUE
Optional: Yes
Call by Reference: Yes
EXCEPTIONS details
ENTRIES_ALREADY_EXIST -
Data type:Optional: No
Call by Reference: Yes
REQUEST_NOT_EXIST -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for RSODS_UPDTYPE_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_i_odsobject | TYPE RSINFOPROV, " | |||
| lv_entries_already_exist | TYPE RSINFOPROV, " | |||
| lv_i_request | TYPE RSREQUNR, " | |||
| lv_request_not_exist | TYPE RSREQUNR, " | |||
| lv_i_t_odsupdtype | TYPE RSODS_T_ODSUPDTYPE, " | |||
| lv_i_used_ios | TYPE RS_BOOL. " RS_C_TRUE |
|   CALL FUNCTION 'RSODS_UPDTYPE_SAVE' "Updatetype and Iobjs of the update rules at load time |
| EXPORTING | ||
| I_ODSOBJECT | = lv_i_odsobject | |
| I_REQUEST | = lv_i_request | |
| I_T_ODSUPDTYPE | = lv_i_t_odsupdtype | |
| I_USED_IOS | = lv_i_used_ios | |
| EXCEPTIONS | ||
| ENTRIES_ALREADY_EXIST = 1 | ||
| REQUEST_NOT_EXIST = 2 | ||
| . " RSODS_UPDTYPE_SAVE | ||
ABAP code using 7.40 inline data declarations to call FM RSODS_UPDTYPE_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.| DATA(ld_i_used_ios) | = RS_C_TRUE. | |||
Search for further information about these or an SAP related objects