<?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: Basic programming help with nested loops in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/basic-programming-help-with-nested-loops/m-p/10465520#M1848731</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;go through control level processing&amp;nbsp; (search it in Google)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in that use AT NEW for the third&amp;nbsp; field and write your&amp;nbsp; logic&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Jul 2014 03:38:27 GMT</pubDate>
    <dc:creator>former_member193737</dc:creator>
    <dc:date>2014-07-17T03:38:27Z</dc:date>
    <item>
      <title>Basic programming help with nested loops</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/basic-programming-help-with-nested-loops/m-p/10465519#M1848730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;I have a ALV report program there five loops are using based on vbak and vbap table.So my requirement is after second loop if when third loop is not reading the records then earlier two loops data should come in main internal table.in third loop lips and likp data is reading so whose sales order line items delivery having blank it should show blank of delivery column.So how to pass first two loops data to main internal table if third internal table is not reading data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;ADDRESS&gt;&lt;SPAN style="color: #000000;"&gt;&amp;lt;subject edited by moderator&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/ADDRESS&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Manish Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jul 2014 02:28:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/basic-programming-help-with-nested-loops/m-p/10465519#M1848730</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-07-17T02:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: Basic programming help with nested loops</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/basic-programming-help-with-nested-loops/m-p/10465520#M1848731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;go through control level processing&amp;nbsp; (search it in Google)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in that use AT NEW for the third&amp;nbsp; field and write your&amp;nbsp; logic&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jul 2014 03:38:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/basic-programming-help-with-nested-loops/m-p/10465520#M1848731</guid>
      <dc:creator>former_member193737</dc:creator>
      <dc:date>2014-07-17T03:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: Basic programming help with nested loops</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/basic-programming-help-with-nested-loops/m-p/10465521#M1848732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Pradeep,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you talking about loop inside a loop?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't do that... Instead you loop one internal table(which will determine number of records to output internal table)&amp;nbsp; and read(with any key) other internal tables from this loop to get related details.&lt;/P&gt;&lt;P&gt;Once one record(work area) is ready, append it to the output internal table at the end of loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sreekanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jul 2014 04:07:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/basic-programming-help-with-nested-loops/m-p/10465521#M1848732</guid>
      <dc:creator>former_member202818</dc:creator>
      <dc:date>2014-07-17T04:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: Basic programming help with nested loops</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/basic-programming-help-with-nested-loops/m-p/10465522#M1848733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of nested loops, you can use parallel loop processing, it will give best performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fro better understanding please check below sample example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EX: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;***** By using Read statement first you are checking the records available or not&lt;/P&gt;
&lt;P&gt;***** If records available then find the INDEX of that records&lt;/P&gt;
&lt;P&gt;***** Then LOOP your internal table from that INDEX &lt;/P&gt;
&lt;P&gt;***** By doing like this you can SKIP the other records to LOOP.&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;LOOP AT VBAP INTO LS_VBAP.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;READ TABLE LIPS INTO LS_LIPS WITH KEY VBELN = LS_VBAP-VBELN.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;IF&amp;nbsp;&amp;nbsp; SY-SUBRC EQ 0.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;LOOP AT LIPS INTO LS_LIPS FROM SY-TABIX.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;IF LS_LIPS-VBELN NE LS_VBAP-VBELN.&lt;/P&gt;
&lt;P&gt;EXIT.&lt;/P&gt;
&lt;P&gt;ENDIF.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;HERE YOU CAN WRITE YOUR LOGIC.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;ENDLOOP.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;ENDIF.&lt;/P&gt;
&lt;P&gt;ENDLOOP.&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rajesh.B&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jul 2014 04:32:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/basic-programming-help-with-nested-loops/m-p/10465522#M1848733</guid>
      <dc:creator>former_member188282</dc:creator>
      <dc:date>2014-07-17T04:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: Basic programming help with nested loops</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/basic-programming-help-with-nested-loops/m-p/10465523#M1848734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you two &lt;A __default_attr="847016" __jive_macro_name="user" class="jive_macro_user jive_macro" data-orig-content="ram sahoo" href="https://community.sap.com/"&gt;&lt;/A&gt; related? &lt;A __default_attr="3588616" __jive_macro_name="thread" class="jive_macro_thread jive_macro" data-orig-content="HOw To Pass Data" href="https://community.sap.com/"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jul 2014 04:32:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/basic-programming-help-with-nested-loops/m-p/10465523#M1848734</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2014-07-17T04:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: Basic programming help with nested loops</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/basic-programming-help-with-nested-loops/m-p/10465524#M1848735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At least these two discussions are now related via incoming links. &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/906/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jul 2014 05:38:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/basic-programming-help-with-nested-loops/m-p/10465524#M1848735</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-07-17T05:38:01Z</dc:date>
    </item>
  </channel>
</rss>

