Hi Bright,
some time ago I get a script where this tbw etc is part of:
Perhaps this helps:
Please be aware:
Because I’m “sitting” on a MS SQL Server I try to use MS SQL instead of ORACLE SQL.
Just strip the beginning and end (and double ‘’ to ‘) and you can use the SQL in ORACLE as well.
Here we go:
-- Kombi_Navigator_SubObjekte_MS_SQL_Version.sql
SELECT *
-- into your_table_for_documentation
FROM openquery (IFS,
'
SELECT
b.sec_object as "DataBaseObject",
------------------
(SELECT
--count(*) as anzahl,
LISTAGG( REFERENCED_NAME, '' | '' ) WITHIN GROUP( ORDER BY count(*) desc ) as BasicDataBaseObjects
FROM
sys.all_dependencies
WHERE type= ''VIEW'' and referenced_type in (''TABLE'',''VIEW'')
-- and owner = ''SCHEMA_NAME'' -- put schema name here
-- and name = ''SHOP_ORDER_PROP_PUB'' -- put view name here
and name = b.sec_object
GROUP BY
REFERENCED_NAME -- Aggregationsfeld
) as "SubDatenBankObjekte",
----------------------
a.description "NavigatorDescription",
b.po_id "PresentationObject",
case when substr(b.po_id, 0, 3) = ''frm'' then ''Form (Single)''
when substr(b.po_id, 0, 3) = ''tbw'' then ''Table (Overview)''
when substr(b.po_id, 0, 3) = ''dlg'' then ''Dialog Box''
when substr(b.po_id, 0, 3) = ''glo'' then ''Global''
end as "PresentationObjectType"
from pres_object a,
pres_object_security b
where
a.pres_object_type_db = ''WIN''
and a.po_id = b.po_id
and b.pres_object_sec_sub_type_db = 3
--and a.po_id like ''frmEngPartRevisionContainer%''
--b.po_id = ''tbwSupplierInvOview''
--and a.description like ''%Supplier%''
and b.sec_object LIKE ''%SO_ACTUAL_COST_DETAILS_UIV2%'' -- take care of capital letters!
order by a.description
'
)