<?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: using 'SUBMIT' and get messages in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-and-get-messages/m-p/5471007#M1252914</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;use this statement . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT  zprogram&lt;/P&gt;&lt;P&gt;                        VIA JOB text-020 NUMBER l_jobcnt&lt;/P&gt;&lt;P&gt;                        AND RETURN.    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it will work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Apr 2009 04:54:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-17T04:54:12Z</dc:date>
    <item>
      <title>using 'SUBMIT' and get messages</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-and-get-messages/m-p/5471002#M1252909</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 created 2 addon programs.&lt;/P&gt;&lt;P&gt;1 program call another program by 'SUBMIT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I don't get messages outputed by called program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it impossinble?&lt;/P&gt;&lt;P&gt;please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2009 04:26:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-and-get-messages/m-p/5471002#M1252909</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-17T04:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: using 'SUBMIT' and get messages</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-and-get-messages/m-p/5471003#M1252910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please can u elaborate?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it that you want messages from the called program to be appended in the joblog of the calling program?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Coz when you run in foreground you will see messages of both, only in background both the called and calling programs will have seperate joblogs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mansi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2009 04:34:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-and-get-messages/m-p/5471003#M1252910</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-17T04:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: using 'SUBMIT' and get messages</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-and-get-messages/m-p/5471004#M1252911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in the called program while in submit write error messages to spool or list to memory and then after submit read spool using sy-spono or list from memory&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2009 04:37:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-and-get-messages/m-p/5471004#M1252911</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2009-04-17T04:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: using 'SUBMIT' and get messages</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-and-get-messages/m-p/5471005#M1252912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;In Background, If you want to append messages from called program into calling program, then, in the calling program after the submit stmt, you will have to read the joblog for called program looping at the joblog table of called program using write stmt print all the msg .&lt;/P&gt;&lt;P&gt;Then if u see joblog of calling program , it will have messages of called program also.&lt;/P&gt;&lt;P&gt;Check the code below to get pointers:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
"Call the functin module to read the job log of called program in the calling program after the SUBMIT stmt 

    CALL FUNCTION 'BP_JOBLOG_READ'
      EXPORTING
        client                = sy-mandt
        jobcount              = g_jcount
        jobname               = g_jbname
      TABLES
        joblogtbl             = g_t_joblogtbl
      EXCEPTIONS
        cant_read_joblog      = 1
        jobcount_missing      = 2
        joblog_does_not_exist = 3
        joblog_is_empty       = 4
        joblog_name_missing   = 5
        jobname_missing       = 6
        job_does_not_exist    = 7
        OTHERS                = 8.
    IF sy-subrc EQ 0.

* Looping at the internal table for the joblog the messages are reported
* to build the joblog in CLOCO
      LOOP AT g_t_joblogtbl INTO g_wa_joblogtbl.
        MESSAGE g_wa_joblogtbl-text TYPE 'I'.
endloop. 
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mansi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: SAP USER on Apr 17, 2009 6:42 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2009 04:39:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-and-get-messages/m-p/5471005#M1252912</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-17T04:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: using 'SUBMIT' and get messages</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-and-get-messages/m-p/5471006#M1252913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you Mansi and a®s.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A calling proglam is executed in foreground.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't want to display message on screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to get messages in a calling program...&lt;/P&gt;&lt;P&gt;or, I want to get a return code (status Error, Success, Warning).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is it impossible??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Rie.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2009 04:48:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-and-get-messages/m-p/5471006#M1252913</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-17T04:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: using 'SUBMIT' and get messages</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-and-get-messages/m-p/5471007#M1252914</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;use this statement . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT  zprogram&lt;/P&gt;&lt;P&gt;                        VIA JOB text-020 NUMBER l_jobcnt&lt;/P&gt;&lt;P&gt;                        AND RETURN.    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it will work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2009 04:54:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-and-get-messages/m-p/5471007#M1252914</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-17T04:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: using 'SUBMIT' and get messages</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-and-get-messages/m-p/5471008#M1252915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After the Submit stmt, check for the sy-subrc value and accordingly you can report message that 'Sucess/ Error/ Falied ' etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mansi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2009 04:59:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-and-get-messages/m-p/5471008#M1252915</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-17T04:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: using 'SUBMIT' and get messages</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-and-get-messages/m-p/5471009#M1252916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my earlier reply i pointed that in the called program &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if error&lt;/P&gt;&lt;P&gt;   export sy-subrc to memory&lt;/P&gt;&lt;P&gt;endif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after submit in the calling program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import from memory &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2009 04:59:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-and-get-messages/m-p/5471009#M1252916</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2009-04-17T04:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: using 'SUBMIT' and get messages</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-and-get-messages/m-p/5471010#M1252917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you katigiri, Mansi, and a®s.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can get messages.&lt;/P&gt;&lt;P&gt;I use ABAP memory EXPORT/IMPORT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very mach!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2009 05:32:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-and-get-messages/m-p/5471010#M1252917</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-17T05:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: using 'SUBMIT' and get messages</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-and-get-messages/m-p/5471011#M1252918</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 read this thread and I have the same sort of problem, but with a small twist.  I have a custom program that is doing a SUBMIT ...AND RETURN to an SAP standard program.  So, although I want to get the messages, I cannot change the code of the submitted program to put the messages in MEMORY.&lt;/P&gt;&lt;P&gt;When I am in debug, after the return from the submitted program, the message is displayed on the bottom of the screen, but I can't figure out how to capture it so that I can add logic to react to the message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do any of you smart people have any ideas for me?&lt;/P&gt;&lt;P&gt;Katherine Reader&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2009 02:35:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-and-get-messages/m-p/5471011#M1252918</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-24T02:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: using 'SUBMIT' and get messages</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-and-get-messages/m-p/5471012#M1252919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Katherine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SUBMIT xxxxxx&lt;/P&gt;&lt;P&gt;           VIA JOB  (JOBNAME)&lt;/P&gt;&lt;P&gt;           NUMBER  (JOBCOUNT)&lt;/P&gt;&lt;P&gt;           AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION "BP_JOBLOG_READ".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mansi answered about this FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it will work...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2009 02:50:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-and-get-messages/m-p/5471012#M1252919</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-24T02:50:33Z</dc:date>
    </item>
  </channel>
</rss>

