<?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 back ground process in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/back-ground-process/m-p/1708437#M310102</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;  I have report it's take 15 mints to run,becouse i want to run the backround thta report,please help me .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;kanishka&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 29 Oct 2006 08:57:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-29T08:57:50Z</dc:date>
    <item>
      <title>back ground process</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/back-ground-process/m-p/1708437#M310102</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;  I have report it's take 15 mints to run,becouse i want to run the backround thta report,please help me .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;kanishka&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Oct 2006 08:57:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/back-ground-process/m-p/1708437#M310102</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-29T08:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: back ground process</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/back-ground-process/m-p/1708438#M310103</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;&amp;lt;b&amp;gt;here i am running this pgm in evry 15 minutes.&lt;/P&gt;&lt;P&gt;so this is sample code for that.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are two ways for you to handle, &lt;/P&gt;&lt;P&gt;one manually setting up the job through SM36 which is better and convinient, &lt;/P&gt;&lt;P&gt;secondly through program using FM's JOB_OPEN, SUBMIT, JOB_CLOSE.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  Find below steps in doing both:&lt;/P&gt;&lt;P&gt;Procedure 1:&lt;/P&gt;&lt;P&gt;  1. Goto Trans -&amp;gt; SM36&lt;/P&gt;&lt;P&gt;  2. Define a job with the program and variant if any&lt;/P&gt;&lt;P&gt;  3. Click on start condition in application tool bar&lt;/P&gt;&lt;P&gt;  4. In the pop-up window, click on Date/Time&lt;/P&gt;&lt;P&gt;  5. Below you can see a check box "Periodic Job"&lt;/P&gt;&lt;P&gt;  6. Next click on Period Values&lt;/P&gt;&lt;P&gt;  7. Select "Other Period"&lt;/P&gt;&lt;P&gt;  8. Now give '15' for Minutes&lt;/P&gt;&lt;P&gt;  9. Save the job&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Procedure 2 via Program:&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Below is a sample code for the same. Note the ZTEMP2 is the program i am scheduling with 15mins frequency.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;DATA: P_JOBCNT LIKE TBTCJOB-JOBCOUNT,&lt;/P&gt;&lt;P&gt;      L_RELEASE(1) TYPE c.&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                = 'ZTEMP2' &lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      JOBCOUNT               = P_JOBCNT&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      CANT_CREATE_JOB        = 1&lt;/P&gt;&lt;P&gt;      INVALID_JOB_DATA       = 2&lt;/P&gt;&lt;P&gt;      JOBNAME_MISSING        = 3&lt;/P&gt;&lt;P&gt;      OTHERS                 = 4.&lt;/P&gt;&lt;P&gt;   IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;   SUBMIT ZTEMP2 VIA JOB 'ZTEMP2' NUMBER P_JOBCNT&lt;/P&gt;&lt;P&gt;          TO SAP-SPOOL WITHOUT SPOOL DYNPRO &lt;/P&gt;&lt;P&gt;          WITH DESTINATION = 'HPMISPRT'&lt;/P&gt;&lt;P&gt;          WITH IMMEDIATELY = SPACE&lt;/P&gt;&lt;P&gt;          WITH KEEP_IN_SPOOL = 'X' 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                          = P_JOBCNT&lt;/P&gt;&lt;P&gt;       JOBNAME                           = 'ZTEMP2' &lt;/P&gt;&lt;P&gt;       STRTIMMED                         = 'X'&lt;/P&gt;&lt;P&gt;       PRDMINS                          = 15&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      JOB_WAS_RELEASED                  = L_RELEASE&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      CANT_START_IMMEDIATE              = 1&lt;/P&gt;&lt;P&gt;      INVALID_STARTDATE                 = 2&lt;/P&gt;&lt;P&gt;      JOBNAME_MISSING                   = 3&lt;/P&gt;&lt;P&gt;      JOB_CLOSE_FAILED                  = 4&lt;/P&gt;&lt;P&gt;      JOB_NOSTEPS                       = 5&lt;/P&gt;&lt;P&gt;      JOB_NOTEX                         = 6&lt;/P&gt;&lt;P&gt;      LOCK_FAILED                       = 7&lt;/P&gt;&lt;P&gt;      INVALID_TARGET                    = 8&lt;/P&gt;&lt;P&gt;      OTHERS                            = 9.&lt;/P&gt;&lt;P&gt;   IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Hope the above helps you.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;anver&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if helped pls mark points&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;&lt;/P&gt;&lt;P&gt;kindly close the thread if ur issue solved&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Oct 2006 09:00:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/back-ground-process/m-p/1708438#M310103</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2006-10-29T09:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: back ground process</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/back-ground-process/m-p/1708439#M310104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kanishka,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer this link: &amp;lt;a href="http://help.sap.com/saphelp_nw04s/helpdata/en/c4/3a7ed1505211d189550000e829fbbd/frameset.htm"&amp;gt;Background processing&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also have a look at the following example&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
    data: job_no LIKE TBTCJOB-JOBCOUNT.


CALL FUNCTION 'JOB_OPEN'
  EXPORTING
*   DELANFREP              = ' '
*   JOBGROUP               = ' '
    JOBNAME                = 'TEST'
*   SDLSTRTDT              = NO_DATE
*   SDLSTRTTM              = NO_TIME
 IMPORTING
   JOBCOUNT               = job_no
* EXCEPTIONS
*   CANT_CREATE_JOB        = 1
*   INVALID_JOB_DATA       = 2
*   JOBNAME_MISSING        = 3
*   OTHERS                 = 4
          .
IF SY-SUBRC &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.


submit test via job job_name number job_no

CALL FUNCTION 'JOB_CLOSE'
  EXPORTING
*   AT_OPMODE                         = ' '
*   AT_OPMODE_PERIODIC                = ' '
*   CALENDAR_ID                       = ' '
*   EVENT_ID                          = ' '
*   EVENT_PARAM                       = ' '
*   EVENT_PERIODIC                    = ' '
    JOBCOUNT                          = job_no
    JOBNAME                           = 'TEST'
*   LASTSTRTDT                        = NO_DATE
*   LASTSTRTTM                        = NO_TIME
*   PRDDAYS                           = 0
*   PRDHOURS                          = 0
*   PRDMINS                           = 0
*   PRDMONTHS                         = 0
*   PRDWEEKS                          = 0
*   PREDJOB_CHECKSTAT                 = ' '
*   PRED_JOBCOUNT                     = ' '
*   PRED_JOBNAME                      = ' '
*   SDLSTRTDT                         = NO_DATE
*   SDLSTRTTM                         = NO_TIME
*   STARTDATE_RESTRICTION             = BTC_PROCESS_ALWAYS
*   STRTIMMED                         = ' '
*   TARGETSYSTEM                      = ' '
*   START_ON_WORKDAY_NOT_BEFORE       = SY-DATUM
*   START_ON_WORKDAY_NR               = 0
*   WORKDAY_COUNT_DIRECTION           = 0
*   RECIPIENT_OBJ                     =
*   TARGETSERVER                      = ' '
*   DONT_RELEASE                      = ' '
*   TARGETGROUP                       = ' '
* IMPORTING
*   JOB_WAS_RELEASED                  =
* EXCEPTIONS
*   CANT_START_IMMEDIATE              = 1
*   INVALID_STARTDATE                 = 2
*   JOBNAME_MISSING                   = 3
*   JOB_CLOSE_FAILED                  = 4
*   JOB_NOSTEPS                       = 5
*   JOB_NOTEX                         = 6
*   LOCK_FAILED                       = 7
*   INVALID_TARGET                    = 8
*   OTHERS                            = 9
          .
IF SY-SUBRC &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kinshuk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2006 05:55:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/back-ground-process/m-p/1708439#M310104</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-30T05:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: back ground process</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/back-ground-process/m-p/1708440#M310105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kanishka&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;If i understand your query: as the program is 
executing for long, you want to execute the same in 
background.

 We can do that in both ways:
 1. &amp;lt;b&amp;gt;Executing in background manually.&amp;lt;/b&amp;gt;
 2. &amp;lt;b&amp;gt;Executing in background automatically.&amp;lt;/b&amp;gt;

 To execute in background manually, follow these steps:
 1. Transction: SE38
 2. Program Name
 3. Use Menupath: Program -&amp;gt; Execute -&amp;gt; Background. 
    If we have variant we can specify here, orelse we 
can create one by using &amp;lt;b&amp;gt;Variants&amp;lt;/b&amp;gt; button in Application 
toolbar.
 4. Now click on &amp;lt;b&amp;gt;Execute Immediately&amp;lt;/b&amp;gt; button to execute 
immediately or &amp;lt;b&amp;gt;Schedule&amp;lt;/b&amp;gt; to execute at a later time.

 For automatic executions:
 1. We can schedule a job via transaction &amp;lt;b&amp;gt;SM36&amp;lt;/b&amp;gt;.
 2. We can force to execute a program in background 
through another.

 Hope the above info helps you for better understanding.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2006 06:40:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/back-ground-process/m-p/1708440#M310105</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-30T06:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: back ground process</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/back-ground-process/m-p/1708441#M310106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;go to sm36 and create a background job for the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Abdul Hakim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2006 19:05:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/back-ground-process/m-p/1708441#M310106</guid>
      <dc:creator>abdul_hakim</dc:creator>
      <dc:date>2006-10-30T19:05:46Z</dc:date>
    </item>
  </channel>
</rss>

