<?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 select in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select/m-p/2471804#M555744</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; keep the write statement before ENDSELECT statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Satya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Jun 2007 12:06:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-26T12:06:52Z</dc:date>
    <item>
      <title>problem with select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select/m-p/2471803#M555743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have part of code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF eket_obj, &lt;/P&gt;&lt;P&gt;      werks LIKE ekpo-werks,&lt;/P&gt;&lt;P&gt;      matnr LIKE ekpo-matnr,&lt;/P&gt;&lt;P&gt;      menge TYPE i,&lt;/P&gt;&lt;P&gt;      wemng TYPE i,&lt;/P&gt;&lt;P&gt;      objednane TYPE i,&lt;/P&gt;&lt;P&gt;      END OF eket_obj.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: l_eket_obj TYPE eket_obj OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT werks ekpo&lt;SUB&gt;matnr eket&lt;/SUB&gt;menge eket~wemng&lt;/P&gt;&lt;P&gt;FROM ekko&lt;/P&gt;&lt;P&gt;JOIN ekpo ON ekko&lt;SUB&gt;ebeln = ekpo&lt;/SUB&gt;ebeln&lt;/P&gt;&lt;P&gt;JOIN eket ON ekko&lt;SUB&gt;ebeln = eket&lt;/SUB&gt;ebeln&lt;/P&gt;&lt;P&gt;         AND ekpo&lt;SUB&gt;ebelp = eket&lt;/SUB&gt;ebelp&lt;/P&gt;&lt;P&gt;JOIN mara ON mara&lt;SUB&gt;matnr = ekpo&lt;/SUB&gt;matnr&lt;/P&gt;&lt;P&gt;INTO l_eket_obj&lt;/P&gt;&lt;P&gt;WHERE ekko&lt;SUB&gt;loekz = '' AND ekpo&lt;/SUB&gt;loekz = ''&lt;/P&gt;&lt;P&gt;        AND eket&lt;SUB&gt;menge &amp;gt; eket&lt;/SUB&gt;wemng&lt;/P&gt;&lt;P&gt;        AND werks between 1000 and 1003&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        AND mara~mtart = 'HAWA'&lt;/P&gt;&lt;P&gt;GROUP by werks ekpo&lt;SUB&gt;matnr eket&lt;/SUB&gt;menge eket~wemng.&lt;/P&gt;&lt;P&gt;l_eket_obj-objednane = l_eket_obj-menge - l_eket_obj-wemng.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write l_eket_obj.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How change this code that table l_eket_obj keeps all lines taken from table ekko not only the last one?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Joanna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2007 12:02:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select/m-p/2471803#M555743</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-26T12:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: problem with select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select/m-p/2471804#M555744</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; keep the write statement before ENDSELECT statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Satya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2007 12:06:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select/m-p/2471804#M555744</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-26T12:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: problem with select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select/m-p/2471805#M555745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes, I know this, but it only makes that single line will be printed every time that select takes data but i don't need to print all this data (the write sentences is only to check content of table) i need that all lines will be kept in table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2007 12:13:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select/m-p/2471805#M555745</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-26T12:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: problem with select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select/m-p/2471806#M555746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The cause is the way you are using internal table l_eket_obj. In your code you are only filling the header of the table, not the body (no APPEND Statement).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Better is to do SELECT INTO TABLE &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT werks ekpo&lt;SUB&gt;matnr eket&lt;/SUB&gt;menge eket~wemng&lt;/P&gt;&lt;P&gt;FROM ekko&lt;/P&gt;&lt;P&gt;JOIN ekpo ON ekko&lt;SUB&gt;ebeln = ekpo&lt;/SUB&gt;ebeln&lt;/P&gt;&lt;P&gt;JOIN eket ON ekko&lt;SUB&gt;ebeln = eket&lt;/SUB&gt;ebeln&lt;/P&gt;&lt;P&gt;AND ekpo&lt;SUB&gt;ebelp = eket&lt;/SUB&gt;ebelp&lt;/P&gt;&lt;P&gt;JOIN mara ON mara&lt;SUB&gt;matnr = ekpo&lt;/SUB&gt;matnr&lt;/P&gt;&lt;P&gt;INTO &amp;lt;i&amp;gt;TABLE&amp;lt;/i&amp;gt; l_eket_obj&lt;/P&gt;&lt;P&gt;WHERE ekko&lt;SUB&gt;loekz = '' AND ekpo&lt;/SUB&gt;loekz = ''&lt;/P&gt;&lt;P&gt;AND eket&lt;SUB&gt;menge &amp;gt; eket&lt;/SUB&gt;wemng&lt;/P&gt;&lt;P&gt;AND werks between 1000 and 1003&lt;/P&gt;&lt;P&gt;AND mara~mtart = 'HAWA'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;GROUP by werks ekpo&lt;SUB&gt;matnr eket&lt;/SUB&gt;menge eket~wemng. "Not sure if you need this&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Update the field in the internal table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;LOOP AT l_eket_obj.&lt;/P&gt;&lt;P&gt;l_eket_obj-objednane = l_eket_obj-menge - l_eket_obj-wemng.&lt;/P&gt;&lt;P&gt;MODIFY l_eket_obj.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2007 12:16:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select/m-p/2471806#M555746</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-26T12:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: problem with select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select/m-p/2471807#M555747</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 think u need to loop at the table and then give the write statement.&lt;/P&gt;&lt;P&gt;This will help u.&lt;/P&gt;&lt;P&gt;Regards;&lt;/P&gt;&lt;P&gt;Sapna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2007 12:18:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select/m-p/2471807#M555747</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-26T12:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: problem with select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select/m-p/2471808#M555748</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;Modify ur code as follows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF eket_obj, &lt;/P&gt;&lt;P&gt;werks LIKE ekpo-werks,&lt;/P&gt;&lt;P&gt;matnr LIKE ekpo-matnr,&lt;/P&gt;&lt;P&gt;menge TYPE i,&lt;/P&gt;&lt;P&gt;wemng TYPE i,&lt;/P&gt;&lt;P&gt;objednane TYPE i,&lt;/P&gt;&lt;P&gt;END OF eket_obj.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: l_eket_obj TYPE eket_obj OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT werks ekpo&lt;SUB&gt;matnr eket&lt;/SUB&gt;menge eket~wemng&lt;/P&gt;&lt;P&gt;FROM ekko&lt;/P&gt;&lt;P&gt;JOIN ekpo ON ekko&lt;SUB&gt;ebeln = ekpo&lt;/SUB&gt;ebeln&lt;/P&gt;&lt;P&gt;JOIN eket ON ekko&lt;SUB&gt;ebeln = eket&lt;/SUB&gt;ebeln&lt;/P&gt;&lt;P&gt;AND ekpo&lt;SUB&gt;ebelp = eket&lt;/SUB&gt;ebelp&lt;/P&gt;&lt;P&gt;JOIN mara ON mara&lt;SUB&gt;matnr = ekpo&lt;/SUB&gt;matnr&lt;/P&gt;&lt;P&gt;INTO l_eket_obj&lt;/P&gt;&lt;P&gt;WHERE ekko&lt;SUB&gt;loekz = '' AND ekpo&lt;/SUB&gt;loekz = ''&lt;/P&gt;&lt;P&gt;AND eket&lt;SUB&gt;menge &amp;gt; eket&lt;/SUB&gt;wemng&lt;/P&gt;&lt;P&gt;AND werks between 1000 and 1003&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AND mara~mtart = 'HAWA'&lt;/P&gt;&lt;P&gt;GROUP by werks ekpo&lt;SUB&gt;matnr eket&lt;/SUB&gt;menge eket~wemng.&lt;/P&gt;&lt;P&gt;l_eket_obj-objednane = l_eket_obj-menge - l_eket_obj-wemng.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Append l_eket_obj.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Loop at l_eket_obj.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;write l_eket_obj.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;endloop.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Changes are in Bold.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ranjit Thakur.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Please Mark The Helpful Answer.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2007 12:22:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select/m-p/2471808#M555748</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-26T12:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: problem with select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select/m-p/2471809#M555749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, after changing on INTO TABLE it still shows only one line. Could I change it in the other way yet?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Joanna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2007 12:24:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select/m-p/2471809#M555749</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-26T12:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: problem with select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select/m-p/2471810#M555750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to put your WRITE statement inside a LOOP, and write out each field separately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT &amp;lt;Table&amp;gt;.&lt;/P&gt;&lt;P&gt;  WRITE:/ &amp;lt;Table&amp;gt;-xxx,&lt;/P&gt;&lt;P&gt;               &amp;lt;Table&amp;gt;-yyy,&lt;/P&gt;&lt;P&gt;               &amp;lt;Table&amp;gt;-zzz.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2007 12:30:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select/m-p/2471810#M555750</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-26T12:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: problem with select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select/m-p/2471811#M555751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;THAKS u all for hepl now it works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2007 12:34:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select/m-p/2471811#M555751</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-26T12:34:15Z</dc:date>
    </item>
  </channel>
</rss>

