<?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 Scheduling function module execution in background jobs in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/scheduling-function-module-execution-in-background-jobs/m-p/6034125#M1349817</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 have requirement where in after obtaining all the required inputs from the user we will call an function module to execute it.&lt;/P&gt;&lt;P&gt;The requirement is that the execution of fm shld happen in background and a log must be created showing the user whther it was successful or if it failed with the list of errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you kindly give some input on how to schedule the execution of function module in background job and if scheduled how to create the logs to display the success or error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Warm Regards,&lt;/P&gt;&lt;P&gt;Naveen M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Aug 2009 10:45:48 GMT</pubDate>
    <dc:creator>MNaveen</dc:creator>
    <dc:date>2009-08-11T10:45:48Z</dc:date>
    <item>
      <title>Scheduling function module execution in background jobs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/scheduling-function-module-execution-in-background-jobs/m-p/6034125#M1349817</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 have requirement where in after obtaining all the required inputs from the user we will call an function module to execute it.&lt;/P&gt;&lt;P&gt;The requirement is that the execution of fm shld happen in background and a log must be created showing the user whther it was successful or if it failed with the list of errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you kindly give some input on how to schedule the execution of function module in background job and if scheduled how to create the logs to display the success or error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Warm Regards,&lt;/P&gt;&lt;P&gt;Naveen M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2009 10:45:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/scheduling-function-module-execution-in-background-jobs/m-p/6034125#M1349817</guid>
      <dc:creator>MNaveen</dc:creator>
      <dc:date>2009-08-11T10:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduling function module execution in background jobs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/scheduling-function-module-execution-in-background-jobs/m-p/6034126#M1349818</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;Insert the fm in a new report and schedule a job for this new report, in this way all logs and message will be available in trx SM37.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can use fm JOB_OPEN and JOB_CLOSE in order to create and close a job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2009 10:52:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/scheduling-function-module-execution-in-background-jobs/m-p/6034126#M1349818</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-11T10:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduling function module execution in background jobs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/scheduling-function-module-execution-in-background-jobs/m-p/6034127#M1349819</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;Just create a simple program where you have to call this FM.&lt;/P&gt;&lt;P&gt;Pass the values to FM either by declaring some internal table of selection screen and execute the program in background.&lt;/P&gt;&lt;P&gt;For Message Log, you can use structurre &lt;STRONG&gt;BDCMSGCOLL&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DATA:   MESSTAB LIKE BDCMSGCOLL OCCURS 0 WITH HEADER LINE.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;After Call to FM, read from this internal table as follows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;READ TABLE MESSTAB WITH KEY MSGTYP = &amp;lt;Message Type&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;                                        &lt;STRONG&gt;MSGNR  = &amp;lt;Message Number&amp;gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;regds,&lt;/P&gt;&lt;P&gt;Anil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2009 10:56:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/scheduling-function-module-execution-in-background-jobs/m-p/6034127#M1349819</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-11T10:56:21Z</dc:date>
    </item>
  </channel>
</rss>

