Application Development 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: 

ABAP RTTS for Views

Mithun_Kumar
Active Participant
0 Kudos

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?

1 ACCEPTED SOLUTION

Sandra_Rossi
Active Contributor

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.

3 REPLIES 3

Sandra_Rossi
Active Contributor

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.

Mithun_Kumar
Active Participant
0 Kudos

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.

shivani08
Participant
0 Kudos

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.