<?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: Execute code on different user account in background in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-code-on-different-user-account-in-background/m-p/8408911#M1645472</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Worlkflow or background events(SM64) are ideally suited for your requirement. Otherwise you may also think of job scheduling if the selection is not problematic or may be capturing the details in a table that a regular job looks at every few minutes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Dec 2011 03:03:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-12-20T03:03:35Z</dc:date>
    <item>
      <title>Execute code on different user account in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-code-on-different-user-account-in-background/m-p/8408909#M1645470</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 have the requirement, whenever a user changes an object, that the system automatically "recalculates" other affected objects in the background. This recalculation should happen immedaitely or at least within seconds after the change occured.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since the user, might not have sufficient authorizations to access the affected objects at all, the background process must run under a different user account (a service user with high authorization level). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I investigated several optiions and found out that submitting a job with different user may be problematic, since the JOB_CLOSE function module requires special authorization for releasing the job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another possibility would be to raise a background event (sm64), on which a background job is registered. This seems to be unproblematic regarding authorizations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this the preferred way of doing it? Or what other ideas you would have?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Bruno&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Dec 2011 20:54:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execute-code-on-different-user-account-in-background/m-p/8408909#M1645470</guid>
      <dc:creator>former_member182148</dc:creator>
      <dc:date>2011-12-19T20:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: Execute code on different user account in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-code-on-different-user-account-in-background/m-p/8408910#M1645471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The background job dependent on the event seems like a good idea, I'd go with that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2011 02:28:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execute-code-on-different-user-account-in-background/m-p/8408910#M1645471</guid>
      <dc:creator>Tamas_Hoznek</dc:creator>
      <dc:date>2011-12-20T02:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: Execute code on different user account in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-code-on-different-user-account-in-background/m-p/8408911#M1645472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Worlkflow or background events(SM64) are ideally suited for your requirement. Otherwise you may also think of job scheduling if the selection is not problematic or may be capturing the details in a table that a regular job looks at every few minutes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2011 03:03:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execute-code-on-different-user-account-in-background/m-p/8408911#M1645472</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-20T03:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: Execute code on different user account in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-code-on-different-user-account-in-background/m-p/8408912#M1645473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK I will go with the event... thanks for your confirmation&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2011 08:13:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execute-code-on-different-user-account-in-background/m-p/8408912#M1645473</guid>
      <dc:creator>former_member182148</dc:creator>
      <dc:date>2011-12-21T08:13:17Z</dc:date>
    </item>
  </channel>
</rss>

