SAP RSDS_ACCESS_DB_TABLES_GET Function Module for Liefert die Metadaten der Datenbank an BW
RSDS_ACCESS_DB_TABLES_GET is a standard rsds access db tables get SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Liefert die Metadaten der Datenbank an BW 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 tables get FM, simply by entering the name RSDS_ACCESS_DB_TABLES_GET into the relevant SAP transaction such as SE37 or SE38.
Function Group: RSDS_ACCESS_FRONTEND
Program Name: SAPLRSDS_ACCESS_FRONTEND
Main Program: SAPLRSDS_ACCESS_FRONTEND
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function RSDS_ACCESS_DB_TABLES_GET 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_TABLES_GET'"Liefert die Metadaten der Datenbank an BW.
EXPORTING
I_S_DBCON = "DB Connection Ref
I_T_SCHEMARG = "Schema
I_S_FLAGSEL = "Selection flags for Table, View, Synonym
I_T_TABLERG = "Table selection parameters
IMPORTING
E_T_TABSEL = "
E_T_MESSAGES = "
EXCEPTIONS
ERROR_OCCURED = 1 UNKNOWN_DBSYS = 2 SQL_EXCEPTION = 3 NO_TABLES = 4
IMPORTING Parameters details for RSDS_ACCESS_DB_TABLES_GET
I_S_DBCON - DB Connection Ref
Data type: DBCONOptional: No
Call by Reference: Yes
I_T_SCHEMARG - Schema
Data type: RSDBC_RT_NAMEOptional: No
Call by Reference: Yes
I_S_FLAGSEL - Selection flags for Table, View, Synonym
Data type: RSDBC_S_FLAGOptional: No
Call by Reference: Yes
I_T_TABLERG - Table selection parameters
Data type: RSDBC_RT_NAMEOptional: No
Call by Reference: Yes
EXPORTING Parameters details for RSDS_ACCESS_DB_TABLES_GET
E_T_TABSEL -
Data type: RSDBC_T_TABOptional: No
Call by Reference: Yes
E_T_MESSAGES -
Data type: RSAOS_T_MESSAGESOptional: No
Call by Reference: Yes
EXCEPTIONS details
ERROR_OCCURED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
UNKNOWN_DBSYS -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
SQL_EXCEPTION -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_TABLES -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RSDS_ACCESS_DB_TABLES_GET 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_s_dbcon | TYPE DBCON, " | |||
lv_e_t_tabsel | TYPE RSDBC_T_TAB, " | |||
lv_error_occured | TYPE RSDBC_T_TAB, " | |||
lv_e_t_messages | TYPE RSAOS_T_MESSAGES, " | |||
lv_i_t_schemarg | TYPE RSDBC_RT_NAME, " | |||
lv_unknown_dbsys | TYPE RSDBC_RT_NAME, " | |||
lv_i_s_flagsel | TYPE RSDBC_S_FLAG, " | |||
lv_sql_exception | TYPE RSDBC_S_FLAG, " | |||
lv_no_tables | TYPE RSDBC_S_FLAG, " | |||
lv_i_t_tablerg | TYPE RSDBC_RT_NAME. " |
  CALL FUNCTION 'RSDS_ACCESS_DB_TABLES_GET' "Liefert die Metadaten der Datenbank an BW |
EXPORTING | ||
I_S_DBCON | = lv_i_s_dbcon | |
I_T_SCHEMARG | = lv_i_t_schemarg | |
I_S_FLAGSEL | = lv_i_s_flagsel | |
I_T_TABLERG | = lv_i_t_tablerg | |
IMPORTING | ||
E_T_TABSEL | = lv_e_t_tabsel | |
E_T_MESSAGES | = lv_e_t_messages | |
EXCEPTIONS | ||
ERROR_OCCURED = 1 | ||
UNKNOWN_DBSYS = 2 | ||
SQL_EXCEPTION = 3 | ||
NO_TABLES = 4 | ||
. " RSDS_ACCESS_DB_TABLES_GET |
ABAP code using 7.40 inline data declarations to call FM RSDS_ACCESS_DB_TABLES_GET
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