<?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: Calling Function Module starting new job in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-function-module-starting-new-job/m-p/1163675#M121197</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;Unfortunately It doesn't work - &lt;/P&gt;&lt;P&gt;The function is executed in New task , &lt;/P&gt;&lt;P&gt;but a new job Isn't created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks ,&lt;/P&gt;&lt;P&gt;  N.S.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Jan 2006 09:54:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-01-16T09:54:15Z</dc:date>
    <item>
      <title>Calling Function Module starting new job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-function-module-starting-new-job/m-p/1163668#M121190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hallo !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm calling a 'Z' function module from a class method.&lt;/P&gt;&lt;P&gt;I want the calling will start immediately a new job.&lt;/P&gt;&lt;P&gt;(That I will see in SM37)&lt;/P&gt;&lt;P&gt;(Like we can do with submit statement)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to this ? &lt;/P&gt;&lt;P&gt;(I need the function will start a job - because&lt;/P&gt;&lt;P&gt; I want to save the function log in the Job list.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance, &lt;/P&gt;&lt;P&gt;  N.S.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2006 09:02:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-function-module-starting-new-job/m-p/1163668#M121190</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-16T09:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Function Module starting new job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-function-module-starting-new-job/m-p/1163669#M121191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use this :&lt;/P&gt;&lt;P&gt;BP_JOB_CREATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;srikanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2006 09:04:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-function-module-starting-new-job/m-p/1163669#M121191</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-16T09:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Function Module starting new job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-function-module-starting-new-job/m-p/1163670#M121192</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;You shouls use fm JOB_OPEN to open the job and JOB_CLOSE to schedule the job:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'JOB_OPEN'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    JOBNAME  = &amp;lt;MY_JOB&amp;gt;&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    JOBCOUNT = JOBCOUNT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT &amp;lt;MY_REPORT&amp;gt;&lt;/P&gt;&lt;P&gt;         USER SY-UNAME VIA JOB &amp;lt;MY_JOB&amp;gt; NUMBER JOBCOUNT&lt;/P&gt;&lt;P&gt;         WITH ..... AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'JOB_CLOSE'&lt;/P&gt;&lt;P&gt;  EXPORTING &lt;/P&gt;&lt;P&gt;    JOBCOUNT = JOBCOUNT&lt;/P&gt;&lt;P&gt;    JOBNAME  = &amp;lt;MY_JOB&amp;gt;&lt;/P&gt;&lt;P&gt;    STRTIMMED = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2006 09:11:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-function-module-starting-new-job/m-p/1163670#M121192</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-16T09:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Function Module starting new job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-function-module-starting-new-job/m-p/1163671#M121193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;step : 1&lt;/P&gt;&lt;P&gt;Sample Program: Creating a Job with JOB_OPEN &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;explanation :&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Use JOB_OPEN to create a background job. The function module returns the unique ID number which, together with the job name, is required for identifying the job. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you have "opened" a job, you can add job steps to it with JOB_SUBMIT and submit the job for processing with JOB_CLOSE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Create your job with JOB_OPEN. The module returns a unique job &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;number. Together with the jobname, this number identifies the &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;job. Other parameters are available, but are not required. &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;JOBNAME = 'Freely selectable name for the job(s) you create'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'JOB_OPEN' &lt;/P&gt;&lt;P&gt;EXPORTING &lt;/P&gt;&lt;P&gt;JOBNAME = JOBNAME &lt;/P&gt;&lt;P&gt;IMPORTING &lt;/P&gt;&lt;P&gt;JOBCOUNT = JOBNUMBER &lt;/P&gt;&lt;P&gt;EXCEPTIONS &lt;/P&gt;&lt;P&gt;CANT_CREATE_JOB = 01 &lt;/P&gt;&lt;P&gt;INVALID_JOB_DATA = 02 &lt;/P&gt;&lt;P&gt;JOBNAME_MISSING = 03 &lt;/P&gt;&lt;P&gt;OTHERS = 99. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;gt; 0. &lt;/P&gt;&lt;P&gt;&amp;lt;Error processing&amp;gt; &lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;step 2;&lt;/P&gt;&lt;P&gt;Sample Program: Adding an ABAP Job Step &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;explanation :&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Use JOB_SUBMIT to add a job step to a background job that you have opened with JOB_OPEN. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A job step is an independent unit of work in a job, the execution of an ABAP or external program. Each job step can have its own authorizations user and printer/optical archiving specifications. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Add a job step: ABAP program &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CALL FUNCTION 'JOB_SUBMIT' &lt;/P&gt;&lt;P&gt;EXPORTING &lt;/P&gt;&lt;P&gt;AUTHCKNAM = SY-UNAME " Runtime authorizations &lt;/P&gt;&lt;P&gt;" user&lt;/P&gt;&lt;P&gt;JOBCOUNT = JOBNUMBER " Value from JOB_OPEN&lt;/P&gt;&lt;P&gt;JOBNAME = JOBNAME " Value from JOB_OPEN&lt;/P&gt;&lt;P&gt;REPORT = 'REPORT' " Report to be run&lt;/P&gt;&lt;P&gt;VARIANT = 'VARIANT' " Variant to use with &lt;/P&gt;&lt;P&gt;" report&lt;/P&gt;&lt;P&gt;PRIPARAMS = USER_PRINT_PARAMS " User printing options&lt;/P&gt;&lt;P&gt;ARCPARAMS = USER_ARC_PARAMS " User archiving options&lt;/P&gt;&lt;P&gt;" Both sets of options &lt;/P&gt;&lt;P&gt;" come from &lt;/P&gt;&lt;P&gt;" GET_PRINT_PARAMETERS&lt;/P&gt;&lt;P&gt;EXCEPTIONS &lt;/P&gt;&lt;P&gt;BAD_PRIPARAMS = 01 &lt;/P&gt;&lt;P&gt;INVALID_JOBDATA = 02 &lt;/P&gt;&lt;P&gt;JOBNAME_MISSING = 03 &lt;/P&gt;&lt;P&gt;JOB_NOTEX = 04 &lt;/P&gt;&lt;P&gt;JOB_SUBMIT_FAILED = 05 &lt;/P&gt;&lt;P&gt;LOCK_FAILED = 06 &lt;/P&gt;&lt;P&gt;PROGRAM_MISSING = 07 &lt;/P&gt;&lt;P&gt;PROG_ABAP_AND_EXTPG_SET = 08 &lt;/P&gt;&lt;P&gt;OTHERS = 99. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;step 3&lt;/P&gt;&lt;P&gt;Sample Program: Immediate Start with JOB_CLOSE &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;explanation :&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Use JOB_CLOSE to pass a background job to the background processing system to be run. Once you have "closed" a job, you can no longer add job steps to it or change job/job step specifications. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function module returns an indicator as to whether the job was automatically released or not. A job is automatically released to run only if the user who scheduled the job has RELE release authorization for the authorization object Operations on background jobs. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A job step is an independent unit of work in a job, the execution of an ABAP or external program. Each job step can have its own authorizations user and printer/optical archiving specifications. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Submit job for processing: immediate start &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CALL FUNCTION 'JOB_CLOSE' &lt;/P&gt;&lt;P&gt;EXPORTING &lt;/P&gt;&lt;P&gt;JOBCOUNT = JOBNUMBER " Job identification: number &lt;/P&gt;&lt;P&gt;JOBNAME = JOBNAME " and name. &lt;/P&gt;&lt;P&gt;STRTIMMED = 'X' " Schedules the job for &lt;/P&gt;&lt;P&gt;" immediate start. The job &lt;/P&gt;&lt;P&gt;" is started immediately &lt;/P&gt;&lt;P&gt;" only if the user has the &lt;/P&gt;&lt;P&gt;" RELE authorization to &lt;/P&gt;&lt;P&gt;" release a job to run. &lt;/P&gt;&lt;P&gt;IMPORTING &lt;/P&gt;&lt;P&gt;JOB_WAS_RELEASED = JOB_RELEASED " If user has authorization &lt;/P&gt;&lt;P&gt;" to release jobs to run, job &lt;/P&gt;&lt;P&gt;" is automatically released &lt;/P&gt;&lt;P&gt;" when it is scheduled. This &lt;/P&gt;&lt;P&gt;" field is set to 'x' if the &lt;/P&gt;&lt;P&gt;" job has been released. &lt;/P&gt;&lt;P&gt;" Otherwise, the job is sche- &lt;/P&gt;&lt;P&gt;" duled but must be released &lt;/P&gt;&lt;P&gt;" by an administrator before &lt;/P&gt;&lt;P&gt;" it can be started. &lt;/P&gt;&lt;P&gt;EXCEPTIONS &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;CANT_START_IMMEDIATE No longer used. Replaced by IMPORTING &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;parameter JOB_WAS_RELEASED. &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;INVALID_STARTDATE = 01 &lt;/P&gt;&lt;P&gt;JOBNAME_MISSING = 02 &lt;/P&gt;&lt;P&gt;JOB_CLOSE_FAILED = 03 &lt;/P&gt;&lt;P&gt;JOB_NOSTEPS = 04 &lt;/P&gt;&lt;P&gt;JOB_NOTEX = 05 &lt;/P&gt;&lt;P&gt;LOCK_FAILED = 06 &lt;/P&gt;&lt;P&gt;OTHERS = 99. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;gt; 0. &lt;/P&gt;&lt;P&gt;&amp;lt;Error processing&amp;gt; &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;in step 1  we will create a job with name etc..&lt;/P&gt;&lt;P&gt;in step 2 we will assign work to this job&lt;/P&gt;&lt;P&gt;step 3 : we will close the job inorder make it scheduled .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;srikanth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;added descriptions to each steps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2006 09:13:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-function-module-starting-new-job/m-p/1163671#M121193</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-16T09:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Function Module starting new job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-function-module-starting-new-job/m-p/1163672#M121194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks you all for your answers. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I still have a problem - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is that I have a function and &lt;/P&gt;&lt;P&gt;not a report (!!!).&lt;/P&gt;&lt;P&gt;I do not know how to include it in a new job. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not want to call the function from a report &lt;/P&gt;&lt;P&gt;because the function get in it's import parameters &lt;/P&gt;&lt;P&gt;a very large table that I don't want to send &lt;/P&gt;&lt;P&gt;to the report using the memory ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks ,&lt;/P&gt;&lt;P&gt;  N.S.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2006 09:29:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-function-module-starting-new-job/m-p/1163672#M121194</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-16T09:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Function Module starting new job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-function-module-starting-new-job/m-p/1163673#M121195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;call &amp;lt;fn&amp;gt; starting new task.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2006 09:39:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-function-module-starting-new-job/m-p/1163673#M121195</guid>
      <dc:creator>hymavathi_oruganti</dc:creator>
      <dc:date>2006-01-16T09:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Function Module starting new job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-function-module-starting-new-job/m-p/1163674#M121196</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;call &amp;lt;fn&amp;gt; starting new task. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this statement calls fn module parallelly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2006 09:41:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-function-module-starting-new-job/m-p/1163674#M121196</guid>
      <dc:creator>hymavathi_oruganti</dc:creator>
      <dc:date>2006-01-16T09:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Function Module starting new job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-function-module-starting-new-job/m-p/1163675#M121197</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;Unfortunately It doesn't work - &lt;/P&gt;&lt;P&gt;The function is executed in New task , &lt;/P&gt;&lt;P&gt;but a new job Isn't created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks ,&lt;/P&gt;&lt;P&gt;  N.S.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2006 09:54:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-function-module-starting-new-job/m-p/1163675#M121197</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-16T09:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Function Module starting new job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-function-module-starting-new-job/m-p/1163676#M121198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call &amp;lt;fn&amp;gt; in background task&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2006 10:08:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-function-module-starting-new-job/m-p/1163676#M121198</guid>
      <dc:creator>hymavathi_oruganti</dc:creator>
      <dc:date>2006-01-16T10:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Function Module starting new job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-function-module-starting-new-job/m-p/1163677#M121199</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;after I added a "commit work"&lt;/P&gt;&lt;P&gt;statement - the function is called , &lt;/P&gt;&lt;P&gt;but unfortunately no job is created ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe It's not possible ? ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  N.S.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2006 13:10:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-function-module-starting-new-job/m-p/1163677#M121199</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-16T13:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Function Module starting new job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-function-module-starting-new-job/m-p/1163678#M121200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2006 13:12:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-function-module-starting-new-job/m-p/1163678#M121200</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-16T13:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Function Module starting new job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-function-module-starting-new-job/m-p/1163679#M121201</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;We have a 'Z' class. &lt;/P&gt;&lt;P&gt;In It we have a method. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at the end of the method I call a 'Z' RFC&lt;/P&gt;&lt;P&gt;function module (in the same system and client).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I call it like this : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'ZHRF_TM_IN'&lt;/P&gt;&lt;P&gt;  IN BACKGROUND TASK&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    IV_DATE        = SY-DATUM&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    IR_PERNR       =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      IT_TM          = LT_TM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I&amp;lt;u&amp;gt; want that the function will be called in a new JOB.&amp;lt;/u&amp;gt;(because in the function there are "write" statements,&lt;/P&gt;&lt;P&gt;and I want to see them in the list attached to job).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2006 13:19:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-function-module-starting-new-job/m-p/1163679#M121201</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-16T13:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Function Module starting new job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-function-module-starting-new-job/m-p/1163680#M121202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To my knowledge you cannot schedule a function module with sm37 (and the functions JOB_OPEN does nothing else) But you could create a report which does nothing else but calling the function module. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you create a new function which does the jop_open&lt;/P&gt;&lt;P&gt;part like Max explainded. There you call your newly created report which does the function call. &lt;/P&gt;&lt;P&gt;And within your method you call the new function. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2006 17:43:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-function-module-starting-new-job/m-p/1163680#M121202</guid>
      <dc:creator>ChristianFi</dc:creator>
      <dc:date>2006-01-16T17:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Function Module starting new job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-function-module-starting-new-job/m-p/1163681#M121203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christian !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your answer. &lt;/P&gt;&lt;P&gt;I have got the same conclusion - &lt;/P&gt;&lt;P&gt;Apparently ,There is no way to schedule &lt;/P&gt;&lt;P&gt;a function module in SM37. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I did something very similar to what you suggest. &lt;/P&gt;&lt;P&gt;(and I send the tables parameters of the function to the &lt;/P&gt;&lt;P&gt; report by an 'export TO DATABASE' statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks ,&lt;/P&gt;&lt;P&gt;   N.S.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2006 11:14:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-function-module-starting-new-job/m-p/1163681#M121203</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-17T11:14:09Z</dc:date>
    </item>
  </channel>
</rss>

