<?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: Submit batch job daynamically using batch user id in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-batch-job-daynamically-using-batch-user-id/m-p/6995686#M1494476</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This could be an authorization issue: To submit jobs for others users a special authorization is required (Batch-Administrator-Authorization). For your own user this authorization is not required, which would explain why you program does work for your own user but not for others ==&amp;gt; Check if you have got the Batch-Administrator-Authorization (S_BTCH_ADM).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Jun 2010 13:57:58 GMT</pubDate>
    <dc:creator>adrian_dorn</dc:creator>
    <dc:date>2010-06-04T13:57:58Z</dc:date>
    <item>
      <title>Submit batch job daynamically using batch user id</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-batch-job-daynamically-using-batch-user-id/m-p/6995683#M1494473</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;I need to submit the background job dynamically from ABAP program with BATCH user id. &lt;/P&gt;&lt;P&gt;I have created new program. Users will execute program in foreground.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Had issue with USER id. If I give my user id then batch job successfully creating. If I give u2018BAICHu2019 id then it is giving the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I doing any thing wrong here?&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Open Job&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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 = w_jobcount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SUBMIT zrufilep WITH p_file1 = sourfile&lt;/P&gt;&lt;P&gt;                    WITH p_file2 = destfile&lt;/P&gt;&lt;P&gt;                    VIA JOB jobname NUMBER w_jobcount&lt;/P&gt;&lt;P&gt;                    USER 'BATCH_FI'&lt;/P&gt;&lt;P&gt;                    AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Schedule and close job.&lt;/P&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  = w_jobcount&lt;/P&gt;&lt;P&gt;          jobname   = jobname&lt;/P&gt;&lt;P&gt;          sdlstrtdt = sy-datum&lt;/P&gt;&lt;P&gt;          sdlstrttm = sy-uzeit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jun 2010 10:35:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-batch-job-daynamically-using-batch-user-id/m-p/6995683#M1494473</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-04T10:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: Submit batch job daynamically using batch user id</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-batch-job-daynamically-using-batch-user-id/m-p/6995684#M1494474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the error you are getting ? Anyways does the user 'BATCH_FI' exist in your system, if yes does it have the reqd. authorizations ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jun 2010 10:41:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-batch-job-daynamically-using-batch-user-id/m-p/6995684#M1494474</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-06-04T10:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: Submit batch job daynamically using batch user id</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-batch-job-daynamically-using-batch-user-id/m-p/6995685#M1494475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, ID existed in system. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SUBMIT statatment returning sy-subrc '8' means 'Error during scheduling, i.e. when accessing JOB_SUBMIT internally'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried not only with 'BATCH_FI' id, tried with other ids also who have all authroizations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i execute the program with BATCH_FI (Login with BATCH_FI) then its working fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jun 2010 10:48:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-batch-job-daynamically-using-batch-user-id/m-p/6995685#M1494475</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-04T10:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: Submit batch job daynamically using batch user id</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-batch-job-daynamically-using-batch-user-id/m-p/6995686#M1494476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This could be an authorization issue: To submit jobs for others users a special authorization is required (Batch-Administrator-Authorization). For your own user this authorization is not required, which would explain why you program does work for your own user but not for others ==&amp;gt; Check if you have got the Batch-Administrator-Authorization (S_BTCH_ADM).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jun 2010 13:57:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-batch-job-daynamically-using-batch-user-id/m-p/6995686#M1494476</guid>
      <dc:creator>adrian_dorn</dc:creator>
      <dc:date>2010-06-04T13:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: Submit batch job daynamically using batch user id</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-batch-job-daynamically-using-batch-user-id/m-p/6995687#M1494477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes,,issue with authorization. I have tested with bsis profile id. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is working. Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jun 2010 19:06:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-batch-job-daynamically-using-batch-user-id/m-p/6995687#M1494477</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-04T19:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: Submit batch job daynamically using batch user id</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-batch-job-daynamically-using-batch-user-id/m-p/6995688#M1494478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can any body tell me if that authorization is given to the user, can he submit any other job from front end?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see if he can, it will conflict security issues of business. So If he is not permitted to execute these kind of statements in any other program, would he be confined to using diff user in this program only?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or is there any other way-out to confine the user for getting this authorization for a single T-code or such?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 06:09:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-batch-job-daynamically-using-batch-user-id/m-p/6995688#M1494478</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-10-16T06:09:29Z</dc:date>
    </item>
  </channel>
</rss>

