<?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: Read Entity Data in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/read-entity-data/qaa-p/11228300#M4150902</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;usually you calculate or maintain this list according to a given scenario. Take the common UIs as an example. You search for something and click on a specific link in the result list. Now the system triggers several reads using the key information you've clicked on. E.g. by clicking on a BP, the system reads addresses or bank details for the BP since those are displayed on the BPs main page. In that case it is valid to read using a partial key (BP keys only, leaving addresses or bank keys blank). This results in one to many addresses or bank details (simply depending on the amount of existing records).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 31 Aug 2015 15:17:29 GMT</pubDate>
    <dc:creator>michael_theis</dc:creator>
    <dc:date>2015-08-31T15:17:29Z</dc:date>
    <item>
      <title>Read Entity Data</title>
      <link>https://community.sap.com/t5/technology-q-a/read-entity-data/qaq-p/11228297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already figured out how to read entity data (for example BP_HEADER - Data Model for Customer) in general, but still have a few detail questions. At the moment I am using Convenience API using following approach:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;CONVENIENCE API -&amp;gt; GET_INSTANCE&lt;/LI&gt;&lt;LI&gt;SET ENVIRONMENT -&amp;gt; Change request number&lt;/LI&gt;&lt;LI&gt;GET OBJECT LIST -&amp;gt; For entity keys (still not sure if this is the right method?)&lt;/LI&gt;&lt;LI&gt;GET_ENTITY_STRUCTURE -&amp;gt; Get key components&lt;/LI&gt;&lt;LI&gt;GET_ENTITY_STRUCTURE -&amp;gt; Get attribute components&lt;/LI&gt;&lt;LI&gt;Fill key structure&lt;/LI&gt;&lt;LI&gt;READ_ENTITY_DATA&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Questions:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;I am not sure if the approach for getting the entity key data (step 3) is the best way?&lt;/LI&gt;&lt;LI&gt;Reading Entity AD_EMAIL -&amp;gt; Leading Entity: ADDRNO + BP_HEADER, Qualifying Entity: AD_CONSO&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Where can I get the data of AD_CONSO??&lt;/P&gt;&lt;P&gt;3. Reading Entity AD_POSTAL -&amp;gt; Leading Entity: ADDRNO + BP_HEADER, Qualifying Entity: AD_NATION&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Where can I get the data of AD_NATION?&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;4. Reading Entity BP_CUSGEN -&amp;gt; Leading Entity: ASSGNM_ID + BP_HEADER&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Where can I get the data of &lt;SPAN style="font-size: 13.3333330154419px;"&gt;ASSGNM_ID&lt;/SPAN&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2015 07:25:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/read-entity-data/qaq-p/11228297</guid>
      <dc:creator>cmetz</dc:creator>
      <dc:date>2015-08-31T07:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: Read Entity Data</title>
      <link>https://community.sap.com/t5/technology-q-a/read-entity-data/qaa-p/11228298#M4150900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what exactly are you trying to do?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GET_OBJECT_LIST returns only objects locked in a change requests. Those are usually only entity types with SUT 1 - you'll never get keys of entities with SUT4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2015 11:01:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/read-entity-data/qaa-p/11228298#M4150900</guid>
      <dc:creator>michael_theis</dc:creator>
      <dc:date>2015-08-31T11:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: Read Entity Data</title>
      <link>https://community.sap.com/t5/technology-q-a/read-entity-data/qaa-p/11228299#M4150901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi MIhcael, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your answer. Ok then there must be another way. Actually I just want to call method read_entity_data of interface&amp;nbsp; if_usmd_conv_som_gov_api. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;CALL &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;METHOD &lt;/SPAN&gt;lo_conv_api&lt;SPAN class="L0S70"&gt;-&amp;gt;&lt;/SPAN&gt;if_usmd_conv_som_gov_entity&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;read_entity_data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;EXPORTING&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S31"&gt;*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IV_STRUCT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = GC_STRUCT_KEY_ATTR&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S31"&gt;*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF_ACTIVE_DATA = ''&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; it_entity_keys &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;lt_keys&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S31"&gt;*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF_SELECT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = ABAP_TRUE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RECEIVING&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rt_entity_data &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;lt_data&lt;SPAN class="L0S55"&gt;. &lt;/SPAN&gt;&lt;SPAN class="L0S31"&gt;"&amp;lt;lt_data&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31"&gt;I need to pass table lt_keys. How do I get these values?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31"&gt;Thanks and regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31"&gt;Chris&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2015 12:01:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/read-entity-data/qaa-p/11228299#M4150901</guid>
      <dc:creator>cmetz</dc:creator>
      <dc:date>2015-08-31T12:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: Read Entity Data</title>
      <link>https://community.sap.com/t5/technology-q-a/read-entity-data/qaa-p/11228300#M4150902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;usually you calculate or maintain this list according to a given scenario. Take the common UIs as an example. You search for something and click on a specific link in the result list. Now the system triggers several reads using the key information you've clicked on. E.g. by clicking on a BP, the system reads addresses or bank details for the BP since those are displayed on the BPs main page. In that case it is valid to read using a partial key (BP keys only, leaving addresses or bank keys blank). This results in one to many addresses or bank details (simply depending on the amount of existing records).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2015 15:17:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/read-entity-data/qaa-p/11228300#M4150902</guid>
      <dc:creator>michael_theis</dc:creator>
      <dc:date>2015-08-31T15:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: Read Entity Data</title>
      <link>https://community.sap.com/t5/technology-q-a/read-entity-data/qaa-p/11228301#M4150903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok in my case the problem is that I don't have any context or something i clicked on because the Scenario following: Just Show Business Partner Information (General Data, communication etc.) in a Fiori App (By extending the OData Service).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only Information I have is the ChangeRequest ID. So what I did so far is.... Create instance of Convenience API and then SET_ENVIRONMENT to the passed ChangeRequestID. And I Need to get this key vales (eg. for BP_HEADER) from the Convenience API.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2015 07:35:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/read-entity-data/qaa-p/11228301#M4150903</guid>
      <dc:creator>cmetz</dc:creator>
      <dc:date>2015-09-01T07:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: Read Entity Data</title>
      <link>https://community.sap.com/t5/technology-q-a/read-entity-data/qaa-p/11228302#M4150904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in that case your initial idea using GET_OBJECT_LIST is valid. The object list should contain the BP_HEADER locked in your current CR. Using the BP_HEADER you're able to read all data you want. Ssee my previous reply: it's sufficient to read with a partial key to get all records. BP_HEADER is part of each entity key in data model BP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2015 10:26:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/read-entity-data/qaa-p/11228302#M4150904</guid>
      <dc:creator>michael_theis</dc:creator>
      <dc:date>2015-09-01T10:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: Read Entity Data</title>
      <link>https://community.sap.com/t5/technology-q-a/read-entity-data/qaa-p/11228303#M4150905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Michael, ok we are coming closer ;-). Yes the method returns BP_HEADER, but I also need ADDRNO to get communication and address data (eg. AD_TEL, AD_POSTAL). Any further idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Chris &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2015 10:57:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/read-entity-data/qaa-p/11228303#M4150905</guid>
      <dc:creator>cmetz</dc:creator>
      <dc:date>2015-09-01T10:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: Read Entity Data</title>
      <link>https://community.sap.com/t5/technology-q-a/read-entity-data/qaa-p/11228304#M4150906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm sorry, but I have absolutely no idea why you want to determine the ADDRNO? This does not make sense if you want to get ALL records anyways? Why don't you simply use the partial key (as explained already twice)?!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2015 12:09:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/read-entity-data/qaa-p/11228304#M4150906</guid>
      <dc:creator>michael_theis</dc:creator>
      <dc:date>2015-09-01T12:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: Read Entity Data</title>
      <link>https://community.sap.com/t5/technology-q-a/read-entity-data/qaa-p/11228305#M4150907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Michael, its working &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Sep 2015 09:23:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/read-entity-data/qaa-p/11228305#M4150907</guid>
      <dc:creator>cmetz</dc:creator>
      <dc:date>2015-09-18T09:23:56Z</dc:date>
    </item>
  </channel>
</rss>

