<?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 Run Coding as different user in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-coding-as-different-user/m-p/5220954#M1207330</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like a user to run a report. This report calls a SAP standard BAPI which performs an authorization check before executing its functionality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The user has no authorization to perform the action of the BAPI and so it fails. Anyhow we dont want to add this function to the user role. He would be able to do other things then as well then which are restricted by our program logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it somehow possible to run a method or function module with a different user? So not the user who runs the BAPI but the program itself takes care of the authorization?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We cant do it via batch input as it needs to be online.&lt;/P&gt;&lt;P&gt;The only option I see is running the BAPI not internally but via a RFC destination with a loop back on the system to use the RFC user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if somebody has a cool and smart idea I would appreciate it very much!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Hendrik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 14 Feb 2009 18:03:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-14T18:03:52Z</dc:date>
    <item>
      <title>Run Coding as different user</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-coding-as-different-user/m-p/5220954#M1207330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like a user to run a report. This report calls a SAP standard BAPI which performs an authorization check before executing its functionality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The user has no authorization to perform the action of the BAPI and so it fails. Anyhow we dont want to add this function to the user role. He would be able to do other things then as well then which are restricted by our program logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it somehow possible to run a method or function module with a different user? So not the user who runs the BAPI but the program itself takes care of the authorization?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We cant do it via batch input as it needs to be online.&lt;/P&gt;&lt;P&gt;The only option I see is running the BAPI not internally but via a RFC destination with a loop back on the system to use the RFC user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if somebody has a cool and smart idea I would appreciate it very much!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Hendrik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Feb 2009 18:03:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-coding-as-different-user/m-p/5220954#M1207330</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-14T18:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: Run Coding as different user</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-coding-as-different-user/m-p/5220955#M1207331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the BAPI is RFC enabled, run it and logon as a generic user with just the authorizations needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Feb 2009 18:49:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-coding-as-different-user/m-p/5220955#M1207331</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-14T18:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: Run Coding as different user</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-coding-as-different-user/m-p/5220956#M1207332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess you can use a Remote Function call with the destination as the same system, and call make the Function to execute.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;call &amp;lt;RFC&amp;gt;
destination &amp;lt;self&amp;gt;...&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Feb 2009 19:37:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-coding-as-different-user/m-p/5220956#M1207332</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2009-02-14T19:37:48Z</dc:date>
    </item>
  </channel>
</rss>

