SAP RSDBC_DB_FIELDS_CHECKS Function Module for Returns the description of the fields of a database table for BW









RSDBC_DB_FIELDS_CHECKS is a standard rsdbc db fields checks SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Returns the description of the fields of a database table for 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 rsdbc db fields checks FM, simply by entering the name RSDBC_DB_FIELDS_CHECKS 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_FIELDS_CHECKS 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_FIELDS_CHECKS'"Returns the description of the fields of a database table for BW
EXPORTING
I_S_DBCON = "Description of Database Connections
I_S_SCHEMARG = "Database Schema
I_S_FLAGSEL = "Selection types of DB tables
I_S_TABLERG = "InfoSet Query API: Range for Tables
I_T_TABSEL = "

IMPORTING
E_T_FIE = "Description of a DB Field
E_T_INDEX = "Table with Information about the DB Indexes of a Table
E_T_MESSAGES = "Notification Transfer

EXCEPTIONS
ERROR_OCCURED = 1 UNKNOWN_DBSYS = 2 SQL_EXCEPTION = 3 UNKNOWN_TABLE = 4 NO_FIELDS = 5
.



IMPORTING Parameters details for RSDBC_DB_FIELDS_CHECKS

I_S_DBCON - Description of Database Connections

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

I_S_SCHEMARG - Database Schema

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

I_S_FLAGSEL - Selection types of DB tables

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

I_S_TABLERG - InfoSet Query API: Range for Tables

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

I_T_TABSEL -

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

EXPORTING Parameters details for RSDBC_DB_FIELDS_CHECKS

E_T_FIE - Description of a DB Field

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

E_T_INDEX - Table with Information about the DB Indexes of a Table

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

E_T_MESSAGES - Notification Transfer

Data type: RSAOS_T_MESSAGES
Optional: 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)

UNKNOWN_TABLE -

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

NO_FIELDS -

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

Copy and paste ABAP code example for RSDBC_DB_FIELDS_CHECKS 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_e_t_fie  TYPE RSDBC_T_FIE, "   
lv_i_s_dbcon  TYPE DBCON, "   
lv_error_occured  TYPE DBCON, "   
lv_e_t_index  TYPE RSDBC_T_INDEX, "   
lv_i_s_schemarg  TYPE RSDBC_RT_NAME, "   
lv_unknown_dbsys  TYPE RSDBC_RT_NAME, "   
lv_i_s_flagsel  TYPE RSDBC_S_FLAG, "   
lv_e_t_messages  TYPE RSAOS_T_MESSAGES, "   
lv_sql_exception  TYPE RSAOS_T_MESSAGES, "   
lv_i_s_tablerg  TYPE RSDBC_RT_NAME, "   
lv_unknown_table  TYPE RSDBC_RT_NAME, "   
lv_no_fields  TYPE RSDBC_RT_NAME, "   
lv_i_t_tabsel  TYPE RSDBC_T_TAB. "   

  CALL FUNCTION 'RSDBC_DB_FIELDS_CHECKS'  "Returns the description of the fields of a database table for BW
    EXPORTING
         I_S_DBCON = lv_i_s_dbcon
         I_S_SCHEMARG = lv_i_s_schemarg
         I_S_FLAGSEL = lv_i_s_flagsel
         I_S_TABLERG = lv_i_s_tablerg
         I_T_TABSEL = lv_i_t_tabsel
    IMPORTING
         E_T_FIE = lv_e_t_fie
         E_T_INDEX = lv_e_t_index
         E_T_MESSAGES = lv_e_t_messages
    EXCEPTIONS
        ERROR_OCCURED = 1
        UNKNOWN_DBSYS = 2
        SQL_EXCEPTION = 3
        UNKNOWN_TABLE = 4
        NO_FIELDS = 5
. " RSDBC_DB_FIELDS_CHECKS




ABAP code using 7.40 inline data declarations to call FM RSDBC_DB_FIELDS_CHECKS

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



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!