Checking table existence using Class and it’s method in SE11 without using FM in ABAP

To perform table existence checks without using Function modules, you can use the class cl_rebf_ddic_tabl. Note that Class methods are almost similar to function modules. They are defined as code blocks to perform specific functionality and provide a more object-oriented approach to DDIC operations.

Example

The following code demonstrates how to check if a table exists using the EXISTS method ?

CALL METHOD cl_rebf_ddic_tabl=>exists
  EXPORTING
    id_name      = 'MARA'        " Table name to check
    id_tabclass  = 'TRANSP'      " For transparent table
*   if_noview    = ABAP_FALSE    " Optional parameter
  RECEIVING
    rf_exists    = DATA(lv_exists).

IF lv_exists = 'X'.
  WRITE: 'Table exists in SE11'.
ELSE.
  WRITE: 'Table does not exist'.
ENDIF.

This method returns 'X' if the table exists in Transaction SE11, otherwise it returns space.

Available Methods

The class CL_REBF_DDIC_TABL provides several useful methods for DDIC table operations ?

GET_TEXTTAB              - Supplies the Corresponding Text Table
GET_COMPLETE            - Supplies All Technical Information  
GET_DETAIL_X            - Supplies Extended Header Data
GET_FIELD_LIST          - Supplies the Field List
GET_FIELD_LIST_X        - Supplies the Field List with Additional Data
GET_RUSER               - Supplies Author/Date/Time of Last Change
COMPARE_WITH_DATA       - Detail Comparison
PUT_COMPLETE            - Creates a New Table/Structure
SPLIT_FIELDNAMES        - Generates Field List According to List
EXISTS                  - Table/Structure Available?
EXISTS_FIELD            - Field Available in Table/Structure?
EXISTS_INDEX_FOR_FIELDS - Field Available in Table Index?

Method Parameters

The EXISTS method accepts the following key parameters ?

  • ID_NAME ? Name of the table to check
  • ID_TABCLASS ? Table class (TRANSP for transparent tables)
  • IF_NOVIEW ? Optional flag to exclude views
  • RF_EXISTS ? Return flag indicating existence

Conclusion

Using the cl_rebf_ddic_tabl class provides an efficient object-oriented alternative to function modules for checking table existence in SE11, offering better integration with modern ABAP development practices.

Updated on: 2026-03-13T19:09:43+05:30

743 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements