<?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: Flow in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/flow/m-p/1813440#M348567</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know about joins,i dont want that.&lt;/P&gt;&lt;P&gt;My doubt is if you loop the KNA1  table instead of VBAK  first or LIKP &lt;/P&gt;&lt;P&gt;or other table,how read works here?&lt;/P&gt;&lt;P&gt;I can also use Select single inside the loop,but why do we prefer Read??is it performance issue??&lt;/P&gt;&lt;P&gt;The way you write select statements order,do we write in read also same as selects order?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Jan 2007 16:27:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-08T16:27:37Z</dc:date>
    <item>
      <title>Flow</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/flow/m-p/1813434#M348561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;Say i am retrieving data from VBAK &lt;/P&gt;&lt;P&gt;select * from vbak&lt;/P&gt;&lt;P&gt;retrieving data from vbap&lt;/P&gt;&lt;P&gt;select * from vbap&lt;/P&gt;&lt;P&gt;retreiving from likp&lt;/P&gt;&lt;P&gt;select * from likp&lt;/P&gt;&lt;P&gt;retrieving from lips&lt;/P&gt;&lt;P&gt;select * from lips&lt;/P&gt;&lt;P&gt;retrieving from kna1&lt;/P&gt;&lt;P&gt;select * from kna1...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to pass all data to final internal table..&lt;/P&gt;&lt;P&gt;which table we loop first ....why is that so..&lt;/P&gt;&lt;P&gt;How read works on these tables??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jan 2007 16:12:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/flow/m-p/1813434#M348561</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-08T16:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: Flow</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/flow/m-p/1813435#M348562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First u have to loop at VBAK because it is the header table.Then within that loop u need to read the other internal tables.&lt;/P&gt;&lt;P&gt;READ can hold only one record at any point of time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like &lt;/P&gt;&lt;P&gt;loop at it_vbak.&lt;/P&gt;&lt;P&gt;.........&lt;/P&gt;&lt;P&gt;read table it_vbap with key vbeln = it_vbak-vbeln.&lt;/P&gt;&lt;P&gt;move corresponding fields to ur final internal table&lt;/P&gt;&lt;P&gt;...........&lt;/P&gt;&lt;P&gt;append it_final.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jan 2007 16:21:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/flow/m-p/1813435#M348562</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-08T16:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: Flow</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/flow/m-p/1813436#M348563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi RK,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u can use inner join for vbak, vbap, lips, likp with vbeln key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select vbak&lt;SUB&gt;field vbap&lt;/SUB&gt;fields lips&lt;SUB&gt;fields likp&lt;/SUB&gt;fields into corresponding fields of itab from vbak inner join vbap on vbak&lt;SUB&gt;vbeln = vbap&lt;/SUB&gt;vbeln inner join lips on vbak&lt;SUB&gt;vbeln = lips&lt;/SUB&gt;vbeln inner join likp on vbak&lt;SUB&gt;vbeln = likp&lt;/SUB&gt;vbeln where ( ur conditions).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try to relate ur fields with KNA1 table fields and populate the final itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;CNu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jan 2007 16:22:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/flow/m-p/1813436#M348563</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-08T16:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: Flow</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/flow/m-p/1813437#M348564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of inner joins u can use FOR ALL ENTRIES.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jan 2007 16:24:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/flow/m-p/1813437#M348564</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-08T16:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: Flow</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/flow/m-p/1813438#M348565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know about joins,i dont want that.&lt;/P&gt;&lt;P&gt;My doubt is if you loop the KNA1  table instead of VBAK  first or LIKP &lt;/P&gt;&lt;P&gt;or other table,how read works here?&lt;/P&gt;&lt;P&gt;I can also use Select single inside the loop,but why do we prefer Read??is it performance issue??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jan 2007 16:25:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/flow/m-p/1813438#M348565</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-08T16:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: Flow</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/flow/m-p/1813439#M348566</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;Whats your requirement, depends upon your requirement u have to join the table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jan 2007 16:27:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/flow/m-p/1813439#M348566</guid>
      <dc:creator>alex_m</dc:creator>
      <dc:date>2007-01-08T16:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: Flow</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/flow/m-p/1813440#M348567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know about joins,i dont want that.&lt;/P&gt;&lt;P&gt;My doubt is if you loop the KNA1  table instead of VBAK  first or LIKP &lt;/P&gt;&lt;P&gt;or other table,how read works here?&lt;/P&gt;&lt;P&gt;I can also use Select single inside the loop,but why do we prefer Read??is it performance issue??&lt;/P&gt;&lt;P&gt;The way you write select statements order,do we write in read also same as selects order?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jan 2007 16:27:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/flow/m-p/1813440#M348567</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-08T16:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: Flow</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/flow/m-p/1813441#M348568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) Yes. READ with binary search (sort the internal table before) will improve the performance. Select single - it has to read the database each loop so slows down the performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) You can loop through KNA1 but disadvantage is, it is not key and one customer will have multiple VBAK records so again you have to loop for VBAK. Inner loops should be avoided and again reason is performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) Probably, you may need inner loops as same sales document, may have multiple deliveries and line items (LIPS). DO... READ....Enddo statements may be useful to avoid inner loops.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4) Though you don't want to use inner joins, it will reduce the development effort and improve the performance. Instead of joining all tables, you can atleast joins VBAK and VBAP, LIKP and LIPS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Viswa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jan 2007 16:37:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/flow/m-p/1813441#M348568</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-08T16:37:50Z</dc:date>
    </item>
  </channel>
</rss>

