<?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: help me pls in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-pls/m-p/2528150#M572929</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;actually i want to exit from the main loop stmt when the if condition true.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls give me suggestion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rajaram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 14 Jul 2007 11:02:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-14T11:02:16Z</dc:date>
    <item>
      <title>help me pls</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-pls/m-p/2528148#M572927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CLEAR lv_index.&lt;/P&gt;&lt;P&gt;      LOOP AT lt_vbap INTO ls_vbap.&lt;/P&gt;&lt;P&gt;        tmp = sy-dbcnt.&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;P&gt;       if tmp eq 0.&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;        lv_index = lv_index + 1.&lt;/P&gt;&lt;P&gt;        SELECT SINGLE ETTYP FROM vbep INTO lv_ettyp&lt;/P&gt;&lt;P&gt;               WHERE vbeln = ls_vbap-vbeln&lt;/P&gt;&lt;P&gt;               AND   POSNR = ls_vbap-posnr.&lt;/P&gt;&lt;P&gt;          If lv_ettyp = 'CN'.&lt;/P&gt;&lt;P&gt;          ls_vbap-UPMAT = 'MRP Blocked'.&lt;/P&gt;&lt;P&gt;          APPEND ls_vbap TO lt_vbap.&lt;/P&gt;&lt;P&gt;          DELETE lt_vbap INDEX lv_index.&lt;/P&gt;&lt;P&gt;          lv_index = lv_index - 1.&lt;/P&gt;&lt;P&gt;          tmp = tmp - 1.&lt;/P&gt;&lt;P&gt;          ENDIF.&lt;/P&gt;&lt;P&gt;      ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is my code, i want to exit from the loop stmt when the below condition true.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     if tmp eq 0.&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;But it is not working, it exits the control from the if contol only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can we do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rajaram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Jul 2007 10:44:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-pls/m-p/2528148#M572927</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-14T10:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: help me pls</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-pls/m-p/2528149#M572928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajaram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should not happen. Exit will take you out from the LOOP only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just check in the debuging the below code. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if tmp eq 0.&lt;/P&gt;&lt;P&gt;write 5.&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;Just put a break point on WRITE and see if the control comes there or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Jul 2007 10:54:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-pls/m-p/2528149#M572928</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-14T10:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: help me pls</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-pls/m-p/2528150#M572929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;actually i want to exit from the main loop stmt when the if condition true.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls give me suggestion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rajaram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Jul 2007 11:02:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-pls/m-p/2528150#M572929</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-14T11:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: help me pls</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-pls/m-p/2528151#M572930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajaram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes. EXIT will take you out from the main LOOP statement only. Not from IF statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just let me know, when you put a breakpoint on the WRITE statement, does the program stopped there or not..if not then the tmp was never inital.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or just change&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;IF tmp IS INITIAL&amp;lt;/b&amp;gt; instead of IF tmp = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Jul 2007 11:05:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-pls/m-p/2528151#M572930</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-14T11:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: help me pls</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-pls/m-p/2528152#M572931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raja,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for using a SUBJECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="115255"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Jul 2007 12:30:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-pls/m-p/2528152#M572931</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2007-07-14T12:30:44Z</dc:date>
    </item>
  </channel>
</rss>

