<?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 Error message during call transaction in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-during-call-transaction/m-p/1183988#M126518</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;&lt;/P&gt;&lt;P&gt;I want to get the message type after calling the transaction method. I've simulated an input for error, and I expect that the returned message type should be 'E' or 'W'. But it (SY-MSGTY and msgtab-MSGTYP) still returns 'S' even there is error. What's wrong ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call transaction 'VL02N' USING BTAB MODE 'N' UPDATE 'S'.&lt;/P&gt;&lt;P&gt;messages into msgtab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Feb 2006 08:44:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-02-16T08:44:20Z</dc:date>
    <item>
      <title>Error message during call transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-during-call-transaction/m-p/1183988#M126518</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;&lt;/P&gt;&lt;P&gt;I want to get the message type after calling the transaction method. I've simulated an input for error, and I expect that the returned message type should be 'E' or 'W'. But it (SY-MSGTY and msgtab-MSGTYP) still returns 'S' even there is error. What's wrong ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call transaction 'VL02N' USING BTAB MODE 'N' UPDATE 'S'.&lt;/P&gt;&lt;P&gt;messages into msgtab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2006 08:44:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-during-call-transaction/m-p/1183988#M126518</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-16T08:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: Error message during call transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-during-call-transaction/m-p/1183989#M126519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;erase&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Frédéric Girod&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2006 08:46:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-during-call-transaction/m-p/1183989#M126519</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2006-02-16T08:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: Error message during call transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-during-call-transaction/m-p/1183990#M126520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Macy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;S stands for 'Status' and not 'Success' message. These messages indicate errors on occasion. You will need to check the message id and number on receipt of such message to know whats going on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anand.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2006 08:49:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-during-call-transaction/m-p/1183990#M126520</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-16T08:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: Error message during call transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-during-call-transaction/m-p/1183991#M126521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;CALL TRANSACTION tcode USING bdcdata
                   MODE   ctumode
                   UPDATE cupdate
                   MESSAGES INTO messtab.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; LOOP AT messtab.
    msgtype = messtab-msgtyp.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check what the actual tranaction is giving as message for eg. mm01 does give u a sucess message saying data for the matnr is already maintained.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2006 08:50:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-during-call-transaction/m-p/1183991#M126521</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-16T08:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: Error message during call transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-during-call-transaction/m-p/1183992#M126522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Processing without display of screens. If a breakpoint is reached in one of the called transactions, processing is terminated with sy-subrc same as 1001. The field sy-msgty contains "S", sy-msgid contains "00", sy-msgno contains "344", sy-msgv1 contains "SAPMSSY3", and sy-msgv2 contains "0131".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2006 08:50:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-during-call-transaction/m-p/1183992#M126522</guid>
      <dc:creator>hymavathi_oruganti</dc:creator>
      <dc:date>2006-02-16T08:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: Error message during call transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-during-call-transaction/m-p/1183993#M126523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Macy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since the msgtab contains multiple entries, you need to loop the internal table to check for E or W messages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at msgtab and then check for msgty = 'E' or 'W'.&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;P&gt;Lakshman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2006 08:53:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-during-call-transaction/m-p/1183993#M126523</guid>
      <dc:creator>Lakshmant1</dc:creator>
      <dc:date>2006-02-16T08:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: Error message during call transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-during-call-transaction/m-p/1183994#M126524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if a error message is of type success then it will return only 'S'. for ex: in mm01 if the matnr already exists it will show a 'S' type message not 'E' or 'W' in that case u have to manually write the code to verify the values that you pass in.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2006 08:57:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-during-call-transaction/m-p/1183994#M126524</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-16T08:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: Error message during call transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-during-call-transaction/m-p/1183995#M126525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Macy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try with mode E and see any errors are there..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Call transaction 'VL02N' USING BTAB MODE &amp;lt;b&amp;gt;'E'&amp;lt;/b&amp;gt; UPDATE 'S'.
messages into msgtab. 
LOOP at msgtab where msgtyp = 'E'.

"capture error message here

ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2006 09:00:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-during-call-transaction/m-p/1183995#M126525</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-16T09:00:51Z</dc:date>
    </item>
  </channel>
</rss>

