New Syntax: Virtual Element in RAP Projections
define root view entity ZC_MY_ENTITY
provider contract my_provider_contract
as projection on ZI_MY_ENTITY
{
key ID,
Name,
@ObjectModel.virtualElementCalculatedBy: 'ABAP:ZCL_MY_VIRTUAL_ELEMENT_EXIT'
virtual VirtualAmount : abap.curr(15,3)
}
- Root view entities with provider contracts allow virtual elements
- New projects should prefer this approach for better integration
- Supported in RAP and Fiori Elements for display and filtering