<?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: Authorization check approach needed for custom transaction code. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check-approach-needed-for-custom-transaction-code/m-p/10940134#M1892189</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;Will the following approach help solve your problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us assign one role per user-interface:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;1. Employee Role: P_TRAVL -&amp;gt; AUTHP = O&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;2. Accountant/Manager Role : P_TRAVL -&amp;gt; AUTHP = E&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;In the report, while &lt;SPAN style="color: #333333; font-size: 12px;"&gt;custom coding authorization check, if AUTHP retrieved value is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;O -&amp;gt; display filtered content&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;E -&amp;gt; display whole content&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;Let me know.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Feb 2015 11:52:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2015-02-18T11:52:04Z</dc:date>
    <item>
      <title>Authorization check approach needed for custom transaction code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check-approach-needed-for-custom-transaction-code/m-p/10940132#M1892187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have developed a custom report to display TRIPS (Travel Requests/Expenses). Also a transaction code has been assigned to it. The requirement is that, based on the user who is executing the report, the output should be displayed accordingly.&lt;/P&gt;&lt;P&gt;a. If the user is an Employee, then only his/her trips needs to be displayed.&lt;/P&gt;&lt;P&gt;b. If the user is an Accountant/Manager, then the report must display all the trips. Other Employees' as well as their own.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our understanding was that a combination of the authorization object P_TRAVL and an authorization check code in the report program will be sufficient.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are 3 different roles existing in the system for Employee, Accountant and Manager. The P_TRAVL object used in these roles has the below values:&lt;/P&gt;&lt;P&gt;1. Employee Role : P_TRAVL -&amp;gt; AUTHP = O&lt;/P&gt;&lt;P&gt;2. Accountant Role : P_TRAVL -&amp;gt; AUTHP = E,O&lt;/P&gt;&lt;P&gt;3. Manager Role : P_TRAVL -&amp;gt; AUTHP = E,O&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the authorization check part of the report program, we are utilizing the FM "SUSR_USER_AUTH_FOR_OBJ_GET" by passing the User Name and the authorization object P_TRAVL and retrieving the AUTHP values and the profile name. Depending on these values (E or O) we get to know if it is an Employee or Accountant/Manager. Then the output is displayed accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The scenario where the above logic fails is when a person is assigned both the roles i.e. Employee's as well as Accountant/Manager's roles. In this scenario the Employee's validation restricts the output to be displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also now the client has come back saying that only the P_TRAVL object needs to be utilized and the custom coding authorization check should be removed. The reason being, when the custom transaction code for this report is put in a separate role which is meant for reporting purpose they are facing issues one of them being the above mentioned scenario which is failing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QUERY : How can we put restrictions in the report only on the basis of P_TRAVL object? OR Is there some other approach to achieve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please do share your expertise/experience. Do let me know if any more details are to be provided.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2015 09:56:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check-approach-needed-for-custom-transaction-code/m-p/10940132#M1892187</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-02-18T09:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization check approach needed for custom transaction code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check-approach-needed-for-custom-transaction-code/m-p/10940133#M1892188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vishwanath,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I understood your issue correctly,try creating two T-Codes and then validating within the program based on the T Code in addition to the existing validations.Depending on the need you can add the required tcodes in the User Profile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;K.Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2015 11:38:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check-approach-needed-for-custom-transaction-code/m-p/10940133#M1892188</guid>
      <dc:creator>kiran_k8</dc:creator>
      <dc:date>2015-02-18T11:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization check approach needed for custom transaction code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check-approach-needed-for-custom-transaction-code/m-p/10940134#M1892189</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;Will the following approach help solve your problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us assign one role per user-interface:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;1. Employee Role: P_TRAVL -&amp;gt; AUTHP = O&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;2. Accountant/Manager Role : P_TRAVL -&amp;gt; AUTHP = E&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;In the report, while &lt;SPAN style="color: #333333; font-size: 12px;"&gt;custom coding authorization check, if AUTHP retrieved value is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;O -&amp;gt; display filtered content&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;E -&amp;gt; display whole content&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;Let me know.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2015 11:52:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check-approach-needed-for-custom-transaction-code/m-p/10940134#M1892189</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-02-18T11:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization check approach needed for custom transaction code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check-approach-needed-for-custom-transaction-code/m-p/10940135#M1892190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kiran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure if you got the requirement fully, but two transactions is not what we are looking for.&lt;/P&gt;&lt;P&gt;The report output needs to be displaying values as per the user, Employee to see only his trips and Manager/Accountant to be able to view all the trips.&lt;/P&gt;&lt;P&gt;Thanks for sharing your thoughts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2015 13:23:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check-approach-needed-for-custom-transaction-code/m-p/10940135#M1892190</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-02-18T13:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization check approach needed for custom transaction code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check-approach-needed-for-custom-transaction-code/m-p/10940136#M1892191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Utkarsha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The existing approach is inclusive of what you have mentioned. If you look at the below part that I had mentioned in my post:&lt;/P&gt;&lt;P&gt;"&lt;SPAN style="color: #333333; font-size: 12px;"&gt;In the authorization check part of the report program, we are utilizing the FM "SUSR_USER_AUTH_FOR_OBJ_GET" by passing the User Name and the authorization object P_TRAVL and retrieving the AUTHP values and the profile name. Depending on these values (E or O) we get to know if it is an Employee or Accountant/Manager. Then the output is displayed accordingly."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here you have proposed to assign one role per user type. This works fine in the current logic but there are few users having all the types of roles, so this approach fails.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for giving it a try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2015 13:29:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check-approach-needed-for-custom-transaction-code/m-p/10940136#M1892191</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-02-18T13:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization check approach needed for custom transaction code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check-approach-needed-for-custom-transaction-code/m-p/10940137#M1892192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Closing the thread. Solution identified was to handle it at the role level.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Sep 2015 19:11:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check-approach-needed-for-custom-transaction-code/m-p/10940137#M1892192</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-09-17T19:11:02Z</dc:date>
    </item>
  </channel>
</rss>

