<?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: error message in the loop statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-the-loop-statement/m-p/7157841#M1515460</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Bulent:&lt;/P&gt;&lt;P&gt;                   'Diaplay Like' addtion on the  message command  can't work in R/3,but it works fine in IDES ECC6.0.&lt;/P&gt;&lt;P&gt;                   because of the systerm version,the message statement has difference in ABAP?&lt;/P&gt;&lt;P&gt;                   Thanks for your replay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Aug 2010 03:26:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-08-17T03:26:18Z</dc:date>
    <item>
      <title>error message in the loop statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-the-loop-statement/m-p/7157837#M1515456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts:&lt;/P&gt;&lt;P&gt;                In my ABAP program,&lt;/P&gt;&lt;P&gt;                In the loop of internal table,when match some condition,the system give error message, or go on.&lt;/P&gt;&lt;P&gt;                Now,if the internal table has ten records,  three records match some condition,the others need&lt;/P&gt;&lt;P&gt;                       process going on. &lt;/P&gt;&lt;P&gt;                But in my program,if finds error record,giving error message,can't process other records.&lt;/P&gt;&lt;P&gt;                I want it can not only show error message,but also process other records.&lt;/P&gt;&lt;P&gt;                Pls give me some advice,tks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Aug 2010 07:41:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-the-loop-statement/m-p/7157837#M1515456</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-16T07:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: error message in the loop statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-the-loop-statement/m-p/7157838#M1515457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stephen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you give message type 'E' for displaying error? if yes, it can terminate your program at that line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, create a variable like flag to check error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Loop at itab.

if found_error.
flag = 'X'
continue.
endif.
endloop.

* at exit loop
if flag = 'X'.
message to user.
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it helps,&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Aug 2010 07:47:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-the-loop-statement/m-p/7157838#M1515457</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-16T07:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: error message in the loop statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-the-loop-statement/m-p/7157839#M1515458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Stephen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As Thien said message with type E terminates your program,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use DISPLAY LIKE addition on your message command like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;MESSAGE ID '00' TYPE 'S' NUMBER '398' DISPLAY LIKE 'E'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By this way your message will be displayed as en error in RED color&lt;/P&gt;&lt;P&gt;but will not terminate your program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you can use an application log to display messages for loop steps&lt;/P&gt;&lt;P&gt;by using functions  BAL_LOG_CREATE , BAL_LOG_MSG_ADD , BAL_DSP_LOG_DISPLAY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Aug 2010 08:20:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-the-loop-statement/m-p/7157839#M1515458</guid>
      <dc:creator>bbalci</dc:creator>
      <dc:date>2010-08-16T08:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: error message in the loop statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-the-loop-statement/m-p/7157840#M1515459</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;Message type E is error type and it will terminate your program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So either we can declare the message type E as information message or status or we can add a varaible flag which can be set on error.&lt;/P&gt;&lt;P&gt;So that it would not terminate the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Loop at inttable1.
 
if condition for error

flag = 'X'.

continue.

endif.

endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Outside the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;if flag = 'X'.

message in other internal table with details.

endif&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&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, 16 Aug 2010 08:50:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-the-loop-statement/m-p/7157840#M1515459</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-16T08:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: error message in the loop statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-the-loop-statement/m-p/7157841#M1515460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Bulent:&lt;/P&gt;&lt;P&gt;                   'Diaplay Like' addtion on the  message command  can't work in R/3,but it works fine in IDES ECC6.0.&lt;/P&gt;&lt;P&gt;                   because of the systerm version,the message statement has difference in ABAP?&lt;/P&gt;&lt;P&gt;                   Thanks for your replay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2010 03:26:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-the-loop-statement/m-p/7157841#M1515460</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-17T03:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: error message in the loop statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-the-loop-statement/m-p/7157842#M1515461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Which version of SAP are you using ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2010 03:33:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-the-loop-statement/m-p/7157842#M1515461</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-08-17T03:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: error message in the loop statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-the-loop-statement/m-p/7157843#M1515462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stephen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Press F1 button on MESSAGE command in your editor and display help for this command&lt;/P&gt;&lt;P&gt;if you don't see addition the DISPLAY LIKE in help window as an option &lt;/P&gt;&lt;P&gt;it means that your version doesn't support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You'r welcome .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2010 06:48:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-the-loop-statement/m-p/7157843#M1515462</guid>
      <dc:creator>bbalci</dc:creator>
      <dc:date>2010-08-17T06:48:05Z</dc:date>
    </item>
  </channel>
</rss>

