05-21-2021 11:04 AM
Hi Community experts,
I've used the RTTS classes CL_ABAP_*DESCR for various purposes. But I'm not able to find if it's possible to read a View (either DB view or maintenance view) dynamically using these classes and retrieve the actual table names used/linked in it.
Do you know if there's a method (in which class?) that could give me the list of tables that are used in a view? Or is there any round about 'hack' to achieve this?
05-21-2021 3:17 PM
You can't read the DDIC details of a DDIC view with RTTS (only the fields).
You may for instance use DDIF_VIEW_GET to get all the details, or read the view definition tables DD25L, etc. Search the forum for more information.
05-21-2021 3:17 PM
You can't read the DDIC details of a DDIC view with RTTS (only the fields).
You may for instance use DDIF_VIEW_GET to get all the details, or read the view definition tables DD25L, etc. Search the forum for more information.
05-24-2021 2:40 AM
Thank you, sandra.rossi.
This is exactly what I was looking for. Either the FM and the table DD26S gives me the exact info I need.
02-21-2022 7:36 AM
In RTTS we can use DDIF_VIEW_GET function module for getting the details of view for the given table. DD25L is a standard table which contains the viewname(name of table view) and it has viewclass(viewtype).
Regards,
Shivani Vollala
Please reward points if it is helpful.