<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Association/Navigation without key properties in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/association-navigation-without-key-properties/qaa-p/9749464#M3491998</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You create the navigation but without referential constraints. &lt;/P&gt;&lt;P&gt;When you implement the read_entity, you will see in the debugger that you have the keys available in the key table, and then it's your responsibility to code and retrieve the non-key relevant to those keys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then just fill up the entity structure ... the downside is that you have to code everything manual ...&lt;/P&gt;&lt;P&gt;So if you're designing everything with function module calls ( and mapping ), this is a small downside.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Wouter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Oct 2013 07:06:59 GMT</pubDate>
    <dc:creator>wouter_peeters</dc:creator>
    <dc:date>2013-10-10T07:06:59Z</dc:date>
    <item>
      <title>Association/Navigation without key properties</title>
      <link>https://community.sap.com/t5/technology-q-a/association-navigation-without-key-properties/qaq-p/9749457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to make an association/navigation to another Entity, but this for a property without being marked as a key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example the EPM test service from &lt;A _jive_internal="true" href="https://answers.sap.com/docs/DOC-31221"&gt;http://scn.sap.com/docs/DOC-31221&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The model: &lt;A _jive_internal="true" href="https://answers.sap.com/servlet/JiveServlet/showImage/102-44073-2-246387/Relationen.png" title="http://scn.sap.com/servlet/JiveServlet/showImage/102-44073-2-246387/Relationen.png"&gt;http://scn.sap.com/servlet/JiveServlet/showImage/102-44073-2-246387/Relationen.png&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already builded the SalesOrder association/navigation to the SalesOrderItem. &lt;/P&gt;&lt;P&gt;But I cannot seem to create the association/navigation from SalesOrderItem to the Product, in SEGW I always have to define the referential constraint with the key of the Entity. In SalesOrderItem, the productId property is not a key, and I can't imagine that I have to set it as a key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Wouter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Oct 2013 17:21:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/association-navigation-without-key-properties/qaq-p/9749457</guid>
      <dc:creator>wouter_peeters</dc:creator>
      <dc:date>2013-10-06T17:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: Association/Navigation without key properties</title>
      <link>https://community.sap.com/t5/technology-q-a/association-navigation-without-key-properties/qaa-p/9749458#M3491992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On a sidenote, i've also created the Entity Data Model in Eclipse with all associations and navigations (by importing SAP's ES1 test service for this), imported this in SAP SEGW, implemented the read and queries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I try the product navigation, it goes into error with a "Internal error occurred, contact your system administrator." - /IWBEP/CX_MGW_TECH_EXCEPTION.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Oct 2013 08:33:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/association-navigation-without-key-properties/qaa-p/9749458#M3491992</guid>
      <dc:creator>wouter_peeters</dc:creator>
      <dc:date>2013-10-07T08:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: Association/Navigation without key properties</title>
      <link>https://community.sap.com/t5/technology-q-a/association-navigation-without-key-properties/qaa-p/9749459#M3491993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Wouter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you familiar with key relationships in database terms? This is no different to that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only one side of this relationship needs to refer to an entity key and that is the Product side. On the other side, the key of this product is &lt;STRONG&gt;referenced &lt;/STRONG&gt;by another entity, the SalesOrderItem; that side does not have to be a key value in the context of that entity (although it could be, that tends to be the case more when the target has a composite key).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There should be no problem in making this relationship.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ron.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Oct 2013 09:22:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/association-navigation-without-key-properties/qaa-p/9749459#M3491993</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-10-07T09:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: Association/Navigation without key properties</title>
      <link>https://community.sap.com/t5/technology-q-a/association-navigation-without-key-properties/qaa-p/9749460#M3491994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ron,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I succeed in making the relationship between SalesOrder and SalesOrderItem, but making the navigation/association between SalesOrderItem and Product is not working, please provide information how to do so if you know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the ES1 demo service data model (but in ES1 SAP system it's not implemented in SEGW )&lt;/P&gt;&lt;P&gt;&lt;A href="https://sapes1.sapdevcenter.com/sap/opu/odata/sap/ZGWSAMPLE_SRV/?sap-ds-debug=true" title="https://sapes1.sapdevcenter.com/sap/opu/odata/sap/ZGWSAMPLE_SRV/?sap-ds-debug=true"&gt;https://sapes1.sapdevcenter.com/sap/opu/odata/sap/ZGWSAMPLE_SRV/?sap-ds-debug=true&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I imported this into my Eclipse GPA, exported it and imported it in SEGW. &lt;/P&gt;&lt;P&gt;After implementing the read and query operations the navigation from SalesOrder to SalesOrderItem worked, but the Product did not. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suspect that this navigation needs some extra coding. If not please provide details how to do the mapping. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greets,&lt;/P&gt;&lt;P&gt;Wouter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Oct 2013 10:54:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/association-navigation-without-key-properties/qaa-p/9749460#M3491994</guid>
      <dc:creator>wouter_peeters</dc:creator>
      <dc:date>2013-10-07T10:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: Association/Navigation without key properties</title>
      <link>https://community.sap.com/t5/technology-q-a/association-navigation-without-key-properties/qaa-p/9749461#M3491995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Wouter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need some extra coding in the Product 'get entity set' method. To determine if this is a direct collection reference or a navigation to a collection, you can check if the navigation path table parameter has an entry in it - if it does, you need to find which navigation (there could be more than one to pick from, as a caller-client) is being requested.&lt;/P&gt;&lt;P&gt;You can find the context for 'navigating from' in the key table parameter, i.e. that should contain the key of the sales order item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. (not necessarily correct for ES1 in terms of names)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; lt_nav_path &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;io_tech_request_context&lt;SPAN class="L0S70"&gt;-&amp;gt;&lt;/SPAN&gt;get_navigation_path&lt;SPAN class="L0S55"&gt;( &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;)&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;read &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;table &lt;/SPAN&gt;lt_nav_path &lt;SPAN class="L0S52"&gt;into &lt;/SPAN&gt;ls_nav_path &lt;SPAN class="L0S52"&gt;with &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;key &lt;/SPAN&gt;nav_prop &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;SalesOrderItems'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;if &lt;/SPAN&gt;sy&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;subrc &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;0&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lt_key &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;io_tech_request_context&lt;SPAN class="L0S70"&gt;-&amp;gt;&lt;/SPAN&gt;get_source_keys&lt;SPAN class="L0S55"&gt;( &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;)&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;read &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;table &lt;/SPAN&gt;lt_key &lt;SPAN class="L0S52"&gt;with &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;key &lt;/SPAN&gt;name &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'SoID' &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;into &lt;/SPAN&gt;ls_key&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lv_orderid &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;ls_key&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;value&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;" ditto for position key.....&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;endif&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can then use these two pieces of information to locate the product of the item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ron.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Oct 2013 13:00:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/association-navigation-without-key-properties/qaa-p/9749461#M3491995</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-10-07T13:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: Association/Navigation without key properties</title>
      <link>https://community.sap.com/t5/technology-q-a/association-navigation-without-key-properties/qaa-p/9749462#M3491996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Ron!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2013 10:05:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/association-navigation-without-key-properties/qaa-p/9749462#M3491996</guid>
      <dc:creator>wouter_peeters</dc:creator>
      <dc:date>2013-10-08T10:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: Association/Navigation without key properties</title>
      <link>https://community.sap.com/t5/technology-q-a/association-navigation-without-key-properties/qaa-p/9749463#M3491997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Wouter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am facing simillar issue.. While modelling the association, it does not allow to create association between 'non key' or between 'key - non key' entities..&lt;/P&gt;&lt;P&gt;Were you able to solve this issue? Or just created navigation..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abhijit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Oct 2013 15:51:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/association-navigation-without-key-properties/qaa-p/9749463#M3491997</guid>
      <dc:creator>Abhijit</dc:creator>
      <dc:date>2013-10-09T15:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: Association/Navigation without key properties</title>
      <link>https://community.sap.com/t5/technology-q-a/association-navigation-without-key-properties/qaa-p/9749464#M3491998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You create the navigation but without referential constraints. &lt;/P&gt;&lt;P&gt;When you implement the read_entity, you will see in the debugger that you have the keys available in the key table, and then it's your responsibility to code and retrieve the non-key relevant to those keys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then just fill up the entity structure ... the downside is that you have to code everything manual ...&lt;/P&gt;&lt;P&gt;So if you're designing everything with function module calls ( and mapping ), this is a small downside.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Wouter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Oct 2013 07:06:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/association-navigation-without-key-properties/qaa-p/9749464#M3491998</guid>
      <dc:creator>wouter_peeters</dc:creator>
      <dc:date>2013-10-10T07:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: Association/Navigation without key properties</title>
      <link>https://community.sap.com/t5/technology-q-a/association-navigation-without-key-properties/qaa-p/9749465#M3491999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ron,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also have a simlar scenarion wherein I want to Navigate from Sales Order to Customer1 then to Customer&lt;/P&gt;&lt;P&gt;i.e 2 levels of navigation.&lt;/P&gt;&lt;P&gt;I assume that the above solution for implementation of Get_entity_set would work.&lt;/P&gt;&lt;P&gt;What would be the URI in this case?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance,&lt;/P&gt;&lt;P&gt;Aarti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Feb 2014 13:10:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/association-navigation-without-key-properties/qaa-p/9749465#M3491999</guid>
      <dc:creator>former_member314006</dc:creator>
      <dc:date>2014-02-20T13:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: Association/Navigation without key properties</title>
      <link>https://community.sap.com/t5/technology-q-a/association-navigation-without-key-properties/qaa-p/9749466#M3492000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would like to know what is the type of data of lt_key ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Maxence Arnoult&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2015 14:20:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/association-navigation-without-key-properties/qaa-p/9749466#M3492000</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-06-26T14:20:34Z</dc:date>
    </item>
  </channel>
</rss>

