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

function 'DD_OBJ_CROSSREF' alternative?

Former Member
0 Likes
423

I have a list of "touched objects" that I have to loop through and see recursively where-used until I get to the highest level e.g. programs and transactions. However, function module 'DD_OBJ_CROSSREF' sometimes returns top-down links e.g. TABL to DTEL or TABL to DOMA links. I have excluded these links in my code, but many others exist that cause an endless recursion loop.

There are more than 50 object types in my list, so to set up my own list of allowed links will be a lengthy task and error-prone.

Is there an alternate function or method I can use where a parameter exists to indicate desired direction of crossref?

1 REPLY 1
Read only

Former Member
0 Likes
360

There aren't many options. This function covers the following DD objects as the name suggests

when 'DOMA'

or 'DTEL'

or 'TABL'

or 'APPD'

or 'SQLT'

or 'VIEW'

or 'SHLP'

or 'TTYP'

or 'ENQU'

or 'MCOB'.

For when 'PROG'

or 'REPO'

or 'REPS'.

I had to read wbcrossi

For when 'FUGR'.

I used call function 'FUNCTION_INCLUDE_INFO'

For 'CLAS' I'm stuck in a more complex read from WBCROSSGT.