Você está na página 1de 7

Association and Navigation in Odata Service – SAP

Netweaver Gateway
What is meant by Association and Navigation Property?

Associations define the relationship between two or more Entity Types.


Instances of associations are grouped in Association Sets.

Navigation Properties are special properties on Entity Types which are


bound to a specific association and can be used to refer to associations
of an entity.
How to do it?

Association based
Sales Header Entity on Key
Sales Item Entity
Type
Type
Create a New Project. Create an Entity Type along with Entity Set.
Create one more Entity type which has a common field with the previous Entity type. Example : Vbeln.
Right click on the Association Folder and create based on the Common field between the 2 entity sets. i.e
Vbeln. Once Association is created then it will show in the Navigation properties of the Entity set from which
we made Association.
Association Set is also created along with the Association. Referantial Constraints will have the key field based
on which we created Association.
Create GetEntity(Read)/ GetEntitySet(Query) service operations for each EntitySet based on the RFC that we
want to implement and Map it.

Você também pode gostar