2021 Jul 29 8:02 PM
Hi, guys
Please tell me how to rename navigation property on RAP (1909) model. My code is below
define view ZC_PP007_WORKER as select from ZI_PP007_WORKER
association [0..1] to ZC_PP007_MODEL as _Model on $projection.model_ID = _Model.ID
association [0..1] to ZI_PP007_HUB as _Hub on $projection.hub_ID = _Hub.ID
association [0..1] to ZI_PP007_SQUAD as _Squad on $projection.squad_ID = _Squad.ID
{
key ID,
ID as external_id,
model_ID,
_Model.name as name,
name as descr,
license_num,
hub_ID,
squad_ID,
createdAt,
createdBy,
modifiedAt,
modifiedBy,
/* Associations */
_Model as model,
_Hub as hub,
_Squad as squad
}
2021 Jul 29 8:14 PM
As it is odata V2 - Try to do it via tcode SEGW instead of eclipse
2021 Jul 29 8:29 PM
If it meant, override the service via SEGW or create service via Referenced Data Sources, that property change is impossible alse
2021 Aug 04 11:14 AM
You need to go to leaf of entity "Navigation properties" and "Association". Click right mouse and choose Change. Then you could change it (screenshot is below).
But if the service was created via @ODAta.published - you should use as it is.
2021 Aug 04 12:47 PM
Hi, Oleg.
Thanks for the answer.
Service was created via Service Definition and Service Binding.
It looks like the names cannot be changed.
In edit mode, I cannot change names