<?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: Compare lines in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-lines/m-p/8517377#M1655380</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Nino&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use 2 variables. First one to store and keep value from first collumn and then you can start the loop comparing with varibalbes &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Jan 2012 13:28:42 GMT</pubDate>
    <dc:creator>former_member214857</dc:creator>
    <dc:date>2012-01-26T13:28:42Z</dc:date>
    <item>
      <title>Compare lines</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-lines/m-p/8517373#M1655376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my requirement is to check multiple plants on saving the purchase order but I dont know how to compare several lines.&lt;/P&gt;&lt;P&gt;In Include  ZXM06U43&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Position 1  Plant XXX&lt;/P&gt;&lt;P&gt;Position 2  Plant XXY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I have to loop the internal table like wa_ekpo but how can I write the if-check for several lines comparing the first line?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; best regards,&lt;/P&gt;&lt;P&gt;Nino&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2012 12:54:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compare-lines/m-p/8517373#M1655376</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-26T12:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: Compare lines</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-lines/m-p/8517374#M1655377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you want to check all other plants with the first line or subsequent lines such as 1 &amp;amp; 2, 2 &amp;amp; 3, 3 &amp;amp; 4 etc.??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you could loop at TEKPO and use a read table again on TEKPO to read at index with which u may want to compare&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2012 13:01:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compare-lines/m-p/8517374#M1655377</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-26T13:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: Compare lines</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-lines/m-p/8517375#M1655378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vuckovic,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at it_ekpo into wa_ekpo.
    If wa_ekpo-att1 = 'Position' and wa_ekpo-att2 = '01' or wa_ekpo-att4 = 'XXYX' .
Endif.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use sy-index inside the loop to determine which line has the same attributes (Position 01 XXYX) with the first one. You can change conditions according to your choice.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2012 13:06:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compare-lines/m-p/8517375#M1655378</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-26T13:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: Compare lines</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-lines/m-p/8517376#M1655379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;gt; You can use sy-index inside the loop to determine which line has the same attributes (Position 01 XXYX) with the first one. You can change conditions according to your choice.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just to correct you its sy-tabix and not sy-index&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2012 13:13:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compare-lines/m-p/8517376#M1655379</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-26T13:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: Compare lines</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-lines/m-p/8517377#M1655380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Nino&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use 2 variables. First one to store and keep value from first collumn and then you can start the loop comparing with varibalbes &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2012 13:28:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compare-lines/m-p/8517377#M1655380</guid>
      <dc:creator>former_member214857</dc:creator>
      <dc:date>2012-01-26T13:28:42Z</dc:date>
    </item>
  </channel>
</rss>

