<?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 L_TO_CREATE_SINGLE : Error message in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/l-to-create-single-error-message/m-p/7248436#M1527254</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;     I am using the FM L_TO_CREATE_SINGLE. to create a TO. There are three situations in which this FM is run:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Custom Code runs in foreground&lt;/P&gt;&lt;P&gt;2. Custom Code (same code) runs in backgound.&lt;/P&gt;&lt;P&gt;3. The FM is called from LT01. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now for the situation one I am getting an error message. I debugged this and strangely enough the statement for message is &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  MESSAGE W104 WITH LTAP-NLPLA LTAP-MATNR. &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;. &lt;/P&gt;&lt;P&gt;The message type is warning and still I get the error message. Now in situation 2 and 3 same statement is executed. for situation 3 I see I am getting a warning (as per the statement it looks correct). For Situation 2 I am not sure but since the TO is created I am assuming its warning message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the question is why am I getting an error message when the statement clearly says W as the message type. And what can be done to fix it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S.: Previous posts on this do not provide any solution so posting it as new questions. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Anuj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Sep 2010 14:49:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-09-28T14:49:09Z</dc:date>
    <item>
      <title>L_TO_CREATE_SINGLE : Error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/l-to-create-single-error-message/m-p/7248436#M1527254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;     I am using the FM L_TO_CREATE_SINGLE. to create a TO. There are three situations in which this FM is run:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Custom Code runs in foreground&lt;/P&gt;&lt;P&gt;2. Custom Code (same code) runs in backgound.&lt;/P&gt;&lt;P&gt;3. The FM is called from LT01. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now for the situation one I am getting an error message. I debugged this and strangely enough the statement for message is &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  MESSAGE W104 WITH LTAP-NLPLA LTAP-MATNR. &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;. &lt;/P&gt;&lt;P&gt;The message type is warning and still I get the error message. Now in situation 2 and 3 same statement is executed. for situation 3 I see I am getting a warning (as per the statement it looks correct). For Situation 2 I am not sure but since the TO is created I am assuming its warning message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the question is why am I getting an error message when the statement clearly says W as the message type. And what can be done to fix it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S.: Previous posts on this do not provide any solution so posting it as new questions. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Anuj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Sep 2010 14:49:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/l-to-create-single-error-message/m-p/7248436#M1527254</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-28T14:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: L_TO_CREATE_SINGLE : Error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/l-to-create-single-error-message/m-p/7248437#M1527255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you mean that SAP changes the W to E, or that SAP pops up a screen with the Warning, like it does for error messages?  If so, this is a user setting that controls whether pop-up or bottom of screen.  If you con't want the user to see, wrap logic around when it should appear.... you know how the program was called and how it;s being executed...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Sep 2010 16:17:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/l-to-create-single-error-message/m-p/7248437#M1527255</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-28T16:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: L_TO_CREATE_SINGLE : Error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/l-to-create-single-error-message/m-p/7248438#M1527256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The statement that is getting executed is the same. Message W104... &lt;/P&gt;&lt;P&gt;But in one case (LT01) I  get a warning message (it flashes a yellow message at the bottom and you can proceed by hitting enter).  &lt;/P&gt;&lt;P&gt;When the custom code runs I get the message as error (Red message at the bottom).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Sep 2010 19:31:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/l-to-create-single-error-message/m-p/7248438#M1527256</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-28T19:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: L_TO_CREATE_SINGLE : Error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/l-to-create-single-error-message/m-p/7248439#M1527257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;we have decided to use a generic exception (ERROR_MESSAGE) to handle this situation. This is not the cleanest solution but works for our situation. Closing the thread.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Oct 2010 16:25:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/l-to-create-single-error-message/m-p/7248439#M1527257</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-14T16:25:50Z</dc:date>
    </item>
  </channel>
</rss>

