<?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 Catch message from submit abap report in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/catch-message-from-submit-abap-report/m-p/7782750#M1585636</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to catch message from submit abap report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example in abap program &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  zprog00.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS p_test TYPE i DEFAULT 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;  IF p_test &amp;gt; 1.&lt;/P&gt;&lt;P&gt;    MESSAGE e000(38) WITH 'More than one'.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in Function module &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SUBMIT zprog00&lt;/P&gt;&lt;P&gt;          WITH p_test EQ '3'&lt;/P&gt;&lt;P&gt;          EXPORTING LIST TO MEMORY&lt;/P&gt;&lt;P&gt;          AND RETURN.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;&amp;lt;--- In this step I would like to catch error message from Program zprog00* &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Mar 2011 10:52:53 GMT</pubDate>
    <dc:creator>former_member722164</dc:creator>
    <dc:date>2011-03-31T10:52:53Z</dc:date>
    <item>
      <title>Catch message from submit abap report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/catch-message-from-submit-abap-report/m-p/7782750#M1585636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to catch message from submit abap report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example in abap program &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  zprog00.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS p_test TYPE i DEFAULT 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;  IF p_test &amp;gt; 1.&lt;/P&gt;&lt;P&gt;    MESSAGE e000(38) WITH 'More than one'.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in Function module &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SUBMIT zprog00&lt;/P&gt;&lt;P&gt;          WITH p_test EQ '3'&lt;/P&gt;&lt;P&gt;          EXPORTING LIST TO MEMORY&lt;/P&gt;&lt;P&gt;          AND RETURN.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;&amp;lt;--- In this step I would like to catch error message from Program zprog00* &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2011 10:52:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/catch-message-from-submit-abap-report/m-p/7782750#M1585636</guid>
      <dc:creator>former_member722164</dc:creator>
      <dc:date>2011-03-31T10:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: Catch message from submit abap report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/catch-message-from-submit-abap-report/m-p/7782751#M1585637</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;try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  DATA LIST_OBJ TYPE TABLE OF ABAPLIST.
  DATA LIST_ASC TYPE TABLE OF CHAR255.
*
  SUBMIT ZTEST EXPORTING LIST TO MEMORY AND RETURN.
*
  CALL FUNCTION 'LIST_FROM_MEMORY'
    TABLES
      LISTOBJECT = LIST_OBJ
    EXCEPTIONS
      NOT_FOUND  = 1
      OTHERS     = 2.
*
  CALL FUNCTION 'LIST_TO_ASCI'
    TABLES
      LISTASCI           = LIST_ASC
      LISTOBJECT         = LIST_OBJ
    EXCEPTIONS
      EMPTY_LIST         = 1
      LIST_INDEX_INVALID = 2
      OTHERS             = 3.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and have a look into list_asc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Dieter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2011 11:11:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/catch-message-from-submit-abap-report/m-p/7782751#M1585637</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-31T11:11:34Z</dc:date>
    </item>
  </channel>
</rss>

