<?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 Doubt on SM36 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-on-sm36/m-p/2097780#M436985</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Group,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one explain me on Back Groud schedulling?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where should I give my prog name in SM36 and also tell me can I write a code inside my prog where in I can start the background schedule.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your time.&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;&lt;/P&gt;&lt;P&gt;Varun.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Apr 2007 11:58:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-05T11:58:14Z</dc:date>
    <item>
      <title>Doubt on SM36</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-on-sm36/m-p/2097780#M436985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Group,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one explain me on Back Groud schedulling?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where should I give my prog name in SM36 and also tell me can I write a code inside my prog where in I can start the background schedule.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your time.&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;&lt;/P&gt;&lt;P&gt;Varun.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 11:58:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-on-sm36/m-p/2097780#M436985</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-05T11:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: Doubt on SM36</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-on-sm36/m-p/2097781#M436986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Varun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to execute the job in background .There are 2 options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.Online&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Goto se38--&amp;gt;enter program name &lt;DEL&gt;&amp;gt;(On menu bar) program&lt;/DEL&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;Exceute--&amp;gt;Background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.Schedule&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Scheduling Background Jobs:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Background jobs are scheduled by Basis administrators using transaction SM36.&lt;/P&gt;&lt;P&gt;2. To run a report in a background, a job needs to be created with a step using the report name &lt;/P&gt;&lt;P&gt;and a variant for selection parameters. It is recommended to create a separate variant for each &lt;/P&gt;&lt;P&gt;scheduled job to produce results for specific dates (e.g. previous month) or organizational units (e.g. company codes).&lt;/P&gt;&lt;P&gt;3. While defining the step, the spool parameters needs to be specified&lt;/P&gt;&lt;P&gt;(Step-&amp;gt; Print Specifications-&amp;gt;Properties) to secure the output of the report and help authorized users to find the spool request. The following parameters needs to be maintained:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a. Time of printing: set to &amp;#147;Send to SAP spooler Only for now&amp;#148;&lt;/P&gt;&lt;P&gt;b. Name &amp;#150; abbreviated name to identify the job output&lt;/P&gt;&lt;P&gt;c. Title &amp;#150; free form description for the report output&lt;/P&gt;&lt;P&gt;d. Authorization &amp;#150; a value defined by Security in user profiles to allow those users to access &lt;/P&gt;&lt;P&gt;this spool request (authorization object S_SPO_ACT, value SPOAUTH). Only users with matching authorization value in their profiles will be able to see the output.&lt;/P&gt;&lt;P&gt;e. Department &amp;#150; set to appropriate department/functional area name. This field can be used in &lt;/P&gt;&lt;P&gt;a search later.&lt;/P&gt;&lt;P&gt;f. Retention period &amp;#150; set to &amp;#147;Do not delete&amp;#148; if the report output needs to be retained for more &lt;/P&gt;&lt;P&gt;than 8 days. Once the archiving/document repository solution is in place the spool requests could &lt;/P&gt;&lt;P&gt;be automatically moved to the archive/repository. Storage Mode parameter on the same screen &lt;/P&gt;&lt;P&gt;could be used to immediately send the output to archive instead of creating a spool request.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Configuring user access:&lt;/P&gt;&lt;P&gt;1. To access a report output created by a background job, a user must have at least access to SP01 (Spool requests) transaction without restriction on the user name (however by itself it will not let the user to see all spool requests). To have that access the user must have S_ADMI_FCD authorization object in the profile with SPOR (or SP01) value of S_ADMI_FCD parameter (maintained by Security).&lt;/P&gt;&lt;P&gt;2. To access a particular job&amp;#146;s output in the spool, the user must have S_SPO_ACT object in the profile with SPOAUTH parameter matching the value used in the Print Specifications of the job &lt;/P&gt;&lt;P&gt;3. Levels of access to the spool (display, print once, reprint, download, etc) are controlled by SPOACTION parameter of S_SPO_ACT. The user must have at least BASE access (display).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On-line reports:&lt;/P&gt;&lt;P&gt;1. Exactly the same configuration can be maintained for any output produced from R/3. If a user clicks &amp;#147;Parameters&amp;#148; button on a SAP Printer selection dialog, it allows to specify all the parameters as described in p. 3 of  &amp;#147;Scheduling background jobs&amp;#148; section. Thus any output created by an online report can be saved and accessed by any user authorized to access that spool request (access restriction provided by the Authorization field of the spool request attributes, see p. 3.d of &amp;#147;Scheduling background jobs&amp;#148; section).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Access to report&amp;#146;s output:&lt;/P&gt;&lt;P&gt;1. A user that had proper access (see Configuring user access above) can retrieve a job/report output through transaction SP01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. The selection screen can be configured by clicking &amp;#147;Further selection criteria&amp;#133;&amp;#148; button (e.g. to bring &amp;#147;Spool request name (suffix 2)&amp;#148; field or hide other  fields).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. The following fields can be used to search for a specific output (Note that  Created By must be blank when searching for scheduled job&amp;#146;s outputs)&lt;/P&gt;&lt;P&gt;a. Spool request name (suffix 2) &amp;#150; corresponds to a spool name in p. 3.b in  &amp;#147;Scheduling background jobs&amp;#148; section above).&lt;/P&gt;&lt;P&gt;b. Date created &amp;#150; to find an output of a job that ran within a certain date range.&lt;/P&gt;&lt;P&gt;c. Title &amp;#150; corresponds to spool Title in p. 3.c in &amp;#147;Scheduling background jobs&amp;#148; section above).&lt;/P&gt;&lt;P&gt;d. Department - corresponds to spool Department in p. 3.e in &amp;#147;Scheduling background jobs&amp;#148; section above).&lt;/P&gt;&lt;P&gt;4. Upon entering selection criteria, the user clicks the Execute button to retrieve the list of matching spool requests.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. From the spool list the user can use several function such as view the content of a spool request, print the spool request, view attributed of the spool request, etc. (some functions may need special authorization, see p.3 in Configuring user access)&lt;/P&gt;&lt;P&gt;a. Click the Print button to print the spool request with the default attributes (usually defined with the job definition). It will print it on a printer that was specified when a job was created.&lt;/P&gt;&lt;P&gt;b. Click the &amp;#147;Print with changed attributed&amp;#148; button to print the spool request with the different attributes (e.g. changing the printer name).&lt;/P&gt;&lt;P&gt;c. Click the &amp;#147;Display contents&amp;#148; button to preview the spool request contents. A Print and Download functions are available from the preview mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have any selection screen parameters for your program you need to enter the values for those fields in runtime. So, if you schedule your program in background to execute then there is no one to do this job. Here comes the concept of Variant. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With variant you define what are the selection field values in the runtime. During runtime the program picks this values and runs the program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you execute your program which has selection fields, you enter the values and then you click on 'GO TO ' tab and 'SAVE AS VARIANT'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you schedule your program in background, give this variant also. Then it will run automatically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this resolves your query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all the helpful answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 12:01:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-on-sm36/m-p/2097781#M436986</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-05T12:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: Doubt on SM36</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-on-sm36/m-p/2097782#M436987</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;When a program is scheduled to run at some particular time without user intervention is called background scheduling. When a job is scheduled, SY-BATCH is set to 'X'. A job can be scheduled through tcode sm36. Here you dont see the screens or the result. The result is directed to the spool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If a job is executed directly and you will see the flow through the screens and the results are visible on your screen wither as ALV or classical report as per the design of the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;chk this:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04s/helpdata/en/c4/3a7f87505211d189550000e829fbbd/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04s/helpdata/en/c4/3a7f87505211d189550000e829fbbd/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3170045"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**reward if helpful&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;madhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 12:02:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-on-sm36/m-p/2097782#M436987</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-05T12:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: Doubt on SM36</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-on-sm36/m-p/2097783#M436988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Varun,&lt;/P&gt;&lt;P&gt; JOB_OPEN AND JOB_SUBMIT AND JOB_CLOSE are the FMs we can use int abap code.&lt;/P&gt;&lt;P&gt;In sm36 enter the job name and enter the scheduling time.&lt;/P&gt;&lt;P&gt;Hope this helps you, reply for queries, Shall post you the updates.&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;Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 12:08:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-on-sm36/m-p/2097783#M436988</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-05T12:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: Doubt on SM36</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-on-sm36/m-p/2097784#M436989</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;In the field "jobname" in SM36 what is the name I have to enter?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 12:11:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-on-sm36/m-p/2097784#M436989</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-05T12:11:01Z</dc:date>
    </item>
    <item>
      <title>Re: Doubt on SM36</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-on-sm36/m-p/2097785#M436990</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;give an appropirate name to identify your job in sm37. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;madhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 12:13:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-on-sm36/m-p/2097785#M436990</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-05T12:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: Doubt on SM36</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-on-sm36/m-p/2097786#M436991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Varun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can give anyname of your choice, but do remember it to check the status of the Background job at a later stage using SM37.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this resolves your query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all the helpful answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 12:16:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-on-sm36/m-p/2097786#M436991</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-05T12:16:51Z</dc:date>
    </item>
  </channel>
</rss>

