Quantcast
Channel: SCN : All Content - SAP Gateway
Viewing all articles
Browse latest Browse all 2823

Creating entity links using $links

$
0
0

Background

 

Let's say we have two entity sets:

 

Categories

Products

 

A category can contain a list of products, so the navigation property is defined for Categories('key')/Products. A product can exist in many different categories (and so is be maintained independently of the Categories).

 

Issue

 

The problem I have is that I am unable to create links between the two objects using a POST request to Categories('key')/$links/Products. According to this link it should be possible to redefine the CREATE_LINKS method in our data provider class, but the method doesn't appear on the interface: :/IWBEP/IF_MGW_APPL_SRV_RUNTIME - SAP Gateway Foundation (SAP_GWFND) - SAP Library

 

My last resort would be to create a new entity type called ProductLink, as it would provide me with what I need - but it would be nice to get the $links working if possible.


Has anybody managed to find a way to do this?


Viewing all articles
Browse latest Browse all 2823

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>