<?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 IN BACKGROUND TASK as a different user ID in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/in-background-task-as-a-different-user-id/m-p/7019474#M1497831</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am performing a FM IN BACKGROUND TASK call in a BADI to automate creation of GR. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 1. User ABC performs GR for plant 0001.&lt;/P&gt;&lt;P&gt;Step 2. BADI checks and automates another GR for plant 0002. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is user ABC only has authorization for plant 0001. &lt;/P&gt;&lt;P&gt;During step 2, the BAPI returns an error saying that there is no authorization for plant 0002 as the BADI is triggered by user ABC. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using FM BAPI_GOODSMVT_CREATE. I tried to pass in an ID with SAP_ALL to the PR_UNAME field to indicate this ID as the creator of the GR, but the authorization check still exists. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anyway I can force this background task to be executed by another ID instead of the triggering ID?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Jun 2010 10:37:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-06-18T10:37:34Z</dc:date>
    <item>
      <title>IN BACKGROUND TASK as a different user ID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/in-background-task-as-a-different-user-id/m-p/7019474#M1497831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am performing a FM IN BACKGROUND TASK call in a BADI to automate creation of GR. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 1. User ABC performs GR for plant 0001.&lt;/P&gt;&lt;P&gt;Step 2. BADI checks and automates another GR for plant 0002. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is user ABC only has authorization for plant 0001. &lt;/P&gt;&lt;P&gt;During step 2, the BAPI returns an error saying that there is no authorization for plant 0002 as the BADI is triggered by user ABC. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using FM BAPI_GOODSMVT_CREATE. I tried to pass in an ID with SAP_ALL to the PR_UNAME field to indicate this ID as the creator of the GR, but the authorization check still exists. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anyway I can force this background task to be executed by another ID instead of the triggering ID?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jun 2010 10:37:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/in-background-task-as-a-different-user-id/m-p/7019474#M1497831</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-18T10:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: IN BACKGROUND TASK as a different user ID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/in-background-task-as-a-different-user-id/m-p/7019475#M1497832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure to discuss this with the security team...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The RFC destination you specify in your [call function - in background task|http://help.sap.com/abapdocu_70/en/ABAPCALL_FUNCTION_BACKGROUND_TASK.htm] can be used to specify a different user. Check for example the logical workflow destinations in transaction SM59...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers, harald&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jun 2010 11:16:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/in-background-task-as-a-different-user-id/m-p/7019475#M1497832</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-18T11:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: IN BACKGROUND TASK as a different user ID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/in-background-task-as-a-different-user-id/m-p/7019476#M1497833</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;Please one time done this in the foreground and when you get the error goto the t-code su53.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There it will display which authorisation fails. After that incoporate that authorisation for the User who is running the T-code.&lt;/P&gt;&lt;P&gt;Hope this might be helpful for u .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards,&lt;/P&gt;&lt;P&gt;Sumodh.P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jun 2010 11:54:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/in-background-task-as-a-different-user-id/m-p/7019476#M1497833</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-18T11:54:36Z</dc:date>
    </item>
  </channel>
</rss>

