<?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: Role Menu/Function using BAPI in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/role-menu-function-using-bapi/m-p/5087335#M1181130</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Donny&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The RFC-fm you are looking for is &lt;STRONG&gt;PRGN_ACTIVITY_GROUPS_LOAD_RFC.&lt;/STRONG&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;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Jan 2009 03:19:56 GMT</pubDate>
    <dc:creator>uwe_schieferstein</dc:creator>
    <dc:date>2009-01-30T03:19:56Z</dc:date>
    <item>
      <title>Role Menu/Function using BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/role-menu-function-using-bapi/m-p/5087332#M1181127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In an effort to integrate a customers two products, I am trying to list out all of the roles and menus assigned to a role using JAVA/JCO and BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Is this relationship well defined enough to use RFC_GET_TABLE_ENTRIES?  I can get a list of the role names from AGR_DEFINE (or V_AGR_SINGL, V_AGR_COLL) , but the menu/function table is not as obvious.   I noticed the ARG_HIERT table, which look like it has the textual names of the menus. I was thinking I'd get back an ID of a object instead of the textual representation. Or is this not recommended?  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additionally, is there any iterative approach that can be used when listing objects (like roles) where the number of objects is in the 10's of thousands?  The only way I can see now is to fetch all of the names from a view that has only the names, then for each one make a separate call to get the details. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see there are some nice APis in the com.sap.security.api package, but those will require I have an application living on the J2EE side of SAP and I would like to prevent that if at all possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Donny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2009 20:05:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/role-menu-function-using-bapi/m-p/5087332#M1181127</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-27T20:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: Role Menu/Function using BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/role-menu-function-using-bapi/m-p/5087333#M1181128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Donny&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your requirements are not fully clear to me yet perhaps the following fm's might be useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;COLL_ACTGROUPS_GET_ACTGROUPS (RFC enabled) =&amp;gt; get all roles of collective role
MENU_AGR_TREE_READ_HIERARCHY (RFC enabled) =&amp;gt; reads AGR_HIER&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2009 22:14:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/role-menu-function-using-bapi/m-p/5087333#M1181128</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2009-01-27T22:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: Role Menu/Function using BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/role-menu-function-using-bapi/m-p/5087334#M1181129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks of the response it was helpful for me to find the menus to role mapping in MENU_AGR_TREE_READ_HIERARCHY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for the other part of my question, is there a table/view or function I can call to get back just the names of all the roles defined in the system? Something similar to the V_USR_NAME view for users?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to get a list of all the roles ids/names and am currently using AGR_DEFINE in conjunction with RFC_GET_TABLE_ENTRIES and finding the amount of data it transfers is large and causes performance problems.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Donny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jan 2009 22:08:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/role-menu-function-using-bapi/m-p/5087334#M1181129</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-29T22:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: Role Menu/Function using BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/role-menu-function-using-bapi/m-p/5087335#M1181130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Donny&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The RFC-fm you are looking for is &lt;STRONG&gt;PRGN_ACTIVITY_GROUPS_LOAD_RFC.&lt;/STRONG&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;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2009 03:19:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/role-menu-function-using-bapi/m-p/5087335#M1181130</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2009-01-30T03:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: Role Menu/Function using BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/role-menu-function-using-bapi/m-p/5087336#M1181131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PRGN_ACTIVITY_GROUPS_LOAD_RFC has some good data in it I can use, however the one piece of information that I am after is the TCODES assigned to a role.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The information that is contained in the AGR_TCODES table.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a remote function/program I can call that given the name of the role will return all of the tcodes assigned to the role?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PRGN_READ_TRANSACTIONS_ONE_AGR&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;PRGN_1221_READ_TRANSACTIONS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are exactly they type of thing am after, but they cannot be used for 'remote' calls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;Donny Smith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2009 17:40:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/role-menu-function-using-bapi/m-p/5087336#M1181131</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-04T17:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: Role Menu/Function using BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/role-menu-function-using-bapi/m-p/5087337#M1181132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Donny&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yep, there is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PRGN_READ_TRANSACTIONS_AGRS = multiple roles, but not RFC-enabled
MENU_AGR_TREE_READ_HIERARCHY = single role, RFC-enabled
PRGN_STRU_LOAD_NODES =  single role, RFC-enabled&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think fm MENU_AGR_TREE_READ_HIERARCHY is your candidate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2009 04:26:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/role-menu-function-using-bapi/m-p/5087337#M1181132</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2009-02-05T04:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: Role Menu/Function using BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/role-menu-function-using-bapi/m-p/5087338#M1181133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Uwe,&lt;/P&gt;&lt;P&gt;is it possible you have ever tried to save this data back to the system?&lt;/P&gt;&lt;P&gt;Namely the combination of 'MENU_AGR_TREE_READ_HIERARCHY' and 'PRGN_SAVE_ROLE_MENU'?&lt;/P&gt;&lt;P&gt;Or any other combination that would let me replicate a role menu into another role? Ok, not so difficult so far... but I need to hhave this done with structure. I am able to replicate the menu, but then the structure is lost as well as everything else except the transactions. I would love to be able to replicate "any" menu (menu with folders, menu with RFC modules in it etc.).&lt;/P&gt;&lt;P&gt;Any ideas would help,&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Otto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2011 11:31:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/role-menu-function-using-bapi/m-p/5087338#M1181133</guid>
      <dc:creator>OttoGold</dc:creator>
      <dc:date>2011-05-26T11:31:45Z</dc:date>
    </item>
  </channel>
</rss>

