<?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 Logic For avoiding loop inside loop. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-for-avoiding-loop-inside-loop/m-p/12075823#M1970402</link>
    <description>&lt;P&gt;how to avoid the double entry of a material in a internal table of a valuated class stock in a loop.because we are used loop inside loop.i am getting the same material value twice.pls give suggestion to avoid twice value.&lt;/P&gt;</description>
    <pubDate>Tue, 10 Sep 2019 14:05:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2019-09-10T14:05:23Z</dc:date>
    <item>
      <title>Logic For avoiding loop inside loop.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-for-avoiding-loop-inside-loop/m-p/12075823#M1970402</link>
      <description>&lt;P&gt;how to avoid the double entry of a material in a internal table of a valuated class stock in a loop.because we are used loop inside loop.i am getting the same material value twice.pls give suggestion to avoid twice value.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2019 14:05:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic-for-avoiding-loop-inside-loop/m-p/12075823#M1970402</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-09-10T14:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: Logic For avoiding loop inside loop.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-for-avoiding-loop-inside-loop/m-p/12075824#M1970403</link>
      <description>&lt;P&gt;Hello Sandhya,&lt;/P&gt;&lt;P&gt;Could you show the code or provide a littel more of context?&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2019 14:16:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic-for-avoiding-loop-inside-loop/m-p/12075824#M1970403</guid>
      <dc:creator>ruben_rollano</dc:creator>
      <dc:date>2019-09-10T14:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: Logic For avoiding loop inside loop.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-for-avoiding-loop-inside-loop/m-p/12075825#M1970404</link>
      <description>&lt;P&gt;can you provide the code ?&lt;/P&gt;&lt;P&gt;Anyways, did you try to filter records with where clause/parallel cursor ? or a simply read statement instead of inner loop, if you want to access only 1 record. ?&lt;/P&gt;&lt;P&gt;Without code and giving exact details it will be difficult for everyone to help you.&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;Rameez&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2019 14:22:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic-for-avoiding-loop-inside-loop/m-p/12075825#M1970404</guid>
      <dc:creator>rameez_khan</dc:creator>
      <dc:date>2019-09-10T14:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: Logic For avoiding loop inside loop.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-for-avoiding-loop-inside-loop/m-p/12075826#M1970405</link>
      <description>&lt;P&gt;Please use the COMMENT button for comments, questions, adding details, etc., ANSWER is only to propose a solution, dixit SAP text at the right of the answer area: "Before answering You should only submit an answer when you are proposing a solution to the poster's problem"&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2019 15:01:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic-for-avoiding-loop-inside-loop/m-p/12075826#M1970405</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2019-09-10T15:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: Logic For avoiding loop inside loop.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-for-avoiding-loop-inside-loop/m-p/12075827#M1970406</link>
      <description>&lt;P&gt;loop at it_mbew into wa_mbew.&lt;/P&gt;&lt;P&gt; LOOP at it_mard INTO wa_mard WHERE matnr = wa_mbew_new-matnr AND werks = wa_mbew_new-bwkey ."AND labst = wa_mbew_NEW-lbkum."AND charg = wa_mbew-bwtar.&lt;BR /&gt;
 wa_mbew1-bwkey = wa_mbew_new-bwkey.&lt;BR /&gt;
 wa_mbew1-matnr = wa_mbew_new-matnr.&lt;BR /&gt;
 wa_mbew1-bwtar = wa_mbew_new-charg.&lt;BR /&gt;
 wa_mbew1-lbkum = wa_mard-labst + wa_mard-insme.&lt;BR /&gt;
 wa_mbew1-verpr = wa_mbew_new-verpr.&lt;BR /&gt;
 wa_mbew1-bklas = wa_mbew_new-bklas.&lt;BR /&gt;
** wa_mbew1-STPRS = wa_mbew_new-STPRS.&lt;BR /&gt;
** wa_mbew1-lgort = wa_mchb-lgort.&lt;BR /&gt;
 IF wa_mbew1-bklas = '8100'.&lt;BR /&gt;
 wa_mbew1-salk3 = wa_mbew1-lbkum * wa_mbew_new-STPRS.&lt;BR /&gt;
 ELSE.&lt;BR /&gt;
 wa_mbew1-salk3 = wa_mbew_new-salk3."wa_mbew1-lbkum * wa_mbew_new-verpr.&lt;BR /&gt;
 ENDIF.&lt;BR /&gt;
&lt;BR /&gt;
* if wa_mbew_new-matnr = wa_mard-matnr.&lt;BR /&gt;
* APPEND wa_mbew1 to it_mbew1.&lt;BR /&gt;
* ELSE.&lt;BR /&gt;
* exit.&lt;BR /&gt;
* endif.&lt;BR /&gt;
&lt;BR /&gt;
 if wa_mbew1-lbkum IS NOT INITIAL.&lt;BR /&gt;
 APPEND wa_mbew1 to it_mbew1.&lt;BR /&gt;
ENDIF.&lt;BR /&gt;
 CLEAR wa_mbew1.&lt;BR /&gt;
 ENDLOOP.&lt;BR /&gt;
&lt;BR /&gt;
SORT it_mbew1 by bwkey matnr bwtar DESCENDING.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
ENDLOOP.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2019 03:43:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic-for-avoiding-loop-inside-loop/m-p/12075827#M1970406</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-09-11T03:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: Logic For avoiding loop inside loop.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-for-avoiding-loop-inside-loop/m-p/12075828#M1970407</link>
      <description>&lt;P&gt;In this code I am getting two values for a mterial .pls give me some suggestion.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2019 03:45:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic-for-avoiding-loop-inside-loop/m-p/12075828#M1970407</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-09-11T03:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: Logic For avoiding loop inside loop.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-for-avoiding-loop-inside-loop/m-p/12075829#M1970408</link>
      <description>&lt;P&gt;Do you have more than one storage locations?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2019 09:15:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic-for-avoiding-loop-inside-loop/m-p/12075829#M1970408</guid>
      <dc:creator>UweFetzer_se38</dc:creator>
      <dc:date>2019-09-11T09:15:04Z</dc:date>
    </item>
  </channel>
</rss>

