Skip to Content
author's profile photo Former Member
Former Member

How to find out if a structure already exists in DDIC

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Posted on Jan 31, 2007 at 06:58 PM

    You can simply check against table DD02L

    Regards,

    Rich Heilman

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 31, 2007 at 06:59 PM

    Hi,

    Use the FM:

    CHECK_TAB_NAME

    Regards

    Subramanian

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 31, 2007 at 07:03 PM

    Hi,

    Please check table DD40L.

    Regards,

    Ferry Lianto

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 01, 2007 at 08:38 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.