<?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 job not executing... pls help in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-not-executing-pls-help/m-p/5265426#M1215832</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe you could check the authorizations. In the function module documentation, it says:&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.  &lt;EM&gt;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;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rugmani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Mar 2009 23:30:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-03-12T23:30:10Z</dc:date>
    <item>
      <title>background job not executing... pls help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-not-executing-pls-help/m-p/5265425#M1215831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to schedule and execute a batch job with the start date and time with another program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In program1 im doing the below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;job_open &lt;/P&gt;&lt;P&gt;   getting job_count&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'GET_PRINT_PARAMETERS'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      no_dialog              = abap_true&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      out_parameters         = ls_params&lt;/P&gt;&lt;P&gt;      valid                  = lv_valid&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      archive_info_not_found = 1&lt;/P&gt;&lt;P&gt;      invalid_print_params   = 2&lt;/P&gt;&lt;P&gt;      invalid_archive_params = 3&lt;/P&gt;&lt;P&gt;      OTHERS                 = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SUBMIT (c_test)                 VIA JOB  lv_jobname&lt;/P&gt;&lt;P&gt;                                  NUMBER  lv_jobcount&lt;/P&gt;&lt;P&gt;                               TO  SAP-SPOOL WITHOUT SPOOL DYNPRO&lt;/P&gt;&lt;P&gt;                                   SPOOL  PARAMETERS ls_params&lt;/P&gt;&lt;P&gt;                                   AND RETURN.&lt;/P&gt;&lt;P&gt;&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             = lv_jobcount&lt;/P&gt;&lt;P&gt;      JOBNAME              = lv_jobname&lt;/P&gt;&lt;P&gt;      LASTSTRTDT           = p_sdate&lt;/P&gt;&lt;P&gt;      LASTSTRTTM           = p_stime&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     targetserver         = lv_targetserver&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;&lt;/P&gt;&lt;P&gt;in the job_closei gave start date and time, but the job is getting scheduled but not to released/cancelled status.&lt;/P&gt;&lt;P&gt;I want the job to happen at that given time and date,&lt;/P&gt;&lt;P&gt;is there anything im missing,&lt;/P&gt;&lt;P&gt;pls help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2009 23:18:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-not-executing-pls-help/m-p/5265425#M1215831</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-12T23:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: background job not executing... pls help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-not-executing-pls-help/m-p/5265426#M1215832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe you could check the authorizations. In the function module documentation, it says:&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.  &lt;EM&gt;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;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rugmani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2009 23:30:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-not-executing-pls-help/m-p/5265426#M1215832</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-12T23:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: background job not executing... pls help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-not-executing-pls-help/m-p/5265427#M1215833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rajan,&lt;/P&gt;&lt;P&gt;In the same documentation it says : Note:&amp;nbsp;&amp;nbsp;if a user does not have the authorization to release a job, then the job is scheduled with the status planned. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now after i run this program , and check SM37, the status is scheduled. so this tells not an authorization issue.&lt;/P&gt;&lt;P&gt;Also i can go and schedule on a given time from SM36. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now after reading that i also passed the parameter JOB_WAS_RELEASED importing  it is geting blank value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but documentation says,  it shud be X if Job is released.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any idea pls....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Niraja&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2009 23:37:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-not-executing-pls-help/m-p/5265427#M1215833</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-12T23:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: background job not executing... pls help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-not-executing-pls-help/m-p/5265428#M1215834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Niraja,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only suggestion I have is to debug the job_close function. Within this function, it makes a call to another function   'BP_JOB_MODIFY'. The sy-subrc value of this function is what sets the job status.&lt;/P&gt;&lt;P&gt;You could try debugging this and checking where your code is failing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry, no other ideas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rugmani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2009 23:50:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-not-executing-pls-help/m-p/5265428#M1215834</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-12T23:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: background job not executing... pls help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-not-executing-pls-help/m-p/5265429#M1215835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;job_close does all, i was giving wrong parameter value&lt;/P&gt;&lt;P&gt;it worked&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Apr 2009 19:35:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-not-executing-pls-help/m-p/5265429#M1215835</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-06T19:35:26Z</dc:date>
    </item>
  </channel>
</rss>

