<?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: incorrect data selection in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/incorrect-data-selection/m-p/7191179#M1519824</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this part &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;AND ( A&lt;SUB&gt;AUART IN S_AUART AND A&lt;/SUB&gt;AUART NE 'ZORB' AND&lt;/P&gt;&lt;P&gt;                   A&lt;SUB&gt;AUART NE 'ZKA' AND A&lt;/SUB&gt;AUART NE 'KA'     AND&lt;/P&gt;&lt;P&gt;                   A&lt;SUB&gt;AUART NE 'ZRE' AND A&lt;/SUB&gt;AUART NE 'RE'     AND&lt;/P&gt;&lt;P&gt;                   A&lt;SUB&gt;AUART NE 'ZKE' AND A&lt;/SUB&gt;AUART NE 'ZKR'    AND&lt;/P&gt;&lt;P&gt;                   A&lt;SUB&gt;AUART NE 'ZCR' AND A&lt;/SUB&gt;AUART NE 'ZDR' )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;seems to be contradictorily - please check it&lt;/P&gt;&lt;P&gt;and use ranges or select-options for the literals 'ZKA' . etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope that helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andreas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Andreas Mann on Aug 5, 2010 4:27 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Aug 2010 14:27:18 GMT</pubDate>
    <dc:creator>andreas_mann3</dc:creator>
    <dc:date>2010-08-05T14:27:18Z</dc:date>
    <item>
      <title>incorrect data selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/incorrect-data-selection/m-p/7191178#M1519823</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;below is my part of code.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT A~MATNR A~VKORG A~AUDAT A~VTWEG A~SPART A~AUART
           A~VKBUR A~VKGRP A~KUNNR A~VBELN A~POSNR A~WERKS B~ETENR
           B~J_3ASIZE B~J_4KRCAT B~J_3AABGRU B~LMENG B~J_3ANETW
           FROM VAPMA AS A JOIN VBEP AS B ON A~MANDT = B~MANDT
                                         AND A~VBELN = B~VBELN
                                         AND A~POSNR = B~POSNR

           INTO CORRESPONDING FIELDS OF TABLE IT_VBEP
           FOR ALL ENTRIES IN TMP_PLAN
           WHERE A~MATNR EQ TMP_PLAN-STYLECODE
             AND A~VKORG EQ P_VKORG
             AND A~TRVOG EQ '0'
             AND A~AUDAT IN S_AUDAT
             AND A~VTWEG IN S_VTWEG
             AND ( A~AUART IN S_AUART AND A~AUART NE 'ZORB' AND
                   A~AUART NE 'ZKA' AND A~AUART NE 'KA'     AND
                   A~AUART NE 'ZRE' AND A~AUART NE 'RE'     AND
                   A~AUART NE 'ZKE' AND A~AUART NE 'ZKR'    AND
                   A~AUART NE 'ZCR' AND A~AUART NE 'ZDR' )
             AND A~KUNNR IN S_KUNNR
             AND A~WERKS IN S_WERKS.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;in the above code when i debug the values are like this.&lt;/P&gt;&lt;P&gt;matnr is space, vkorg = 1000 , audat between 01.01.2010 to 01.02.2010&lt;/P&gt;&lt;P&gt;vtweg eq space and auart ne above specified values and kunnr eq space and werks eq space.&lt;/P&gt;&lt;P&gt;while debugging i get 4 entries in it_vbep for which vbeln contains 3 repeated entries 1998(3 times) and another entry 1999(once).&lt;/P&gt;&lt;P&gt;but if i put exact selection option in VAPMA table i get only 2 entries where vbeln is 1998 &amp;amp; 1997.&lt;/P&gt;&lt;P&gt;and it_vbep contains wrong spart value(HR,which is not correct as we are providing LE only on selection screen) also for vbeln 1999.&lt;/P&gt;&lt;P&gt;Am i getting this duplicate entry in it_vbep because of 'FOR ALL ENTRIES IN TMP_PLAN'.?????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz help.&lt;/P&gt;&lt;P&gt;You would help yourself by using code tags to format the code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ashmita Singh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Aug 5, 2010 10:13 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Aug 2010 14:07:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/incorrect-data-selection/m-p/7191178#M1519823</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-05T14:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: incorrect data selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/incorrect-data-selection/m-p/7191179#M1519824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this part &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;AND ( A&lt;SUB&gt;AUART IN S_AUART AND A&lt;/SUB&gt;AUART NE 'ZORB' AND&lt;/P&gt;&lt;P&gt;                   A&lt;SUB&gt;AUART NE 'ZKA' AND A&lt;/SUB&gt;AUART NE 'KA'     AND&lt;/P&gt;&lt;P&gt;                   A&lt;SUB&gt;AUART NE 'ZRE' AND A&lt;/SUB&gt;AUART NE 'RE'     AND&lt;/P&gt;&lt;P&gt;                   A&lt;SUB&gt;AUART NE 'ZKE' AND A&lt;/SUB&gt;AUART NE 'ZKR'    AND&lt;/P&gt;&lt;P&gt;                   A&lt;SUB&gt;AUART NE 'ZCR' AND A&lt;/SUB&gt;AUART NE 'ZDR' )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;seems to be contradictorily - please check it&lt;/P&gt;&lt;P&gt;and use ranges or select-options for the literals 'ZKA' . etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope that helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andreas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Andreas Mann on Aug 5, 2010 4:27 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Aug 2010 14:27:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/incorrect-data-selection/m-p/7191179#M1519824</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2010-08-05T14:27:18Z</dc:date>
    </item>
  </channel>
</rss>

