SAP RSDBC_DB_DATA_UPLOAD Function Module for Upload of DB data to an InfoSource









RSDBC_DB_DATA_UPLOAD is a standard rsdbc db data upload 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 of DB data to an InfoSource 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 rsdbc db data upload FM, simply by entering the name RSDBC_DB_DATA_UPLOAD into the relevant SAP transaction such as SE37 or SE38.

Function Group: RSDBC
Program Name: SAPLRSDBC
Main Program: SAPLRSDBC
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function RSDBC_DB_DATA_UPLOAD 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 'RSDBC_DB_DATA_UPLOAD'"Upload of DB data to an InfoSource
EXPORTING
I_ISOURCE = "InfoSource
I_LOGSYS = "Source System
I_OLTPSOURCE = "DataSource
I_REQUESTID = "

TABLES
* I_T_SELVALUES = "
* E_T_MESSAGES = "Notification Transfer

EXCEPTIONS
UNKNOWN_DB_METADATA = 1 UNKNOWN_DB_SYSTEM = 2
.



IMPORTING Parameters details for RSDBC_DB_DATA_UPLOAD

I_ISOURCE - InfoSource

Data type: RSLDPIO-SOURCE
Optional: No
Call by Reference: Yes

I_LOGSYS - Source System

Data type: RSLDPIO-LOGSYS
Optional: No
Call by Reference: Yes

I_OLTPSOURCE - DataSource

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

I_REQUESTID -

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

TABLES Parameters details for RSDBC_DB_DATA_UPLOAD

I_T_SELVALUES -

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

E_T_MESSAGES - Notification Transfer

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

EXCEPTIONS details

UNKNOWN_DB_METADATA -

Data type:
Optional: No
Call by Reference: Yes

UNKNOWN_DB_SYSTEM -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for RSDBC_DB_DATA_UPLOAD 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_isource  TYPE RSLDPIO-SOURCE, "   
lt_i_t_selvalues  TYPE STANDARD TABLE OF RSARR_T_REQUEST_SVALUES, "   
lv_unknown_db_metadata  TYPE RSARR_T_REQUEST_SVALUES, "   
lv_i_logsys  TYPE RSLDPIO-LOGSYS, "   
lt_e_t_messages  TYPE STANDARD TABLE OF RSAOS_T_MESSAGES, "   
lv_unknown_db_system  TYPE RSAOS_T_MESSAGES, "   
lv_i_oltpsource  TYPE RSOLTPSOURCER, "   
lv_i_requestid  TYPE RSARI_REQUESTID. "   

  CALL FUNCTION 'RSDBC_DB_DATA_UPLOAD'  "Upload of DB data to an InfoSource
    EXPORTING
         I_ISOURCE = lv_i_isource
         I_LOGSYS = lv_i_logsys
         I_OLTPSOURCE = lv_i_oltpsource
         I_REQUESTID = lv_i_requestid
    TABLES
         I_T_SELVALUES = lt_i_t_seltalues
         E_T_MESSAGES = lt_e_t_messages
    EXCEPTIONS
        UNKNOWN_DB_METADATA = 1
        UNKNOWN_DB_SYSTEM = 2
. " RSDBC_DB_DATA_UPLOAD




ABAP code using 7.40 inline data declarations to call FM RSDBC_DB_DATA_UPLOAD

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 SOURCE FROM RSLDPIO INTO @DATA(ld_i_isource).
 
 
 
"SELECT single LOGSYS FROM RSLDPIO INTO @DATA(ld_i_logsys).
 
 
 
 
 


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!