SAP INTERN_DD_CHECK_EXIST Function Module for
INTERN_DD_CHECK_EXIST is a standard intern dd check exist SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 intern dd check exist FM, simply by entering the name INTERN_DD_CHECK_EXIST into the relevant SAP transaction such as SE37 or SE38.
Function Group: SED1
Program Name: SAPLSED1
Main Program: SAPLSED1
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function INTERN_DD_CHECK_EXIST 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 'INTERN_DD_CHECK_EXIST'".
EXPORTING
OBJNAME = "Name of Dictionary object
OBJTYPE = "
* ERR_MESSAGE = ' ' "Flag:X=error dialog(E-message), else S-message
* OBJSTATE = 'M' "Status of Dictionary object (A or M)
* EXISTS = 'X' "Flag:X=test existence, else non-existence
* SECNAME = ' ' "Supplementary name
IMPORTING
MASTERLANGU = "Master language of Dictionary object
OTHER_CLASS = "
PROXY_TYPE = "DD: Is a generated proxy object
EXCEPTIONS
OBJECT_NOT_FOUND = 1 OTHER_OBJECT_CLASS = 2 INVALID_PARAMETER = 3 OBJECT_ALREADY_EXISTS = 4
IMPORTING Parameters details for INTERN_DD_CHECK_EXIST
OBJNAME - Name of Dictionary object
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
OBJTYPE -
Data type: RSEDD0-DDOBJTYPEOptional: No
Call by Reference: No ( called with pass by value option)
ERR_MESSAGE - Flag:X=error dialog(E-message), else S-message
Data type: DDREFSTRUC-FLAGDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
OBJSTATE - Status of Dictionary object (A or M)
Data type: RSDXX-STATEDefault: 'M'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXISTS - Flag:X=test existence, else non-existence
Data type: DDREFSTRUC-FLAGDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
SECNAME - Supplementary name
Data type: RSEDD0-INDEXIDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for INTERN_DD_CHECK_EXIST
MASTERLANGU - Master language of Dictionary object
Data type: SY-LANGUOptional: No
Call by Reference: No ( called with pass by value option)
OTHER_CLASS -
Data type: RSEDD0-DDOBJTYPEOptional: No
Call by Reference: No ( called with pass by value option)
PROXY_TYPE - DD: Is a generated proxy object
Data type: DDPROXYTYOptional: No
Call by Reference: Yes
EXCEPTIONS details
OBJECT_NOT_FOUND - Object does not exist (EXIST = 'X')
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
OTHER_OBJECT_CLASS - OBJNAME is defined in another object class
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INVALID_PARAMETER - Invalid parameter value
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
OBJECT_ALREADY_EXISTS - Object already exists (EXIST=' ')
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for INTERN_DD_CHECK_EXIST 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_objname | TYPE STRING, " | |||
| lv_masterlangu | TYPE SY-LANGU, " | |||
| lv_object_not_found | TYPE SY, " | |||
| lv_objtype | TYPE RSEDD0-DDOBJTYPE, " | |||
| lv_other_class | TYPE RSEDD0-DDOBJTYPE, " | |||
| lv_other_object_class | TYPE RSEDD0, " | |||
| lv_proxy_type | TYPE DDPROXYTY, " | |||
| lv_err_message | TYPE DDREFSTRUC-FLAG, " ' ' | |||
| lv_invalid_parameter | TYPE DDREFSTRUC, " | |||
| lv_objstate | TYPE RSDXX-STATE, " 'M' | |||
| lv_object_already_exists | TYPE RSDXX, " | |||
| lv_exists | TYPE DDREFSTRUC-FLAG, " 'X' | |||
| lv_secname | TYPE RSEDD0-INDEXID. " SPACE |
|   CALL FUNCTION 'INTERN_DD_CHECK_EXIST' " |
| EXPORTING | ||
| OBJNAME | = lv_objname | |
| OBJTYPE | = lv_objtype | |
| ERR_MESSAGE | = lv_err_message | |
| OBJSTATE | = lv_objstate | |
| EXISTS | = lv_exists | |
| SECNAME | = lv_secname | |
| IMPORTING | ||
| MASTERLANGU | = lv_masterlangu | |
| OTHER_CLASS | = lv_other_class | |
| PROXY_TYPE | = lv_proxy_type | |
| EXCEPTIONS | ||
| OBJECT_NOT_FOUND = 1 | ||
| OTHER_OBJECT_CLASS = 2 | ||
| INVALID_PARAMETER = 3 | ||
| OBJECT_ALREADY_EXISTS = 4 | ||
| . " INTERN_DD_CHECK_EXIST | ||
ABAP code using 7.40 inline data declarations to call FM INTERN_DD_CHECK_EXIST
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 LANGU FROM SY INTO @DATA(ld_masterlangu). | ||||
| "SELECT single DDOBJTYPE FROM RSEDD0 INTO @DATA(ld_objtype). | ||||
| "SELECT single DDOBJTYPE FROM RSEDD0 INTO @DATA(ld_other_class). | ||||
| "SELECT single FLAG FROM DDREFSTRUC INTO @DATA(ld_err_message). | ||||
| DATA(ld_err_message) | = ' '. | |||
| "SELECT single STATE FROM RSDXX INTO @DATA(ld_objstate). | ||||
| DATA(ld_objstate) | = 'M'. | |||
| "SELECT single FLAG FROM DDREFSTRUC INTO @DATA(ld_exists). | ||||
| DATA(ld_exists) | = 'X'. | |||
| "SELECT single INDEXID FROM RSEDD0 INTO @DATA(ld_secname). | ||||
| DATA(ld_secname) | = ' '. | |||
Search for further information about these or an SAP related objects