Skip to Content
1
Jul 14, 2023 at 02:44 PM

Virtual fields on CAP with version 7

219 Views Last edit Jul 14, 2023 at 02:49 PM 3 rev

Hello experts !!

We are checking the new version of @sap/cds@7.0.2 and we found an issue:

S4.PurchaseOrders it's a view to fetch data through SDA HANA Cloud

entity PurchaseOrders as projection on s4.PurchaseOrders{
*,
virtual null as Errors:refs.ErrorMessages
}

We have created this virtual with refs.ErrorMessages arrayed type:

type: ErrorMessages: array of{
category:String(20);
shortMessage:String(100);
}

And we are getting an error on executing cds build command

[ERROR] db/refs.cds:19:5: Artifact “cds.String” has not been found (in element:)<br>

This doesn't happen with last version 6, please can you suggest what is the issue??

Best regards,

Sara.