on 04-17-2013 11:14 AM
Hello Colleagues,
Is there any API available from the ABAP side which will return the Metadata(like field names and table names) of the given HANA view..?
Thanks in Advance
Prasanna.
Hello
i would like to suggest other content because of dead link in the previous one.
please accept if you believe it's insightful
there is another blog post here : https://blogs.sap.com/2016/09/16/how-to-found-dependent-database-object-in-sap-hana-modeling-object-...
external useful insight here : https://www.kodyaz.com/sap-abap/hana-database-object-definition-for-sqlscript-ddl-create-statement.a...
Regards
Amaury
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Whether from ABAP, Java or any other environment you would want to query HANA monitoring tables/views for this information.
I'd recommend looking through this guide to see which would be fit your needs: http://help.sap.com/hana/html/monitor_views.html
You can also get the actual definition of objects in HANA via the stored procedure GET_OBJECT_DEFINITION(<SCHEMA>, <OBJECT_NAME>)
Cheers,
Jody
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Prasanna,
I don't think currently there are any ABAP APIs which can provide you the information you are looking for. As a matter of fact, there are no tables / views which contain the information of the fields and tables used in the HANA views. There are metadata tables for the Database objects (like database tables, views) or metadata tables for the HANA view which provide information about data types or which view is being referred etc, but not exactly what you need. You can get some information from _SYS_REPO schema objects like ACTIVE_OBJECTCROSSREF, but again it may not be sufficient.
In this case, you will have to write ABAP program which can connect to the HANA database and get the information.
Most of the HANA views information is maintained in JSON / XML format, which you can read and parse to get the information you require.
Regards,
Ravi
Hi Ravi,
I am also a question which is also similar with this .
I have created a graphical calculation view,which is running sucessfully.
Example :-
table1, table2 -- > join_1 ( table1.id =table2.id) --> projection_1 -> Aggregation -- > Output.
At 'projection_1' , I have renamed few columns ( given user friendly name )
Example : - Table1.EmpNo renamed to EmployeeNumber.
Table2.DeptNo renamed to DepartmentNumber.
My question is :-
which system view ,can give me the entire list of the all attributes/measuers of that calculation view?
Note :- I have check M_CE_CALCVIEW_DEPENDENCIES view , but didn't get the results which I am looking for.
Regards
Sayan
Hello
http://help.sap.com/hana/html/monitor_views.html is dead link
regards
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.