Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to find out if a structure already exists in DDIC

Former Member
0 Kudos

Hi all,

I want to find out if a structure or table type already exists in the DDIC. I intend to use the DDIF_TABL_GET function module and catch the exception raised but I am not sure if this 'illegal input' exception is only raised if a structure does not exist in DDIC. Is it the right way or is there a function module or static class method which can return me this info stg. like DDIC_OBJECT_EXISTS or not . I have the same problem for the table types too, but I think the solution must be similar...

Kind Regards,

Sükrü Ilker Birakoglu

4 REPLIES 4

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

You can simply check against table DD02L

Regards,

Rich Heilman

Former Member
0 Kudos

Hi,

Use the FM:

CHECK_TAB_NAME

Regards

Subramanian

ferry_lianto
Active Contributor
0 Kudos

Hi,

Please check table DD40L.

Regards,

Ferry Lianto

Former Member
0 Kudos

Hi all,

Thank you for your answers. I also found an alternative way for solving the problem. If you call the function module DDIF_TABL_GET with the state parameter set to 'M' (get the object regardless of its state(active, new)), the export parameter GOTSTATE shows us if the object in DDIC exists or not(if this parameter is space, then the object does not exist).

Kind Regards,

Sükrü Ilker Birakoglu