<?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: Submitting program as batch job using different User id not working in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-program-as-batch-job-using-different-user-id-not-working/m-p/7180568#M1518453</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you don't want to manage the batch authorizations&lt;/P&gt;&lt;P&gt;- Create a database table whith fields like purchase requisition number and some log information&lt;/P&gt;&lt;P&gt;- Schedule a job which will read this table and execute your BAPI, schedule this job as periodic-event with a user allowed to manage PR&lt;/P&gt;&lt;P&gt;- In your exit, insert a record into the table and raise the event &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Aug 2010 11:48:07 GMT</pubDate>
    <dc:creator>RaymondGiuseppi</dc:creator>
    <dc:date>2010-08-13T11:48:07Z</dc:date>
    <item>
      <title>Submitting program as batch job using different User id not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-program-as-batch-job-using-different-user-id-not-working/m-p/7180559#M1518444</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;&lt;/P&gt;&lt;P&gt;I have an issue when trying to Submit a program in background with a different user id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;User wants to set deletion indicator in linked purchase requisition automatically when doing the PGI. But as this user does not have ME52N authorization, the deletion indicator is not set when he does the PGI. &lt;/P&gt;&lt;P&gt;So changes were done in user exit MV50AFZ1 so that the bapi , 'BAPI_REQUISITION_DELETE' is called in a program submitted as batch job using a different user id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But even now the issue is not solved. &lt;/P&gt;&lt;P&gt;When the PGI is done, the batch job is executed by the same user id doing the PGI and it is not taking the user id given in SUBMIT...statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please provide helpregarding this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Neethu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Aug 2010 10:47:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-program-as-batch-job-using-different-user-id-not-working/m-p/7180559#M1518444</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-12T10:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: Submitting program as batch job using different User id not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-program-as-batch-job-using-different-user-id-not-working/m-p/7180560#M1518445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SAP says: &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;You can use the optional addition USER to specify a user ID user of the type sy-uname, which is used to execute the background task. &lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; Source: [http://help.sap.com/abapdocu_70/en/ABAPSUBMIT_VIA_JOB.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you post the code for your SUBMIT statement ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Aug 2010 10:55:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-program-as-batch-job-using-different-user-id-not-working/m-p/7180560#M1518445</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-08-12T10:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: Submitting program as batch job using different User id not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-program-as-batch-job-using-different-user-id-not-working/m-p/7180561#M1518446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;- How did you specify an authorization user other than the useru2019s own ID  (AUTHCKNAM parameter of [JOB_SUBMIT|http://help.sap.com/saphelp_scm70/helpdata/en/fa/096d5a543b11d1898e0000e8322d00/content.htm] FM or option of [SUBMIT VIA JOB|http://help.sap.com/abapdocu_70/en/ABAPSUBMIT_VIA_JOB.htm] statement)&lt;/P&gt;&lt;P&gt;- Are actual users allowed for object S_BTCH_NAM ([Note 101146 - Batch: authorization object S_BTCH_JOB, S_BTCH_NAM|https://service.sap.com/sap/support/notes/101146])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Aug 2010 11:18:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-program-as-batch-job-using-different-user-id-not-working/m-p/7180561#M1518446</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2010-08-12T11:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: Submitting program as batch job using different User id not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-program-as-batch-job-using-different-user-id-not-working/m-p/7180562#M1518447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have used SUBMIT option instead of JOB_SUBMIT .&lt;/P&gt;&lt;P&gt;The code is something as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT batch_job&lt;/P&gt;&lt;P&gt;        WITH p_number = number&lt;/P&gt;&lt;P&gt;        WITH SELECTION-TABLE seltab&lt;/P&gt;&lt;P&gt; USER l_uname VIA JOB l_jobname NUMBER l_jobcount&lt;/P&gt;&lt;P&gt; AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are checking the point regarding the authorization object S_BTCH_NAM . But ideally the actual User id is a batch user id. So it shuold have the object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Neethu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Aug 2010 11:59:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-program-as-batch-job-using-different-user-id-not-working/m-p/7180562#M1518447</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-12T11:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: Submitting program as batch job using different User id not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-program-as-batch-job-using-different-user-id-not-working/m-p/7180563#M1518448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Be aware that the job may carry the actual userid (who is not allowed to PR maintenance) but the checked userid will be the authorization Userid stored in the steps of the job - Check via SE37, execute, there the original userid is displayed, select job, display step(s), the userid may differ in this column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Aug 2010 12:11:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-program-as-batch-job-using-different-user-id-not-working/m-p/7180563#M1518448</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2010-08-12T12:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: Submitting program as batch job using different User id not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-program-as-batch-job-using-different-user-id-not-working/m-p/7180564#M1518449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The user who is creating job steps to run under a different user ID than his own requires S_BTCH_NAM. Use SU53 or ST01 authorization trace to find out if this is the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Aug 2010 12:28:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-program-as-batch-job-using-different-user-id-not-working/m-p/7180564#M1518449</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2010-08-12T12:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: Submitting program as batch job using different User id not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-program-as-batch-job-using-different-user-id-not-working/m-p/7180565#M1518450</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 I schedule the job(through PGI) using my user id, the job is being completed. Eventhough in SM37 it is not shown under the batch user id, the job logs show batch user id.&lt;/P&gt;&lt;P&gt;But when I do the PGI using the other user id(who doesn't have authorization to ME52N), the job is in Scheduled status only.We found out that the user doesn't have authorization for SM36.&lt;/P&gt;&lt;P&gt;We feel that this is the reason for the issue. But it may not be possible for business to provide SM36 access to all uers.&lt;/P&gt;&lt;P&gt;Is there any work-around without providing the access?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, we tried explicitly giving FM BP_MODIFY_JOB  after the job , but we don't have option to pass the Selection table as selection parameter here , so this is also another issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Neethu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Aug 2010 08:36:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-program-as-batch-job-using-different-user-id-not-working/m-p/7180565#M1518450</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-13T08:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: Submitting program as batch job using different User id not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-program-as-batch-job-using-different-user-id-not-working/m-p/7180566#M1518451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't give explicit authorization to SM36 but use authorization object S_BTCH_JOB and S_BTCH_ADM, which authorization fails were reported by SU53 or ST01 ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Aug 2010 08:45:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-program-as-batch-job-using-different-user-id-not-working/m-p/7180566#M1518451</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2010-08-13T08:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: Submitting program as batch job using different User id not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-program-as-batch-job-using-different-user-id-not-working/m-p/7180567#M1518452</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;We asked the BASIS team to provide SM36 access at program level only. Even that was not working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But later the user was provided all the accesses(*) with auth. objects S_BTCH_ADM , S_BTCH_JOB  and S_BTCH_NAM .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the changes are working fine. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The batch job is getting completed and the deletion indicator in PR is set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But as I previously mentioned , business may not be ready to give these many accesses to all the users.&lt;/P&gt;&lt;P&gt;Is there any thing we can propose instead?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Neethu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Aug 2010 11:26:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-program-as-batch-job-using-different-user-id-not-working/m-p/7180567#M1518452</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-13T11:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: Submitting program as batch job using different User id not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-program-as-batch-job-using-different-user-id-not-working/m-p/7180568#M1518453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you don't want to manage the batch authorizations&lt;/P&gt;&lt;P&gt;- Create a database table whith fields like purchase requisition number and some log information&lt;/P&gt;&lt;P&gt;- Schedule a job which will read this table and execute your BAPI, schedule this job as periodic-event with a user allowed to manage PR&lt;/P&gt;&lt;P&gt;- In your exit, insert a record into the table and raise the event &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Aug 2010 11:48:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-program-as-batch-job-using-different-user-id-not-working/m-p/7180568#M1518453</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2010-08-13T11:48:07Z</dc:date>
    </item>
  </channel>
</rss>

