<?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: Background in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/background/m-p/2320766#M509472</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;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;In SM37 u can check the status of the jobs that u have assigned to background...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here u mention the job name or the report name to check the status of the job...&lt;/P&gt;&lt;P&gt;After mentioning the job name or program name u just execute it.. ( without any name also u can execute then it gives u all the jobs set by your user name..&lt;/P&gt;&lt;P&gt;the status colud be released,active,finished etc..&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;PRE&gt;&lt;CODE&gt;DATA: P_JOBCNT LIKE TBTCJOB-JOBCOUNT,
      L_RELEASE(1) TYPE c.
 
   CALL FUNCTION 'JOB_OPEN'
     EXPORTING
       JOBNAME                = 'ZTEMP2' 
    IMPORTING
      JOBCOUNT               = P_JOBCNT
    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 ZTEMP2 VIA JOB 'ZTEMP2' NUMBER P_JOBCNT
          TO SAP-SPOOL WITHOUT SPOOL DYNPRO 
          WITH DESTINATION = 'HPMISPRT'
          WITH IMMEDIATELY = SPACE
          WITH KEEP_IN_SPOOL = 'X' AND RETURN.
 
   CALL FUNCTION 'JOB_CLOSE'
     EXPORTING
       JOBCOUNT                          = P_JOBCNT
       JOBNAME                           = 'ZTEMP2' 
       STRTIMMED                         = 'X'
       PRDMINS                          = 15
    IMPORTING
      JOB_WAS_RELEASED                  = L_RELEASE
    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 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;Reshma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 May 2007 08:08:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-16T08:08:09Z</dc:date>
    <item>
      <title>Background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background/m-p/2320765#M509471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Plz send me material abt Background ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2007 08:06:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background/m-p/2320765#M509471</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-16T08:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: Background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background/m-p/2320766#M509472</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;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;In SM37 u can check the status of the jobs that u have assigned to background...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here u mention the job name or the report name to check the status of the job...&lt;/P&gt;&lt;P&gt;After mentioning the job name or program name u just execute it.. ( without any name also u can execute then it gives u all the jobs set by your user name..&lt;/P&gt;&lt;P&gt;the status colud be released,active,finished etc..&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;PRE&gt;&lt;CODE&gt;DATA: P_JOBCNT LIKE TBTCJOB-JOBCOUNT,
      L_RELEASE(1) TYPE c.
 
   CALL FUNCTION 'JOB_OPEN'
     EXPORTING
       JOBNAME                = 'ZTEMP2' 
    IMPORTING
      JOBCOUNT               = P_JOBCNT
    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 ZTEMP2 VIA JOB 'ZTEMP2' NUMBER P_JOBCNT
          TO SAP-SPOOL WITHOUT SPOOL DYNPRO 
          WITH DESTINATION = 'HPMISPRT'
          WITH IMMEDIATELY = SPACE
          WITH KEEP_IN_SPOOL = 'X' AND RETURN.
 
   CALL FUNCTION 'JOB_CLOSE'
     EXPORTING
       JOBCOUNT                          = P_JOBCNT
       JOBNAME                           = 'ZTEMP2' 
       STRTIMMED                         = 'X'
       PRDMINS                          = 15
    IMPORTING
      JOB_WAS_RELEASED                  = L_RELEASE
    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 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;Reshma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2007 08:08:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background/m-p/2320766#M509472</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-16T08:08:09Z</dc:date>
    </item>
    <item>
      <title>Re: Background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background/m-p/2320767#M509473</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;Check the following LInk,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sappoint.com/basis/bckprsng.pdf" target="test_blank"&gt;http://www.sappoint.com/basis/bckprsng.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.planetsap.com/Jobs_main_page.htm" target="test_blank"&gt;http://www.planetsap.com/Jobs_main_page.htm&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.redwood.com/PDF/Epson.pdf" target="test_blank"&gt;http://www.redwood.com/PDF/Epson.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.redwood.com/PDF/Cronacle_for_SAP_solutions.pdf" target="test_blank"&gt;http://www.redwood.com/PDF/Cronacle_for_SAP_solutions.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/21f20e32-0901-0010-65aa-faca8ed043ef" target="test_blank"&gt;https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/21f20e32-0901-0010-65aa-faca8ed043ef&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/people/naresh.pai/blog/2005/06/16/parallel-processing-in-abap&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_webas610/helpdata/en/22/0425c6488911d189490000e829fbbd/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_webas610/helpdata/en/22/0425c6488911d189490000e829fbbd/frameset.htm&lt;/A&gt;&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;Padmam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2007 08:42:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background/m-p/2320767#M509473</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-16T08:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: Background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background/m-p/2320768#M509474</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;pls go through  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.....................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can define and schedule background jobs in two ways from the Job Overview:&lt;/P&gt;&lt;P&gt;· Directly from Transaction SM36. This is best for users already familiar with background job scheduling.&lt;/P&gt;&lt;P&gt;· The Structure linkJob Scheduling Wizard. This is best for users unfamiliar with SAP background job scheduling. To use the Job Wizard, start from Transaction SM36, and either select Goto ® Wizard version or simply use the Job Wizard button.&lt;/P&gt;&lt;P&gt;Procedure&lt;/P&gt;&lt;P&gt;1. Call Transaction SM36 or choose CCMS ® Jobs ® Definition.&lt;/P&gt;&lt;P&gt;2. Assign a job name. Decide on a name for the job you are defining and enter it in the Job Name field.&lt;/P&gt;&lt;P&gt;3. Set the job&amp;#146;s Structure linkpriority, or &amp;#147;Job Class&amp;#148;:&lt;/P&gt;&lt;P&gt;· High priority: Class A&lt;/P&gt;&lt;P&gt;· Medium priority: Class B&lt;/P&gt;&lt;P&gt;· Low priority: Class C&lt;/P&gt;&lt;P&gt;4. In the Target server field, indicate whether to use system load balancing.&lt;/P&gt;&lt;P&gt;· For the system to use system load balancing to automatically select the most efficient application server to use at the moment, leave this field empty.&lt;/P&gt;&lt;P&gt;· To use a particular application server to run the job, enter a specific target server.&lt;/P&gt;&lt;P&gt;5. If spool requests generated by this job are to be sent to someone as email, specify the email address. Choose the Spool list recipient button.&lt;/P&gt;&lt;P&gt;6. Define when the job is to start by choosing Structure linkStart Condition and completing the appropriate selections. If the job is to repeat, or be periodic, check the box at the bottom of this screen.&lt;/P&gt;&lt;P&gt;7. Define the Structure linkjob&amp;#146;s steps by choosing Step, then specify the ABAP program, Structure linkexternal command, or Structure linkexternal program to be used for each step.&lt;/P&gt;&lt;P&gt;8. Save the fully defined job to submit it to the background processing system.&lt;/P&gt;&lt;P&gt;9. When you need to modify, reschedule, or otherwise manipulate a job after you've scheduled it the first time, you'll Structure linkmanage jobs from the Job Overview.&lt;/P&gt;&lt;P&gt;Note: Structure linkRelease the job so that it can run. No job, even those scheduled for immediate processing, can run without first being released.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;II method&lt;/P&gt;&lt;P&gt;There are two ways to schedule a job from a program:&lt;/P&gt;&lt;P&gt;1. the "express" method using the BP_JOBVARIANT_SCHEDULE function module&lt;/P&gt;&lt;P&gt;2. the "full-control" method using the JOB_OPEN, JOB_SUBMIT, and JOB_CLOSE function modules.&lt;/P&gt;&lt;P&gt;With this method, you have full control over such job options as printing, start time options, and so on.&lt;/P&gt;&lt;P&gt;To schedule a job from within a program using the express method, you need only call the BP_JOBVARIANT_SCHEDULE function module.&lt;/P&gt;&lt;P&gt;With BP_JOBVARIANT_OVERVIEW, you can offer your users a simplified display and management function for their "express-method" jobs.&lt;/P&gt;&lt;P&gt;call function 'BP_JOBVARIANT_SCHEDULE'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;title_name = 'Documentation Check' " Displayed as title of&lt;/P&gt;&lt;P&gt;" of scheduling screens&lt;/P&gt;&lt;P&gt;job_name = 'DocuCheck' " Name of background&lt;/P&gt;&lt;P&gt;" processing job&lt;/P&gt;&lt;P&gt;prog_name = 'RSTWGZS2' " Name of ABAP&lt;/P&gt;&lt;P&gt;" report that is to be&lt;/P&gt;&lt;P&gt;" run -- used also to&lt;/P&gt;&lt;P&gt;" select variants&lt;/P&gt;&lt;P&gt;exceptions&lt;/P&gt;&lt;P&gt;no_such_report = 01. " PROG_NAME program&lt;/P&gt;&lt;P&gt;" not found.&lt;/P&gt;&lt;P&gt;call function 'BP_JOBVARIANT_OVERVIEW' " List the jobs that&lt;/P&gt;&lt;P&gt;exporting " have been scheduled&lt;/P&gt;&lt;P&gt;title_name = 'Documentation Check' " Displayed as title&lt;/P&gt;&lt;P&gt;" of overview screen&lt;/P&gt;&lt;P&gt;job_name = 'DokuCheck' " Jobs with this name&lt;/P&gt;&lt;P&gt;" are listed&lt;/P&gt;&lt;P&gt;prog_name = 'RSTWGZS2'&lt;/P&gt;&lt;P&gt;exceptions&lt;/P&gt;&lt;P&gt;no_such_job = 01.&lt;/P&gt;&lt;P&gt;For further information check the link below&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/c4/3a80eb505211d189550000e829fbbd/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/c4/3a80eb505211d189550000e829fbbd/frameset.htm&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.................................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can submit a job in background using SM36 that is one way.&lt;/P&gt;&lt;P&gt;Progamaticcaly ,which is the "full-control" method using the JOB_OPEN, JOB_SUBMIT, and JOB_CLOSE function modules. &lt;/P&gt;&lt;P&gt;With this method, you have full control over such job options as printing, start time options, and so on. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample code for how to use these function modules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&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; &lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add a job step: ABAP program &lt;/P&gt;&lt;UL&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;IF SY-SUBRC &amp;gt; 0. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;ENDIF. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&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; &lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the job status through SM37 transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls reward if it helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vana&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2007 08:54:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background/m-p/2320768#M509474</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-16T08:54:47Z</dc:date>
    </item>
  </channel>
</rss>

