<?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: Warning message conflicts with Error message in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/warning-message-conflicts-with-error-message/m-p/5390207#M1239072</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its is the general behavior you cannot control it instead there is a work around.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;If SY-SUBRC NE 0.
MESSAGE 'XXXX' type 'S' Display like 'W' .           " Success message will be displayed like Warning
leave list-processing.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;If SY-SUBRC NE 0.
MESSAGE 'XXXX' type 'S' Display like 'E' .           " Success message will be displayed like Error
leave list-processing.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both the cases the control will flow to selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gurpreet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Mar 2009 09:27:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-03-30T09:27:59Z</dc:date>
    <item>
      <title>Warning message conflicts with Error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/warning-message-conflicts-with-error-message/m-p/5390199#M1239064</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;I am using F.M. like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ARCHIVOBJECT_STATUS'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          ARCHIV_DOC_ID            = IT_toa02-ARC_DOC_ID&lt;/P&gt;&lt;P&gt;          ARCHIV_ID                = IT_toa02-ARCHIV_ID&lt;/P&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;P&gt;          DOCUMENT_TYPE            = l_doc_type&lt;/P&gt;&lt;P&gt;        TABLES&lt;/P&gt;&lt;P&gt;          AL_COMPONENTS            = IT_COMP&lt;/P&gt;&lt;P&gt;        EXCEPTIONS&lt;/P&gt;&lt;P&gt;          ERROR_ARCHIV             = 1&lt;/P&gt;&lt;P&gt;          ERROR_COMMUNICATIONTABLE = 2&lt;/P&gt;&lt;P&gt;          ERROR_KERNEL             = 3&lt;/P&gt;&lt;P&gt;          OTHERS                   = 4.&lt;/P&gt;&lt;P&gt;      IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;          WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and when ever sy-subrc is not equal to zero. sy-msgty is 'W' (warning) but program still issues the a ERROR message.&lt;/P&gt;&lt;P&gt;Please let me know why is that happening and I want to make it as warning message only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2009 08:47:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/warning-message-conflicts-with-error-message/m-p/5390199#M1239064</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-30T08:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: Warning message conflicts with Error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/warning-message-conflicts-with-error-message/m-p/5390200#M1239065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are populating the error message through the below statement. Try replacing &lt;/P&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE ''W' NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2009 08:52:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/warning-message-conflicts-with-error-message/m-p/5390200#M1239065</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-30T08:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: Warning message conflicts with Error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/warning-message-conflicts-with-error-message/m-p/5390201#M1239066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;After Selection screen is executed you display either Waring message of Error message both will display as Error message on the list.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check in debugging mode what exactly the value of SY-MSGTY is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'ARCHIVOBJECT_STATUS'
EXPORTING
ARCHIV_DOC_ID = IT_toa02-ARC_DOC_ID
ARCHIV_ID = IT_toa02-ARCHIV_ID
IMPORTING
DOCUMENT_TYPE = l_doc_type
TABLES
AL_COMPONENTS = IT_COMP
EXCEPTIONS
ERROR_ARCHIV = 1
ERROR_COMMUNICATIONTABLE = 2
ERROR_KERNEL = 3
OTHERS = 4.
IF SY-SUBRC 0.                            " Set a break point and check at runtime the value of SY-MSGTY.
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;P&gt;OR Use.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF SY-SUBRC 0.                          
MESSAGE ID SY-MSGID TYPE 'W' 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;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Gurpreet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2009 08:53:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/warning-message-conflicts-with-error-message/m-p/5390201#M1239066</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-30T08:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: Warning message conflicts with Error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/warning-message-conflicts-with-error-message/m-p/5390202#M1239067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Write your own message with the  Error option&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;MESSAGE E001(ZM) WITH ' no result found'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2009 08:53:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/warning-message-conflicts-with-error-message/m-p/5390202#M1239067</guid>
      <dc:creator>former_member222860</dc:creator>
      <dc:date>2009-03-30T08:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: Warning message conflicts with Error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/warning-message-conflicts-with-error-message/m-p/5390203#M1239068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The message type might differ it may be a warning or error based on the input of the F.M., I have debugged but no I idea why the message type 'W' is giving an error message and the message is related to some authorization I think.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2009 08:59:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/warning-message-conflicts-with-error-message/m-p/5390203#M1239068</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-30T08:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: Warning message conflicts with Error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/warning-message-conflicts-with-error-message/m-p/5390204#M1239069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Possibly the function itself is triggering the message.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2009 09:01:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/warning-message-conflicts-with-error-message/m-p/5390204#M1239069</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-30T09:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: Warning message conflicts with Error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/warning-message-conflicts-with-error-message/m-p/5390205#M1239070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Messages behave differently according to the context its use.&lt;/P&gt;&lt;P&gt;On selection-screen Error/Warning message behave differently.&lt;/P&gt;&lt;P&gt;Error:cannot execute further.&lt;/P&gt;&lt;P&gt;warning: With enter you as bypass the message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While printing list Warning/Error messages behaves same(i.e as Error message).&lt;/P&gt;&lt;P&gt;Message and return to program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its just the context where you are using the message the behavior differs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gurpreet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2009 09:12:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/warning-message-conflicts-with-error-message/m-p/5390205#M1239070</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-30T09:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: Warning message conflicts with Error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/warning-message-conflicts-with-error-message/m-p/5390206#M1239071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurpreet, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank U, Is there any way to control it .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2009 09:22:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/warning-message-conflicts-with-error-message/m-p/5390206#M1239071</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-30T09:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: Warning message conflicts with Error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/warning-message-conflicts-with-error-message/m-p/5390207#M1239072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its is the general behavior you cannot control it instead there is a work around.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;If SY-SUBRC NE 0.
MESSAGE 'XXXX' type 'S' Display like 'W' .           " Success message will be displayed like Warning
leave list-processing.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;If SY-SUBRC NE 0.
MESSAGE 'XXXX' type 'S' Display like 'E' .           " Success message will be displayed like Error
leave list-processing.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both the cases the control will flow to selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gurpreet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2009 09:27:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/warning-message-conflicts-with-error-message/m-p/5390207#M1239072</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-30T09:27:59Z</dc:date>
    </item>
  </channel>
</rss>

