Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Rename navigation property

0 Kudos
1,872

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
}


4 REPLIES 4

former_member610590
Participant
0 Kudos
1,330

As it is odata V2 - Try to do it via tcode SEGW instead of eclipse

0 Kudos
1,330

If it meant, override the service via SEGW or create service via Referenced Data Sources, that property change is impossible alse

former_member610590
Participant
0 Kudos
1,330

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.

0 Kudos
1,330

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