10-21-2015 12:17 PM
Hi,
As in code push-down mechanism, i am able to create stored procedures from SAP Netweaver in the form of AMDP without HANA XS engine.
Like is there any way to create CDS views from SAP Netweaver using ABAP without HANA XS engine.
Thanks,
Venkatesh
10-21-2015 1:04 PM
Hi Venkatesh,
As mentioned by Christian above, AMDP and CDS can only be created in ADT.
Here some additional information:
As of ABAP 7.4, you can create HANA entities (stored procedures and views) from the ABAP infrastructure using ABAP Managed Database Procedures (AMDP) and ABAP Cored Data Services (ABAP CDS).
AMDP procedures (and functions as of ABAP 7.5) are currently only supported on SAP HANA (primary database). They have to be written with the SQLScript Language.
ABAP CDS is supported on all databases. So, you can create a CDS view from AS ABAP without having HANA as primary database. (... unless you make use of some of the few HANA-specific features" )
Kind regards,
Carine
10-21-2015 12:42 PM
10-21-2015 2:39 PM
Yes Christian, i am able to use ABAP and created CDS view from ADT. As per my requirement i need to create CDS view in background.
11-05-2015 1:36 PM
Hi,
what is your use case ?
If you are aiming solely at the DB-views (which are created from the CDS-Views) and your coding only needs to run on HANA then using ADBC might be an option.
If you have a CDS-view serving as a template this approach might look like:
NEW cl_sql_statement( )->execute_query( |select definition from views where view_name = 'ddic_name_of_template_cds_view'| ).
NEW cl_sql_statement( )->execute_ddl( |modified SQL-create-view command just retrieved| ).
10-21-2015 1:04 PM
Hi Venkatesh,
As mentioned by Christian above, AMDP and CDS can only be created in ADT.
Here some additional information:
As of ABAP 7.4, you can create HANA entities (stored procedures and views) from the ABAP infrastructure using ABAP Managed Database Procedures (AMDP) and ABAP Cored Data Services (ABAP CDS).
AMDP procedures (and functions as of ABAP 7.5) are currently only supported on SAP HANA (primary database). They have to be written with the SQLScript Language.
ABAP CDS is supported on all databases. So, you can create a CDS view from AS ABAP without having HANA as primary database. (... unless you make use of some of the few HANA-specific features" )
Kind regards,
Carine
11-05-2015 1:41 PM