<?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: Optimization in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/optimization/m-p/2149921#M453858</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Define another internal table with onli one field i.e f3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data :&lt;/P&gt;&lt;P&gt;begin of fs_var ,&lt;/P&gt;&lt;P&gt;  field like LS_T1-F3.&lt;/P&gt;&lt;P&gt;end of fs_var.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data  table_var like standard table of fs_var.&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;(*** this declaration of the table should be after the declaration of the table LS_T1 **)&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;select * from T1 into table LT_T1 where F5 = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at LT_T1 into LS_T1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fs_var-field = LS_T1-F3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append fs_var to table_var.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solves ur problem..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz do remember to close the thread .. when ur problem is solved !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;sai ramesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Mar 2007 06:32:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-30T06:32:30Z</dc:date>
    <item>
      <title>Optimization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/optimization/m-p/2149920#M453857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have one table T1 having fields F1, F2, F3, F4, F5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now my requirement is to select the records from table T1 based on filter criteria.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In table T1 for further processing I need only value of F3 field.  But for the given filter criteria I have multiple entries in &lt;/P&gt;&lt;P&gt;table T1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So How I can store multiple values in my defined variable.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;i.e. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from T1 into table LT_T1 where F5 = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at LT_T1 into LS_T1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_var = LS_T1-F3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;for the codition F5 = 'X' we have multiple entries in table T1.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wanted to know is any optimized solution is there i.e. can anybody will optimized&lt;/P&gt;&lt;P&gt;the above mentioned code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Mar 2007 06:28:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/optimization/m-p/2149920#M453857</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-30T06:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: Optimization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/optimization/m-p/2149921#M453858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Define another internal table with onli one field i.e f3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data :&lt;/P&gt;&lt;P&gt;begin of fs_var ,&lt;/P&gt;&lt;P&gt;  field like LS_T1-F3.&lt;/P&gt;&lt;P&gt;end of fs_var.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data  table_var like standard table of fs_var.&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;(*** this declaration of the table should be after the declaration of the table LS_T1 **)&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;select * from T1 into table LT_T1 where F5 = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at LT_T1 into LS_T1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fs_var-field = LS_T1-F3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append fs_var to table_var.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solves ur problem..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz do remember to close the thread .. when ur problem is solved !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;sai ramesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Mar 2007 06:32:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/optimization/m-p/2149921#M453858</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-30T06:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: Optimization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/optimization/m-p/2149922#M453859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If table T1 have multiple values for field F3, declare a internal table with single field like F3 and move the values to that int table.&lt;/P&gt;&lt;P&gt;loop at LT_T1 into LS_T1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab1-fieldr = LS_T1-F3.&lt;/P&gt;&lt;P&gt;  append itab1.&lt;/P&gt;&lt;P&gt;  clear Itab1.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;now do what ever you wants to do with that field values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if useful&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;ANJI&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Mar 2007 06:34:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/optimization/m-p/2149922#M453859</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-30T06:34:32Z</dc:date>
    </item>
  </channel>
</rss>

