0% found this document useful (0 votes)
470 views7 pages

Association and Navigation in Odata Service - SAP Netweaver Gateway

Associations define relationships between entity types and are grouped into association sets. Navigation properties allow entities to reference their associations, such as a sales header entity associated with its related sales item entities based on a common key field. To create an association, first define entity types and sets, then create an association based on a common field between the entities. This generates an association set and navigation properties to represent the relationship between the entities.

Uploaded by

Anil Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
470 views7 pages

Association and Navigation in Odata Service - SAP Netweaver Gateway

Associations define relationships between entity types and are grouped into association sets. Navigation properties allow entities to reference their associations, such as a sales header entity associated with its related sales item entities based on a common key field. To create an association, first define entity types and sets, then create an association based on a common field between the entities. This generates an association set and navigation properties to represent the relationship between the entities.

Uploaded by

Anil Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 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.

You might also like