<?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: SUBMIT statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement/m-p/4060785#M970627</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi khushbu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;better u try like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; submit callingprogram&lt;/P&gt;&lt;P&gt;            with s_spart in s_spart&lt;/P&gt;&lt;P&gt;            with p_spmon eq p_spmon&lt;/P&gt;&lt;P&gt;            and return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u have to take care taht the parameters must be same....in the calling and called program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then capture msg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if found helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thnx&lt;/P&gt;&lt;P&gt;prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Jun 2008 10:05:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-27T10:05:11Z</dc:date>
    <item>
      <title>SUBMIT statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement/m-p/4060784#M970626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using SUBMIT to call a program from within another program.&lt;/P&gt;&lt;P&gt;My requirement is to capture the MESSAGES thrown by the called program in the calling program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the code snippet: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: list_tab TYPE TABLE OF abaplist.
Data: begin of wa_text,
      c type c,
      end of wa_text,
      t_text like standard TABLE OF wa_text.

Submit zkh_called_prog EXPORTING LIST TO MEMORY and return.

CALL FUNCTION 'LIST_FROM_MEMORY'
  TABLES
    LISTOBJECT       = list_tab
 EXCEPTIONS
   NOT_FOUND        = 1
   OTHERS           = 2
          .
 
CALL FUNCTION 'LIST_TO_TXT'
 EXPORTING
   LIST_INDEX               = -1
  TABLES
    LISTTXT                  = t_text
   LISTOBJECT               = list_tab
* EXCEPTIONS
*   EMPTY_LIST               = 1
*   LIST_INDEX_INVALID       = 2
*   OTHERS                   = 3
          .

IF sy-subrc = 0.
  CALL FUNCTION 'WRITE_LIST'
    TABLES
      listobject = list_tab.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By this I am able to get the output of WRITE statements in the t_text internal table. But I am not able to get the Error/ Status Messages in this table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone suggest a way of capturing the messages in the calling program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;Khushboo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2008 09:59:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement/m-p/4060784#M970626</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-27T09:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: SUBMIT statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement/m-p/4060785#M970627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi khushbu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;better u try like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; submit callingprogram&lt;/P&gt;&lt;P&gt;            with s_spart in s_spart&lt;/P&gt;&lt;P&gt;            with p_spmon eq p_spmon&lt;/P&gt;&lt;P&gt;            and return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u have to take care taht the parameters must be same....in the calling and called program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then capture msg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if found helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thnx&lt;/P&gt;&lt;P&gt;prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2008 10:05:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement/m-p/4060785#M970627</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-27T10:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: SUBMIT statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement/m-p/4060786#M970628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As  u r submitting a z prog. so u can change the prog. in a way, that all the message (type S,E,W) can be stored in an internal table. and then export that table to a memory id. &lt;/P&gt;&lt;P&gt;Now from calling program after submit statement simply import that table from the memory id and do the further processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Joy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2008 10:08:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement/m-p/4060786#M970628</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-27T10:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: SUBMIT statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement/m-p/4060787#M970629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi  here you can get the values  from the &lt;STRONG&gt;return&lt;/STRONG&gt;  parameters in the submit statement&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2008 10:12:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement/m-p/4060787#M970629</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-27T10:12:15Z</dc:date>
    </item>
  </channel>
</rss>

