Application Development and Automation 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: 
Read only

check table exists

Former Member
0 Likes
7,878

Hello

How can I check if a table exists when I have the name, for example entered by the user. ?

Greets

1 ACCEPTED SOLUTION
Read only

ThomasZloch
Active Contributor
0 Likes
3,963

table DD02L holds all table names, have your program check there wether a table exists.

Cheers

Thomas

table DD02L holds all table names, have your program check there wether a table exists.

Cheers

Thomas

7 REPLIES 7
Read only

ThomasZloch
Active Contributor
0 Likes
3,964

table DD02L holds all table names, have your program check there wether a table exists.

Cheers

Thomas

Read only

JozsefSzikszai
Active Contributor
0 Likes
3,963

hi Bert,

tables are stored in table DD02L in SAP. So best is to do a SELECT COUNT ... on DD02L e with the table name entered by the user...

hope this helps

ec

Read only

Former Member
0 Likes
3,963

EXISTS TABLE

[http://sapdb.org/7.4/htmhelp/6d/117c20d14811d2a97400a0c9449261/content.htm]

regards

Read only

Former Member
0 Likes
3,963

Hi,

Go to SE12.

Enter any table in which that field exists for which you want to see the check table.

Double click on the field name.

Incase a check table exists, it will be displayed in the screen which comes.

Reward if helpful.

Regards.

Read only

Former Member
0 Likes
3,963

check in table : DD02L

Read only

Former Member
0 Likes
3,963

Hi,

a bit late but for the others, do not request everytime the table with a SELECT but prefer MF available for and used for several cases.


  • MF: INTERN_TYPE_KIND

Return the kind of the DDIC Object given or nothing if does not exists.

Rachid.

Read only

0 Likes
3,962

Hi,

there is another FM you can use it,

  call function 'DDIF_TYPEINFO_GET'
      
exporting
            typename
= 'ZIBO_URL_ALV'
      
importing
            typekind
= ty.



or this table,

you can select from this table  DDTYPES,


it is the same if you want to use SELECT or FM.

At the end, it depends on your requierement, for example, you have FM that does not fulfill requirements.



Regards

Ibrahim