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

FM for information about DDic Objects

Former Member
0 Likes
1,916

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

4 REPLIES 4
Read only

uwe_schieferstein
Active Contributor
0 Likes
1,203

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

Read only

0 Likes
1,203

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

Read only

0 Likes
1,203

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

Read only

0 Likes
1,203

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