<?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 PFCG Authorization Profiles in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/pfcg-authorization-profiles/m-p/14205156#M2042413</link>
    <description>&lt;P&gt;Hi ABAP experts.&lt;/P&gt;&lt;P&gt;I am creating an ABAP program to do a mass update of roles, rather than manually doing it with transaction PFCG.&amp;nbsp; I am removing manually-added T-Codes, then adding them to the Role Menu as Authorization Default using method CL_PFCG_MENU_MODIFY-&amp;gt;MENU_ADD_SERVICE.&amp;nbsp; This works well, changing the AGR_1251-MODIFIED field from 'U' to 'S',&amp;nbsp; However, when the Authorization Profile is generated using&lt;!--   StartFragment    --&gt; &lt;SPAN&gt;PRGN_AUTO_GENERATE_PROFILE_NEW&lt;/SPAN&gt;, it also brings in a lot of unwanted authorizations, such as SE16 bringing in S_TABU_DIS and S_TABU_NAM.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The method&amp;nbsp;CL_PFCG_MENU_MODIFY-&amp;gt;MENU_DELETE_NODE will remove them, but they will come back whenever the profile is regenerated.&lt;/P&gt;&lt;P&gt;The solution is to set the Authorization as 'Inactive', but I cannot find a Method or Function Module that will do this.&amp;nbsp; I tried doing a direct table update (which is not recommended) to AGR_1251, setting the DELETED field to 'X'.&amp;nbsp; When I do this and look at the role in PFCG and in table AGR_1251, it appears to have worked.&amp;nbsp; When someone logs into the system with that role, executes SE16, they should not be able to select any table to display.&amp;nbsp; However, even though the Authorizations are Inactive, they can still display table contents.&lt;/P&gt;&lt;P&gt;Can someone please help me out with how to achieve my goal?&lt;/P&gt;</description>
    <pubDate>Thu, 11 Sep 2025 12:55:17 GMT</pubDate>
    <dc:creator>dan_spitzig</dc:creator>
    <dc:date>2025-09-11T12:55:17Z</dc:date>
    <item>
      <title>PFCG Authorization Profiles</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pfcg-authorization-profiles/m-p/14205156#M2042413</link>
      <description>&lt;P&gt;Hi ABAP experts.&lt;/P&gt;&lt;P&gt;I am creating an ABAP program to do a mass update of roles, rather than manually doing it with transaction PFCG.&amp;nbsp; I am removing manually-added T-Codes, then adding them to the Role Menu as Authorization Default using method CL_PFCG_MENU_MODIFY-&amp;gt;MENU_ADD_SERVICE.&amp;nbsp; This works well, changing the AGR_1251-MODIFIED field from 'U' to 'S',&amp;nbsp; However, when the Authorization Profile is generated using&lt;!--   StartFragment    --&gt; &lt;SPAN&gt;PRGN_AUTO_GENERATE_PROFILE_NEW&lt;/SPAN&gt;, it also brings in a lot of unwanted authorizations, such as SE16 bringing in S_TABU_DIS and S_TABU_NAM.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The method&amp;nbsp;CL_PFCG_MENU_MODIFY-&amp;gt;MENU_DELETE_NODE will remove them, but they will come back whenever the profile is regenerated.&lt;/P&gt;&lt;P&gt;The solution is to set the Authorization as 'Inactive', but I cannot find a Method or Function Module that will do this.&amp;nbsp; I tried doing a direct table update (which is not recommended) to AGR_1251, setting the DELETED field to 'X'.&amp;nbsp; When I do this and look at the role in PFCG and in table AGR_1251, it appears to have worked.&amp;nbsp; When someone logs into the system with that role, executes SE16, they should not be able to select any table to display.&amp;nbsp; However, even though the Authorizations are Inactive, they can still display table contents.&lt;/P&gt;&lt;P&gt;Can someone please help me out with how to achieve my goal?&lt;/P&gt;</description>
      <pubDate>Thu, 11 Sep 2025 12:55:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pfcg-authorization-profiles/m-p/14205156#M2042413</guid>
      <dc:creator>dan_spitzig</dc:creator>
      <dc:date>2025-09-11T12:55:17Z</dc:date>
    </item>
  </channel>
</rss>

