on 07-18-2018 8:04 PM
Hi All,
We are on S4HANA 1709 and wanted to read a HANA live calculation view inside an ABAP CDS view.
What I am looking for is something like the below to run
@AbapCatalog.sqlViewName: 'SQL_VIEW_NAME' @AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'HANA'
define view ZCDS_TOHANA as select from "_SYS_BIC"."ZCUSTOM/ChangeRequestHeader"
{ field1, field2
}
What's the best way to read this view? I don't think select from _SYS_BIC will work.
Please let me know your suggestions.
Shyam
I do not think you can access database artifacts directly ABAP CDS, you have to bring that view into ABAP layer first and use it in CDS view.
You can refer to these documents,
https://blogs.sap.com/2018/06/27/accessing-native-hana-tables-in-s4-abap-cds-views-analytics/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Best way is to call your HANA View in CDS view of type Table Function.
Now, you can use this table function in CDS view.
With Dictionary External view issue is it doesn't work with Input parameters defined in HANA views but Table function does.
Best Regards,
Mayank Jaiswal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Gets, a simple recommendation by SAP:
1. choose one way of development - ABAP CDS or HANA CalcViews.
2. Follow your choice
P.s. in S/4HANA, obviously, your choice is ABAP CDS, in SoH you can still find out yourself...
Cheers,
_________________
Dmitry Kuznetsov
BI Consulting
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi, a SQL view is generated in HANA DB for every ABAP CDS view, so you can use the SQL view in HANA modeling or ETL.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
99 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.