<?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: wrong if statement - system problem?? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-if-statement-system-problem/m-p/4749859#M1114077</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Belive me, I have checked sy-subrc at every click...&lt;/P&gt;&lt;P&gt;On if line sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Rob, I have an extra dot, sorry&lt;/P&gt;&lt;P&gt;I just had to modify the data object names and the exception name...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Nov 2008 15:44:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-06T15:44:40Z</dc:date>
    <item>
      <title>wrong if statement - system problem??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-if-statement-system-problem/m-p/4749854#M1114072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a veeery strange issue: I have a call FM, I exit the FM with sy-subrc = 0.&lt;/P&gt;&lt;P&gt;After the call FM I have the usual &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;if sy-subrc NE 0.
message...
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Guess what: the message is displayed when sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Edited by moderator because the forum can't cope with &amp;lt; followed by &amp;gt;  And put into  tags because it looks nicer&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Matt on Nov 6, 2008 4:18 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Nov 2008 15:15:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-if-statement-system-problem/m-p/4749854#M1114072</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-06T15:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: wrong if statement - system problem??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-if-statement-system-problem/m-p/4749855#M1114073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you sure the message displayed is the one inside the exit if?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Post the code exactly how it is in the program inside the code markup&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Nov 2008 15:18:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-if-statement-system-problem/m-p/4749855#M1114073</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-06T15:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: wrong if statement - system problem??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-if-statement-system-problem/m-p/4749856#M1114074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is the code, nothing special... and yes, I am in debugger and the message inside the if statement is displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT  xxx.

DATA: x TYPE y.

 CALL FUNCTION 'ZZZ'
    EXPORTING
      zz              = X
   EXCEPTIONS
     EX1                    = 1.     
     OTHERS             = 2.
* Here I check in debugger and sy-subrc = 0 !!!
  IF sy-subrc NE 0.
* THIS PART IS EXECUTED!!!
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Nov 2008 15:27:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-if-statement-system-problem/m-p/4749856#M1114074</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-06T15:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: wrong if statement - system problem??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-if-statement-system-problem/m-p/4749857#M1114075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check the sy-subrc when the debugger is on the if line, not on the call fucntion line&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Nov 2008 15:37:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-if-statement-system-problem/m-p/4749857#M1114075</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-06T15:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: wrong if statement - system problem??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-if-statement-system-problem/m-p/4749858#M1114076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;/CODE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;CODE&gt;
&amp;gt;    EXCEPTIONS
&amp;gt;      EX1                    = 1.     
&amp;gt;      OTHERS             = 2.
&amp;gt; &lt;/CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try again - this won't pass a syntax check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Nov 2008 15:40:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-if-statement-system-problem/m-p/4749858#M1114076</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-06T15:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: wrong if statement - system problem??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-if-statement-system-problem/m-p/4749859#M1114077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Belive me, I have checked sy-subrc at every click...&lt;/P&gt;&lt;P&gt;On if line sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Rob, I have an extra dot, sorry&lt;/P&gt;&lt;P&gt;I just had to modify the data object names and the exception name...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Nov 2008 15:44:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-if-statement-system-problem/m-p/4749859#M1114077</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-06T15:44:40Z</dc:date>
    </item>
    <item>
      <title>Re: wrong if statement - system problem??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-if-statement-system-problem/m-p/4749860#M1114078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; This is the code, nothing special... and yes, I am in debugger and the message inside the if statement is displayed.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;/CODE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;CODE&gt;
&amp;gt; REPORT  xxx.
&amp;gt; 
&amp;gt; DATA: x TYPE y.
&amp;gt; 
&amp;gt;  CALL FUNCTION 'ZZZ'
&amp;gt;     EXPORTING
&amp;gt;       zz              = X
&amp;gt;    EXCEPTIONS
&amp;gt;      EX1                    = 1.     
&amp;gt;      OTHERS             = 2.
&amp;gt; * Here I check in debugger and sy-subrc = 0 !!!
&amp;gt;   IF sy-subrc NE 0.
&amp;gt; * THIS PART IS EXECUTED!!!
&amp;gt;     MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
&amp;gt;             WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
&amp;gt;   ENDIF.
&amp;gt; &lt;/CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you post the actual code that you are using. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Having a Function Module called 'ZZZ' appears to be a bit strange to me. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also a field of type y would not syntax check. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you playing with ABAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you been hiding code. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is not a straight forward question to me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Nov 2008 15:50:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-if-statement-system-problem/m-p/4749860#M1114078</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-06T15:50:02Z</dc:date>
    </item>
  </channel>
</rss>

