<?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: Problem with multiple selection in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-multiple-selection/m-p/9230542#M1718552</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's problem with you collect statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You where using the collect statement inside the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please write the simple test program without collect and check what is happend !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Rgds&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Dec 2012 19:32:48 GMT</pubDate>
    <dc:creator>ravi_lanjewar</dc:creator>
    <dc:date>2012-12-21T19:32:48Z</dc:date>
    <item>
      <title>Problem with multiple selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-multiple-selection/m-p/9230539#M1718549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm new in the ABAP world!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to code a 5 Steps research into a 1 step research.&lt;/P&gt;&lt;P&gt;The problem i have is:&lt;/P&gt;&lt;P&gt;Instead of getting data for Multiple VKONT, i get data for only one VKONT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone help me!!!&lt;/P&gt;&lt;P&gt;My code is in the attached file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any advice are welcome!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Dec 2012 19:08:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-multiple-selection/m-p/9230539#M1718549</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-12-20T19:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with multiple selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-multiple-selection/m-p/9230540#M1718550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In some SELECT statements you're using 'VKONT = CDEC' or 'VKONT IN CDEC' in place of 'VKONT IN IT_CDEC'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Edgar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Dec 2012 20:23:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-multiple-selection/m-p/9230540#M1718550</guid>
      <dc:creator>edgar_nagasaki</dc:creator>
      <dc:date>2012-12-20T20:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with multiple selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-multiple-selection/m-p/9230541#M1718551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Few errors in code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Some code practices are really obsolete. Please change it for performance issues since you are playing with table DFKKOP which normally is a large table.&lt;/P&gt;&lt;P&gt;2. Why to use Select... Endselect when you can directly use select for populating data in IT_DATA.&lt;/P&gt;&lt;P&gt;3. Instead of writing multiple queries for different HVORG and TVORG, why not write only one and then delete the extra line from internal table which would be faster.&lt;/P&gt;&lt;P&gt;4. Same applies for field AUGRD field as well. Writing 6 queries you are picking lots of redundant data.&lt;/P&gt;&lt;P&gt;5. INTO CORRESPONDING FIELDS is not required since structure is same.&lt;/P&gt;&lt;P&gt;6. CDEC is just a structure, i don't know how are you using it with IN statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM DFKKOP INTO TABLE IT_DFKKOP&lt;/P&gt;&lt;P&gt;WHERE VKONT = CDEC and&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HVORG IN (all your HVORGs) AND&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AUGRD not in ('05','10','11').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now use this internal table to remove entries not required like extra TVORGs and BLDATs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Dec 2012 23:01:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-multiple-selection/m-p/9230541#M1718551</guid>
      <dc:creator>raviahuja</dc:creator>
      <dc:date>2012-12-20T23:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with multiple selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-multiple-selection/m-p/9230542#M1718552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's problem with you collect statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You where using the collect statement inside the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please write the simple test program without collect and check what is happend !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Rgds&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2012 19:32:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-multiple-selection/m-p/9230542#M1718552</guid>
      <dc:creator>ravi_lanjewar</dc:creator>
      <dc:date>2012-12-21T19:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with multiple selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-multiple-selection/m-p/9230543#M1718553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanx for the reply. You are right, the table DFKKOP is huge and any research without OPBEL as a key in the research is very long. However, i dont have other choice...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How would I remove entries in my internal table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The IT here wont let me use the delete statement... or i will have to work hard to be able to use it!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2012 20:11:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-multiple-selection/m-p/9230543#M1718553</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-12-21T20:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with multiple selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-multiple-selection/m-p/9230544#M1718554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class="j-status-levels"&gt; &lt;/SPAN&gt;&lt;SPAN class="j-post-author"&gt;&lt;STRONG&gt;Former Member ,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Greetings for new in the ABAP world,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; U have tried that ur best fine,&amp;nbsp; some of the codes you are&amp;nbsp; used that is really obsolete,&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN class="j-post-author"&gt;In the decleration part u have used field symbols, better give the type&amp;nbsp; for field symbol as table type or structure type,&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;Using select../ with endselect, why cant u try with select single.., or UPTO 1 rows based on ur requirement for fetching particular datas.&lt;/LI&gt;&lt;LI&gt;Instead of using multiple select statements, select all the values from DBtable into ITAB and based on ur requirements u can read the table or loop that table with where condition to get your data,&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN class="j-post-author"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author"&gt;Thanks &amp;amp; Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Dec 2012 10:18:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-multiple-selection/m-p/9230544#M1718554</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-12-24T10:18:02Z</dc:date>
    </item>
  </channel>
</rss>

