Menu

SAP Function Module DD_EXISTS_DATA

Checks whether data exist to a table

The Function Module DD_EXISTS_DATA (Checks whether data exist to a table) is a standard Function Module in SAP ERP and is part of the function group SDD2 within the package SDIC.

Technical Information

Function Module DD_EXISTS_DATA
Short Text Checks whether data exist to a table
Function Group SDD2
Package SDIC
Module Type Normal Module

Importing Parameters

These are the IMPORTING parameters of this function module.

Parameter Name Type Associated Type Default Value Short Text
REFTAB LIKE DD02L-SQLTAB SPACE physical pool/cluster
TABCLASS LIKE DD02L-TABCLASS Table category (POOL/CLUSTER/TRANSP/SQLT)
TABNAME LIKE DD02L-TABNAME Name of the table to be checked

Exporting Parameters

These are the EXPORTING parameters of this function module.

Parameter Name Type Associated Type Default Value Short Text
SUBRC LIKE SY-SUBRC 0: data exists, 2: no data 3: no table

Changing Parameters

This function module does not define any CHANGING parameters.

Table Parameters

This function module does not define any TABLE parameters.

Exceptions

These are the Exceptions of this function module.

Exception Name Short Text
BUFFER_OVERFLOW
MISSING_REFTAB No reference table specified for pool/cluster
SQL_ERROR
UNKNOWN_ERROR