<?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 Authority Check for programs in batch mode. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-for-programs-in-batch-mode/m-p/1751389#M325830</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 a requirement in which I am suppose to check if user is an authorized user to run the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The two possible ways would be :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Authority check based on tcode.&lt;/P&gt;&lt;P&gt;2. Authoirty check based on authorization groups.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Due to some business rules constraints the second option is not possible, now a user may run a program in background the authorization check will fail since now the tcode will be SM36 and user may be authorized to do so.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas or suggestions would be a great help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Dipesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Dec 2006 10:38:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-08T10:38:41Z</dc:date>
    <item>
      <title>Authority Check for programs in batch mode.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-for-programs-in-batch-mode/m-p/1751389#M325830</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 a requirement in which I am suppose to check if user is an authorized user to run the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The two possible ways would be :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Authority check based on tcode.&lt;/P&gt;&lt;P&gt;2. Authoirty check based on authorization groups.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Due to some business rules constraints the second option is not possible, now a user may run a program in background the authorization check will fail since now the tcode will be SM36 and user may be authorized to do so.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas or suggestions would be a great help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Dipesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2006 10:38:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-for-programs-in-batch-mode/m-p/1751389#M325830</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-08T10:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: Authority Check for programs in batch mode.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-for-programs-in-batch-mode/m-p/1751390#M325831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi dipesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. If it is your z program,&lt;/P&gt;&lt;P&gt;  then inside the z program itself,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. we can check the authorisation&lt;/P&gt;&lt;P&gt;   for the designation/pre-defined tcode (tcode assigned to that program)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; (we have to check authorisation for the pre-defined ztcode,&lt;/P&gt;&lt;P&gt;  and  not the current tcode)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. we can do this using the FM &lt;/P&gt;&lt;P&gt;   AUTHORITY_CHECK_TCODE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Then if the user runs the program,&lt;/P&gt;&lt;P&gt;   either using tcode directly,&lt;/P&gt;&lt;P&gt;                 or sm36 (background)&lt;/P&gt;&lt;P&gt;                 or anything else,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   the z program would do all checks perfectly fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2006 11:30:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-for-programs-in-batch-mode/m-p/1751390#M325831</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-08T11:30:00Z</dc:date>
    </item>
  </channel>
</rss>

