<?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 Using SUBMIT and getting the results back in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-and-getting-the-results-back/m-p/7272877#M1530381</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;I need to call a BAPI on-line (not in the background) using a different User ID as the one that's logged in.  I read from the threads the use of SUBMIT ...VIA JOB.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNTION 'OPEN JOB'...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT zsubmitted_program&lt;/P&gt;&lt;P&gt;       VIA JOB     l_jobname&lt;/P&gt;&lt;P&gt;           NUMBER  l_jobcount&lt;/P&gt;&lt;P&gt;           USER    i_user       ====&amp;gt; changed User ID&lt;/P&gt;&lt;P&gt;       TO SAP-SPOOL WITHOUT SPOOL DYNPRO&lt;/P&gt;&lt;P&gt;           SPOOL PARAMETERS ls_params&lt;/P&gt;&lt;P&gt;              AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNTION 'JOB_CLOSE'...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Questions:&lt;/P&gt;&lt;P&gt;1. How would I know that the job is finished?&lt;/P&gt;&lt;P&gt;2. How do I retrieve the messages returned by the BAPI so I can present it on the screen?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;Huntr&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Sep 2010 03:23:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-09-16T03:23:27Z</dc:date>
    <item>
      <title>Using SUBMIT and getting the results back</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-and-getting-the-results-back/m-p/7272877#M1530381</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;I need to call a BAPI on-line (not in the background) using a different User ID as the one that's logged in.  I read from the threads the use of SUBMIT ...VIA JOB.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNTION 'OPEN JOB'...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT zsubmitted_program&lt;/P&gt;&lt;P&gt;       VIA JOB     l_jobname&lt;/P&gt;&lt;P&gt;           NUMBER  l_jobcount&lt;/P&gt;&lt;P&gt;           USER    i_user       ====&amp;gt; changed User ID&lt;/P&gt;&lt;P&gt;       TO SAP-SPOOL WITHOUT SPOOL DYNPRO&lt;/P&gt;&lt;P&gt;           SPOOL PARAMETERS ls_params&lt;/P&gt;&lt;P&gt;              AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNTION 'JOB_CLOSE'...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Questions:&lt;/P&gt;&lt;P&gt;1. How would I know that the job is finished?&lt;/P&gt;&lt;P&gt;2. How do I retrieve the messages returned by the BAPI so I can present it on the screen?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;Huntr&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Sep 2010 03:23:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-and-getting-the-results-back/m-p/7272877#M1530381</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-16T03:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: Using SUBMIT and getting the results back</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-and-getting-the-results-back/m-p/7272878#M1530382</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;Which BAPI you are trying to run ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Sep 2010 03:55:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-and-getting-the-results-back/m-p/7272878#M1530382</guid>
      <dc:creator>nirajgadre</dc:creator>
      <dc:date>2010-09-16T03:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: Using SUBMIT and getting the results back</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-and-getting-the-results-back/m-p/7272879#M1530383</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;I will be wrapping BAPI_MATERIAL_SAVEDATA into a Z program to run it and use the method mentioned above.  I need to know by that method when the batch job is done and how to retrieve the results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a function module to retrieve the job status or log? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also I think if i write the bapi results in the spool, I should be able to retrieve the spool.  What is the function module to do so?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Huntr&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Sep 2010 17:15:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-and-getting-the-results-back/m-p/7272879#M1530383</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-17T17:15:56Z</dc:date>
    </item>
  </channel>
</rss>

