<?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: eCATT MESSAGE ENDMESSAGE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/ecatt-message-endmessage/m-p/12052196#M1968782</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;It is some time that I used eCatt. In a positive case I used message with "R" = required to check that the whole thing was successful. You can also check the corresponding table / tables.  I did both. And you can  extract the message variables to use them in other scripts.&lt;/P&gt;&lt;P&gt;When I wanted to test something negative I used inline ABAP to asked if the error message was raised. &lt;/P&gt;&lt;P&gt;So two scripts: One for good and one for bad.&lt;/P&gt;</description>
    <pubDate>Mon, 18 Nov 2019 08:58:20 GMT</pubDate>
    <dc:creator>JanSchlichting</dc:creator>
    <dc:date>2019-11-18T08:58:20Z</dc:date>
    <item>
      <title>eCATT MESSAGE ENDMESSAGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ecatt-message-endmessage/m-p/12052194#M1968780</link>
      <description>&lt;P&gt;I've been following the help texts for SECATT to begin automating some tests inside SAP. &lt;/P&gt;
  &lt;P&gt;I have a current eCATT using a FUN ( BAPI* ) which may or may not result in errors. &lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1747758-secatt-1.jpg" /&gt;&lt;/P&gt;
  &lt;P&gt;according to the documentation, &amp;amp; all the forum answers for similar questions the best handler is the MESSAGE ... ENDMESSAGE commands. &lt;/P&gt;
  &lt;P&gt;&lt;A href="https://help.sap.com/viewer/6d9490f96c4b1014a344ceb228bdc85f/7.01.20/en-US/496f57112c293b5be10000000a42189b.html"&gt;https://help.sap.com/viewer/6d9490f96c4b1014a344ceb228bdc85f/7.01.20/en-US/496f57112c293b5be10000000a42189b.html&lt;/A&gt; &lt;/P&gt;
  &lt;P&gt;The issue I am encountering is Error messages are being treated as allowed, unless I set the specific MSGID &amp;amp; MSGNO in the command interface with the Mode = F &amp;amp; Exit = X. &lt;/P&gt;
  &lt;P&gt;Even when I set the MSGTYP = E with the Mode = F &amp;amp; Exit = X, which shouldn't be necessary as that is one of the "Standard rules that require no specification in the command interface"&lt;/P&gt;
  &lt;P&gt;I'm obviously missing something blindingly obvious. Any insights gratefully received. &lt;/P&gt;
  &lt;P&gt;Cheers&lt;/P&gt;
  &lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2019 00:20:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ecatt-message-endmessage/m-p/12052194#M1968780</guid>
      <dc:creator>daniel_mccollum</dc:creator>
      <dc:date>2019-11-18T00:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: eCATT MESSAGE ENDMESSAGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ecatt-message-endmessage/m-p/12052195#M1968781</link>
      <description>&lt;P&gt;From what I can make out in my example above, the MSGTYP = E from the BAPI return is converting to MSGTYP = I when found in the ENDMESSAGE command interface &amp;amp; therefore is not detected as an error &amp;amp; will happily continue. &lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2019 01:42:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ecatt-message-endmessage/m-p/12052195#M1968781</guid>
      <dc:creator>daniel_mccollum</dc:creator>
      <dc:date>2019-11-18T01:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: eCATT MESSAGE ENDMESSAGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ecatt-message-endmessage/m-p/12052196#M1968782</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;It is some time that I used eCatt. In a positive case I used message with "R" = required to check that the whole thing was successful. You can also check the corresponding table / tables.  I did both. And you can  extract the message variables to use them in other scripts.&lt;/P&gt;&lt;P&gt;When I wanted to test something negative I used inline ABAP to asked if the error message was raised. &lt;/P&gt;&lt;P&gt;So two scripts: One for good and one for bad.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2019 08:58:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ecatt-message-endmessage/m-p/12052196#M1968782</guid>
      <dc:creator>JanSchlichting</dc:creator>
      <dc:date>2019-11-18T08:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: eCATT MESSAGE ENDMESSAGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ecatt-message-endmessage/m-p/12052197#M1968783</link>
      <description>&lt;P&gt;Thanks for the insight Jan, thats certainly the approach I'm following until I understand why the documented features aren't reacting as documented in my eCATT&lt;/P&gt;&lt;P&gt;Blatantly copy'n'pasted snipped from a colleagues workaround for the MESSAGE ENDMESSAGE treatment of Error Types as "I"&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*Some logic

IF ( I_VAR1 = ' ' OR I_VAR2 = ' ' ).
	LOGTEXT ( LOGVAR , 'ERR' ).
ELSE.
	FUN ( BAPI_XYZ_1 , BAPI_XYZ_CNTRL_1 ).
	GETLEN ( TT_RETURN , LINES ).
	IF ( LINES &amp;gt; 0 ).
		DO ( LINES ).
			LOGTEXT ( LOGVAR , TT_RETURN[LINES]-MESSAGE ).
		ENDDO.
	ELSE.
		FUN ( BAPI_TRANSACTION_COMMIT , BAPI_TRANSACTION_COMMIT_1 ).
	ENDIF.
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 18 Nov 2019 19:23:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ecatt-message-endmessage/m-p/12052197#M1968783</guid>
      <dc:creator>daniel_mccollum</dc:creator>
      <dc:date>2019-11-18T19:23:48Z</dc:date>
    </item>
  </channel>
</rss>

