<?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>topic Re: Sap query in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-query/m-p/1646946#M287704</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I do not know if you can as you do not have access to the internal table at development time, as the actual code is created at runtime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is the case I would say you have to options: -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Create your own internal table in the infoset and use that as the output.&lt;/P&gt;&lt;P&gt;2. Design the report using ABAP only instead of infoset.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Nov 2006 11:45:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-13T11:45:19Z</dc:date>
    <item>
      <title>Sap query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-query/m-p/1646944#M287702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I created a infoset and build a query on it &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I getting duplicate records in the out put&lt;/P&gt;&lt;P&gt;How do i delete the duplicate records in query..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raju singhireddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2006 11:40:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-query/m-p/1646944#M287702</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-13T11:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: Sap query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-query/m-p/1646945#M287703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It depends on the join you have defined in the infoset, are you sure It's right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2006 11:43:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-query/m-p/1646945#M287703</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-13T11:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: Sap query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-query/m-p/1646946#M287704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I do not know if you can as you do not have access to the internal table at development time, as the actual code is created at runtime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is the case I would say you have to options: -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Create your own internal table in the infoset and use that as the output.&lt;/P&gt;&lt;P&gt;2. Design the report using ABAP only instead of infoset.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2006 11:45:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-query/m-p/1646946#M287704</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-13T11:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: Sap query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-query/m-p/1646947#M287705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi where ever u are righting the query in module pool ..&lt;/P&gt;&lt;P&gt;after fetching the data into internal table write : &lt;/P&gt;&lt;P&gt;"delete duplicates from table itab where &amp;lt;fieldname&amp;gt; is initial. "&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2006 11:51:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-query/m-p/1646947#M287705</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-13T11:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: Sap query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-query/m-p/1646948#M287706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just try this , hope help you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First mark the rows which is causing duplicate records through &lt;/P&gt;&lt;P&gt;expression&lt;/P&gt;&lt;P&gt;and pass that flag into router with two condition one has true and &lt;/P&gt;&lt;P&gt;another&lt;/P&gt;&lt;P&gt;has false and let the true one goes to delete_duplicate table and &lt;/P&gt;&lt;P&gt;another&lt;/P&gt;&lt;P&gt;into the table that hold duplicate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example&lt;/P&gt;&lt;P&gt;The column c1, c2, c3 has duplicate values &lt;/P&gt;&lt;P&gt;Source qualifier&lt;/P&gt;&lt;P&gt; C1&lt;/P&gt;&lt;P&gt; C2&lt;/P&gt;&lt;P&gt; C3&lt;/P&gt;&lt;P&gt; C4&lt;/P&gt;&lt;P&gt; Then use sorter transformation and sort the record based on the sort &lt;/P&gt;&lt;P&gt;key&lt;/P&gt;&lt;P&gt;with c1, c2 and c3. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use the expression transformation after sorter transformation and&lt;/P&gt;&lt;P&gt;configure as given below.&lt;/P&gt;&lt;P&gt;Don't change chronological order as stated below&lt;/P&gt;&lt;P&gt;  C1&lt;/P&gt;&lt;P&gt;  C2&lt;/P&gt;&lt;P&gt;  C3&lt;/P&gt;&lt;P&gt;  C4 &lt;/P&gt;&lt;P&gt;  V_detect_duplicate = iif(c1=v_c1 and c2=v_c2 and c3=v_c3, &lt;/P&gt;&lt;P&gt;FALSE, TRUE )&lt;/P&gt;&lt;P&gt;                            (ROWS MARKED to detect duplicate rows) Use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                              Variable Ports. V_ denotes variable port&lt;/P&gt;&lt;P&gt;(integer)&lt;/P&gt;&lt;P&gt;   V_c1 --&amp;gt; c1 (in expression editor use C1)&lt;/P&gt;&lt;P&gt;   V_c2 --&amp;gt; c2&lt;/P&gt;&lt;P&gt;   V_c3 --&amp;gt; c3&lt;/P&gt;&lt;P&gt;   O_detect_duplicate --&amp;gt; v_detect_duplicate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use router and create two groups&lt;/P&gt;&lt;P&gt;   Remove_duplicate --&amp;gt; v_detect_duplicate = true  &lt;/P&gt;&lt;P&gt;    Non_duplicate  --&amp;gt; v_detect_duplicate = false&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Then pass the group remove_duplicate to one target that doesn't &lt;/P&gt;&lt;P&gt;hold any&lt;/P&gt;&lt;P&gt;duplicate values.&lt;/P&gt;&lt;P&gt; And another group Non_duplicate to another target table that hold&lt;/P&gt;&lt;P&gt;duplicate records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2006 12:50:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-query/m-p/1646948#M287706</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-13T12:50:23Z</dc:date>
    </item>
  </channel>
</rss>

