Skip to Content
0
Dec 16, 2022 at 05:58 PM

SAP Gateway error: Use the associated entity "ZCDSV_CUST_CLASSIFICATION".

294 Views Last edit Dec 16, 2022 at 06:03 PM 4 rev

Hi.
I'm learning tutorial "Brand-new ABAP 7.4 for SAP HANA End to End Development Guide with Latest ABAP 7.4 SP5 Features".
I'm using SAP NetWeaver AS ABAP Developer Edition 7.52 SP04

I created a CDS:

@AbapCatalog.sqlViewName: 'ZV_CDS_CUST'
define view ZCDSV_CUST_CLASSIFICATION as select from snwd_bpa
...

In SEGW I created entity "CustomerClassification" on structure ZV_CDS_CUST.

When I test URI "/sap/opu/odata/SAP/ZE2E_CUST_INFO_SRV/CustomerClassificationSet"
I get an error: "The parser produced the error: Use the associated entity "ZCDSV_CUST_CLASSIFICATION"."

This is because of SELECT from ZV_CDS_CUST.
From 752 it is obsolete to use CDS DB views in SELECT.

Can I use SEGW in 752 and how?