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

ABAP RTTS for Views

Mithun_Kr
Active Participant
0 Likes
1,517

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
Read only

Sandra_Rossi
Active Contributor
1,398

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.

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?

3 REPLIES 3
Read only

Sandra_Rossi
Active Contributor
1,399

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.

Read only

Mithun_Kr
Active Participant
0 Likes
1,398

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.

Read only

shivani08
Participant
0 Likes
1,398

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.