‎2008 Nov 20 3:54 PM
Hey there,
i'm looking for a function module that returns a list (itab) of components and dependencies of DDIC objects.
Example:
Table TAB1 has 2 fields
1.ID, data element ID_DTL
2.NAME, data element NAME_DTL
The function module should return the 2 fields and their data elements.
I've found some that could work: DD_*_COMPONENTS (e.g. DD_TABL_COMPONENTS) but I can't figure out how to call them because there's no explanation of the import/export/tables parameters.
I've looked for programs in the Where-Used List and tried it with debugging, but i couldn't figure out where the parameters are filled.
Maybe some one can explain these function modules in simple words or even tell me other/better ones.
Regards
Pascal
‎2008 Nov 20 3:56 PM
Hello Pascal
I usually employ fm DDIF_FIELDINFO_GET if I need meta data about DDIC objects.
For cross-references have a look at fm RS_EU_CROSSREF.
Regards
Uwe
‎2008 Nov 21 3:34 PM
Hey Uwe,
I looked DDIF_FIELDINFO_GET up, but had some problems to call it properly. But in the docu to that fm i've found DDIF_TABL_GET (for Tables, DDIF_DTEL_GET for data elements, DDIF_DOMA_GET for Domains) which does exactly what i want.
Thx a lot,
Regards
Pascal
‎2008 Nov 21 8:56 PM
Hello Pascal
In order to retrieve all meta-data of a table/structure using fm DDIF_FIELDINFO_GET just set:
TABNAME = <name of table/structure>
ALL_TYPES = 'X'Regards
Uwe
‎2008 Nov 24 8:07 AM
Maybe I should have mentioned, that I need this function to check inactive DDIC Objects (see for further information). If i've understood the Docu properly, DDIF_FIELDINFO_GET returns just information about the runtime object.
I've tested the FM with Table "Tadir" => no problems, but i created a new table which is inconsistent and therefore can not be activated. The FM failed to check this table.
Sorry for that misunderstanding,
Regards Pascal