SAP RSDS_ACCESS_DB_DATA_UPLOAD_2 Function Module for Upload Data from DB
RSDS_ACCESS_DB_DATA_UPLOAD_2 is a standard rsds access db data upload 2 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Upload Data from 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 access db data upload 2 FM, simply by entering the name RSDS_ACCESS_DB_DATA_UPLOAD_2 into the relevant SAP transaction such as SE37 or SE38.
Function Group: RSDS_ACCESS_BACKEND
Program Name: SAPLRSDS_ACCESS_BACKEND
Main Program: SAPLRSDS_ACCESS_BACKEND
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RSDS_ACCESS_DB_DATA_UPLOAD_2 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_ACCESS_DB_DATA_UPLOAD_2'"Upload Data from DB.
EXPORTING
* I_STATEMENT = "SQL Statement
I_S_DBCON = "Description of Database Connections
* I_FETCHSIZE = "Maximum number of table entries in extraction API interface
I_DATAPAKID = "Data packet number
* I_SINGLE_FETCH = "FM called only once and not in a loop
* I_T_STATEMENT = "Itab of SQL Statement
* I_T_CORRESP_FIELDS = "
CHANGING
C_R_DATA = "Records of Data
EXCEPTIONS
INVALID_PARAMETER = 1 NO_MORE_DATA = 2 NOT_BOUND = 3 NO_DATA = 4 UNKNOWN = 5
IMPORTING Parameters details for RSDS_ACCESS_DB_DATA_UPLOAD_2
I_STATEMENT - SQL Statement
Data type: RSDS_DATA_STRINGOptional: Yes
Call by Reference: Yes
I_S_DBCON - Description of Database Connections
Data type: DBCONOptional: No
Call by Reference: Yes
I_FETCHSIZE - Maximum number of table entries in extraction API interface
Data type: RSMAXSIZEOptional: Yes
Call by Reference: Yes
I_DATAPAKID - Data packet number
Data type: RSDATAPIDOptional: No
Call by Reference: Yes
I_SINGLE_FETCH - FM called only once and not in a loop
Data type: RS_BOOLOptional: Yes
Call by Reference: Yes
I_T_STATEMENT - Itab of SQL Statement
Data type: RSDS_T_STRINGOptional: Yes
Call by Reference: Yes
I_T_CORRESP_FIELDS -
Data type: ADBC_COLUMN_TABOptional: Yes
Call by Reference: Yes
CHANGING Parameters details for RSDS_ACCESS_DB_DATA_UPLOAD_2
C_R_DATA - Records of Data
Data type: DATAOptional: No
Call by Reference: Yes
EXCEPTIONS details
INVALID_PARAMETER - Importing parameter(s) invalid
Data type:Optional: No
Call by Reference: Yes
NO_MORE_DATA - No more Data
Data type:Optional: No
Call by Reference: Yes
NOT_BOUND - Result Object class not bound
Data type:Optional: No
Call by Reference: Yes
NO_DATA - DB Table/View contains no data
Data type:Optional: No
Call by Reference: Yes
UNKNOWN - Unknown Error
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for RSDS_ACCESS_DB_DATA_UPLOAD_2 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_c_r_data | TYPE DATA, " | |||
| lv_i_statement | TYPE RSDS_DATA_STRING, " | |||
| lv_invalid_parameter | TYPE RSDS_DATA_STRING, " | |||
| lv_i_s_dbcon | TYPE DBCON, " | |||
| lv_no_more_data | TYPE DBCON, " | |||
| lv_not_bound | TYPE DBCON, " | |||
| lv_i_fetchsize | TYPE RSMAXSIZE, " | |||
| lv_no_data | TYPE RSMAXSIZE, " | |||
| lv_i_datapakid | TYPE RSDATAPID, " | |||
| lv_unknown | TYPE RSDATAPID, " | |||
| lv_i_single_fetch | TYPE RS_BOOL, " | |||
| lv_i_t_statement | TYPE RSDS_T_STRING, " | |||
| lv_i_t_corresp_fields | TYPE ADBC_COLUMN_TAB. " |
|   CALL FUNCTION 'RSDS_ACCESS_DB_DATA_UPLOAD_2' "Upload Data from DB |
| EXPORTING | ||
| I_STATEMENT | = lv_i_statement | |
| I_S_DBCON | = lv_i_s_dbcon | |
| I_FETCHSIZE | = lv_i_fetchsize | |
| I_DATAPAKID | = lv_i_datapakid | |
| I_SINGLE_FETCH | = lv_i_single_fetch | |
| I_T_STATEMENT | = lv_i_t_statement | |
| I_T_CORRESP_FIELDS | = lv_i_t_corresp_fields | |
| CHANGING | ||
| C_R_DATA | = lv_c_r_data | |
| EXCEPTIONS | ||
| INVALID_PARAMETER = 1 | ||
| NO_MORE_DATA = 2 | ||
| NOT_BOUND = 3 | ||
| NO_DATA = 4 | ||
| UNKNOWN = 5 | ||
| . " RSDS_ACCESS_DB_DATA_UPLOAD_2 | ||
ABAP code using 7.40 inline data declarations to call FM RSDS_ACCESS_DB_DATA_UPLOAD_2
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