<?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: Data in Embedded Tag in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/data-in-embedded-tag/qaa-p/769486#M226069</link>
    <description>&lt;P&gt;Hi Lety,&lt;/P&gt;&lt;P&gt;In order to show the data related to the material ID you will have to create a AfterModify/BO Action script where you implement the logic to query only the data with the ID of the Material.&lt;/P&gt;&lt;P&gt;When you open the Fact Sheet for the Product the AfterModify script will be triggered for the Extended-BusinessObject, the code will have to be implemented for the node of the EC.&lt;/P&gt;&lt;P&gt;Please have a look at chapter 8.3.3.11 (Enable Change History) in the SDK Documentation, which goes through a scenario which involves creating all the required configuration for a BO Action (Outport Configuration, Event Handlers). There is many more examples in the SDK Documentation regarding AfterModify Events and Embedded Components.&lt;/P&gt;&lt;P&gt;Please see the example below which shows how to query for a Material ID.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;var QueryMaterial; //Defining the Query 
var QueryResult; //Variable holding the result of the query
QueryMaterial = Material.QueryByDescription; // Initializing the query
SelectionParams = QueryMaterial.CreateSelectionParams(); //Creating Query Selection Placeholder
SelectionParams.Add(QueryMaterial.ProductID.content, "I", "EQ", the ID of the product goes here); //Check for the Product ID
QueryResult = QueryMaterial.Execute(SelectionParams); //Execute the Query
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Piotr.&lt;/P&gt;</description>
    <pubDate>Fri, 25 Jan 2019 12:07:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2019-01-25T12:07:56Z</dc:date>
    <item>
      <title>Data in Embedded Tag</title>
      <link>https://community.sap.com/t5/technology-q-a/data-in-embedded-tag/qaq-p/769485</link>
      <description>&lt;P&gt;Hi, I'm new using embedded component and I'm having some issues,&lt;/P&gt;
  &lt;P&gt; I've created a custom BO and created an embedded component added as a new Material tab called Obsoleto. Now, I wanted to show only the data corresponded to the id of the material instead of all of them &lt;/P&gt;
  &lt;P&gt;Any idea? &lt;/P&gt;
  &lt;P&gt;Thanks.&lt;/P&gt;
  &lt;P&gt;Best regards Lety&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/268436-tab.jpg" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jan 2019 03:05:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/data-in-embedded-tag/qaq-p/769485</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-01-25T03:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: Data in Embedded Tag</title>
      <link>https://community.sap.com/t5/technology-q-a/data-in-embedded-tag/qaa-p/769486#M226069</link>
      <description>&lt;P&gt;Hi Lety,&lt;/P&gt;&lt;P&gt;In order to show the data related to the material ID you will have to create a AfterModify/BO Action script where you implement the logic to query only the data with the ID of the Material.&lt;/P&gt;&lt;P&gt;When you open the Fact Sheet for the Product the AfterModify script will be triggered for the Extended-BusinessObject, the code will have to be implemented for the node of the EC.&lt;/P&gt;&lt;P&gt;Please have a look at chapter 8.3.3.11 (Enable Change History) in the SDK Documentation, which goes through a scenario which involves creating all the required configuration for a BO Action (Outport Configuration, Event Handlers). There is many more examples in the SDK Documentation regarding AfterModify Events and Embedded Components.&lt;/P&gt;&lt;P&gt;Please see the example below which shows how to query for a Material ID.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;var QueryMaterial; //Defining the Query 
var QueryResult; //Variable holding the result of the query
QueryMaterial = Material.QueryByDescription; // Initializing the query
SelectionParams = QueryMaterial.CreateSelectionParams(); //Creating Query Selection Placeholder
SelectionParams.Add(QueryMaterial.ProductID.content, "I", "EQ", the ID of the product goes here); //Check for the Product ID
QueryResult = QueryMaterial.Execute(SelectionParams); //Execute the Query
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Piotr.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jan 2019 12:07:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/data-in-embedded-tag/qaa-p/769486#M226069</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-01-25T12:07:56Z</dc:date>
    </item>
  </channel>
</rss>

