<?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: Authority Check in Programs in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-in-programs/m-p/10361290#M1839003</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As in transaction SU24 we managed to get a check which objects are active in transactions, I would like to know if there is a way to do a check on programs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 May 2014 17:48:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-05-26T17:48:51Z</dc:date>
    <item>
      <title>Authority Check in Programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-in-programs/m-p/10361289#M1839002</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;Does anyone know tell me which table I check the check the program authority.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 May 2014 15:04:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-in-programs/m-p/10361289#M1839002</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-05-26T15:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: Authority Check in Programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-in-programs/m-p/10361290#M1839003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As in transaction SU24 we managed to get a check which objects are active in transactions, I would like to know if there is a way to do a check on programs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 May 2014 17:48:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-in-programs/m-p/10361290#M1839003</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-05-26T17:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: Authority Check in Programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-in-programs/m-p/10361291#M1839004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rodrigo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use following code to get it done in programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Say, for object V_VBAK_VKO (which you can see in SU24), you can do it like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 11.818181991577148px; color: #333333;"&gt;AUTHORITY-CHECK OBJECT 'V_VBAK_VKO'&lt;/P&gt;&lt;P style="font-size: 11.818181991577148px; color: #333333;"&gt;ID 'VKORG' FIELD VKORG&lt;/P&gt;&lt;P style="font-size: 11.818181991577148px; color: #333333;"&gt;ID 'VTWEG' FIELD VTWEG&lt;/P&gt;&lt;P style="font-size: 11.818181991577148px; color: #333333;"&gt;ID 'SPART' FIELD SPART.&lt;/P&gt;&lt;P style="font-size: 11.818181991577148px; color: #333333;"&gt;&lt;/P&gt;&lt;P style="font-size: 11.818181991577148px; color: #333333;"&gt;IF sy-subrc ne 0.&lt;/P&gt;&lt;P style="font-size: 11.818181991577148px; color: #333333;"&gt;show an error message.&lt;/P&gt;&lt;P style="font-size: 11.818181991577148px; color: #333333;"&gt;endif.&lt;/P&gt;&lt;P style="font-size: 11.818181991577148px; color: #333333;"&gt;&lt;/P&gt;&lt;P style="font-size: 11.818181991577148px; color: #333333;"&gt;Here , &lt;SPAN style="color: #333333; font-size: 11.818181991577148px;"&gt;VKORG, &lt;SPAN style="color: #333333; font-size: 11.818181991577148px;"&gt;VTWEG&lt;/SPAN&gt; and &lt;SPAN style="color: #333333; font-size: 11.818181991577148px;"&gt;SPART&lt;/SPAN&gt; you have to pass from program and check sy-subrc return value.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11.818181991577148px; color: #333333;"&gt;&lt;/P&gt;&lt;P style="font-size: 11.818181991577148px; color: #333333;"&gt;Hope this helps.&lt;/P&gt;&lt;P style="font-size: 11.818181991577148px; color: #333333;"&gt;&lt;/P&gt;&lt;P style="font-size: 11.818181991577148px; color: #333333;"&gt;&lt;/P&gt;&lt;P style="font-size: 11.818181991577148px; color: #333333;"&gt;Regards,&lt;/P&gt;&lt;P style="font-size: 11.818181991577148px; color: #333333;"&gt;Naveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2014 07:10:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-in-programs/m-p/10361291#M1839004</guid>
      <dc:creator>naveenvishal</dc:creator>
      <dc:date>2014-05-27T07:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: Authority Check in Programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-in-programs/m-p/10361292#M1839005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG class="font-color-meta"&gt;&lt;SPAN class="replyToName"&gt;Hi Rodrigo,&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG class="font-color-meta"&gt;&lt;SPAN class="replyToName"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG class="font-color-meta"&gt;&lt;SPAN class="replyToName"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG class="font-color-meta"&gt;&lt;SPAN class="replyToName"&gt;You need check the AUTHORITY-CHECK statement in a program.Which inturn help you to get the Authorization Object used in the program.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG class="font-color-meta"&gt;&lt;SPAN class="replyToName"&gt;Suppose you want to check for the AUTHORITY-CHECK used in the program present in Z Packages you can used Tcode CODE_SCANNER provide the required parameters and Execute. You will get the list of programs having this statement and Auth Object.&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/460627" /&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thanks &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Rajesh Chowdary&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2014 07:18:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-in-programs/m-p/10361292#M1839005</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-05-27T07:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: Authority Check in Programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-in-programs/m-p/10361293#M1839006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. To create authorization field - SU20. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. To create authorization class and authorization object - SU21.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Create roles - PFCG . This might have to be done by BASIS.&lt;/P&gt;&lt;P&gt;Assign the values allowed for the fields in authorization object for that role.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Finally, check authorization in program .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example if its authorization to execute a transaction ZTCODE, include this in the program for ZTCODE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; AUTHORITY-&lt;/STRONG&gt;&lt;SPAN class="L1S52"&gt;&lt;STRONG&gt;CHECK OBJECT &lt;SPAN class="L1S33"&gt;'S_TCODE'&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52"&gt;ID&lt;/SPAN&gt; &lt;SPAN class="L1S33"&gt;'TCD'&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;FIELD&lt;/SPAN&gt; &lt;SPAN class="L1S33"&gt;'ZTCODE'&lt;/SPAN&gt;.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2014 07:20:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-in-programs/m-p/10361293#M1839006</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-05-27T07:20:29Z</dc:date>
    </item>
  </channel>
</rss>

