2008 Mar 25 2:00 PM
Hello
How can I check if a table exists when I have the name, for example entered by the user. ?
Greets
2008 Mar 25 2:02 PM
table DD02L holds all table names, have your program check there wether a table exists.
Cheers
Thomas
Hello
How can I check if a table exists when I have the name, for example entered by the user. ?
Greets
2008 Mar 25 2:02 PM
table DD02L holds all table names, have your program check there wether a table exists.
Cheers
Thomas
2008 Mar 25 2:04 PM
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
2008 Mar 25 2:04 PM
EXISTS TABLE
[http://sapdb.org/7.4/htmhelp/6d/117c20d14811d2a97400a0c9449261/content.htm]
regards
2008 Mar 25 2:05 PM
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.
2008 Mar 25 2:06 PM
2015 Aug 08 12:36 PM
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.
Return the kind of the DDIC Object given or nothing if does not exists.
Rachid.
2015 Aug 09 8:15 AM
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
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |