‎2010 Jan 04 1:31 PM
Dear all,
i'm looking for a function modul to get indices of individuell table.
I could'nt dfinde any one!
best regards
‎2010 Jan 04 1:36 PM
Hi,
I you can check the table DD12L for INDEX definitions of a table and DD12T for descriptions of indexes. Here pass the table name
Thanks,
Vinod.
‎2010 Jan 04 1:38 PM
‎2010 Jan 04 1:50 PM
Thank you very very much to all
ehmm @Gungor Ozcelebi
I get now all index fields from the FM. How can I determine the secondary indices.
I think its everything fields without '~0' right?
best regards
Edited by: handeglo on Jan 4, 2010 2:53 PM
‎2010 Jan 04 2:00 PM
you get the following tables in the FM.. right?
DBINDEXES
DBINDFLDS
in this DBINDEXES you have 1 field for index another for unique.. for primary key it would be 'X'.
or any ways the index <tab_name>~0 means primary key( ~0).
after getting this...
you delete the lines for <tab_name>~0 from DBINDFLDS and rest are your secondary keys
‎2010 Jan 04 2:01 PM
‎2010 Jan 04 5:41 PM
yes, ~0 is allways the primary index, all others are secondary.
Regards,
Clemens
‎2010 Jan 04 1:38 PM