<?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: Function Module to remove user a Role in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-remove-user-a-role/m-p/11299957#M1917627</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Andre,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try with BAPI_USER_ACTGROUPS_DELETE, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Oct 2015 13:05:00 GMT</pubDate>
    <dc:creator>egenoves</dc:creator>
    <dc:date>2015-10-01T13:05:00Z</dc:date>
    <item>
      <title>Function Module to remove user a Role</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-remove-user-a-role/m-p/11299956#M1917626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I'm looking for a functional module that will remove a user from a Role.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've seen that I can add a user by using PRGN_RFC_ADD_USERS, but not sure how to remove a user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 12:55:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-remove-user-a-role/m-p/11299956#M1917626</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-10-01T12:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to remove user a Role</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-remove-user-a-role/m-p/11299957#M1917627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Andre,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try with BAPI_USER_ACTGROUPS_DELETE, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 13:05:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-remove-user-a-role/m-p/11299957#M1917627</guid>
      <dc:creator>egenoves</dc:creator>
      <dc:date>2015-10-01T13:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to remove user a Role</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-remove-user-a-role/m-p/11299958#M1917628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;PRGN_RFC_CHANGE_USERS_IN_AGRS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 13:06:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-remove-user-a-role/m-p/11299958#M1917628</guid>
      <dc:creator>former_member210541</dc:creator>
      <dc:date>2015-10-01T13:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to remove user a Role</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-remove-user-a-role/m-p/11299959#M1917629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.&amp;nbsp; It seems like &lt;SPAN style="color: #333333; font-size: 12px;"&gt;BAPI_USER_ACTGROUPS_DELETE can work, but will delete ALL &lt;/SPAN&gt;&lt;SPAN style="color: #666666; font-family: Arial, Verdana, Tahoma, Helvetica, sans-serif; font-size: 13px;"&gt;activity group assignments.&amp;nbsp; I'm only looking to remove a specified Role.&amp;nbsp; I.e. role should be passed in a parameter.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-family: Arial, Verdana, Tahoma, Helvetica, sans-serif; font-size: 13px;"&gt;But thanks for the answer.&amp;nbsp; Not wrong - just not suited for me.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 13:59:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-remove-user-a-role/m-p/11299959#M1917629</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-10-01T13:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to remove user a Role</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-remove-user-a-role/m-p/11299960#M1917630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems you're right. In fact , the FM&amp;nbsp; BAPI_USER_ACTGROUPS_ASSIGN, assigns roles deleting all of them before !... So you just need to retrive the roles before and then adjust for whatever you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know why these functions have these behavior ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 14:04:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-remove-user-a-role/m-p/11299960#M1917630</guid>
      <dc:creator>egenoves</dc:creator>
      <dc:date>2015-10-01T14:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to remove user a Role</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-remove-user-a-role/m-p/11299961#M1917631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andre,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try to search with &lt;SPAN style="font-size: 13.3333px;"&gt;BAPI_BUPA_ROLE*&lt;/SPAN&gt; probably BAPI_BUPA_ROLE_REMOVE function module will work for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AGR_USERS is table name which stores all roles assigned to User.&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;Abhishek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 14:16:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-remove-user-a-role/m-p/11299961#M1917631</guid>
      <dc:creator>AbhishekSharma</dc:creator>
      <dc:date>2015-10-01T14:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to remove user a Role</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-remove-user-a-role/m-p/11299962#M1917632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Read current user assignment with BAPI_USER_GET_DETAIL remove those no longer required&amp;nbsp; from table ACTIVITYGROUPS and then update with BAPI_USER_ACTGROUPS_ASSIGN followed by BAPI_TRANSACTION_COMMIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 14:53:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-remove-user-a-role/m-p/11299962#M1917632</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2015-10-01T14:53:16Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to remove user a Role</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-remove-user-a-role/m-p/11299963#M1917633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks - will give it a try.&amp;nbsp; Do I still have to run PFUD User Comparison after this, or is this then not necessary?&lt;/P&gt;&lt;P&gt;Andre&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 14:58:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-remove-user-a-role/m-p/11299963#M1917633</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-10-01T14:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to remove user a Role</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-remove-user-a-role/m-p/11299964#M1917634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks - this really seems like the correct function, but I call this function and pass in table "DELETE_USERS_FROM_ACTGROUPS", with values AGR_NAME and UNAME.&lt;/P&gt;&lt;P&gt;When executing the function it does not remove that role from the user.&lt;/P&gt;&lt;P&gt;Am I missing something?&lt;/P&gt;&lt;P&gt;Should i run anything afterwards to commit the change?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Oct 2015 09:35:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-remove-user-a-role/m-p/11299964#M1917634</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-10-02T09:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to remove user a Role</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-remove-user-a-role/m-p/11299965#M1917635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my old programs I used to call also BAPI_USER_PROFILES_ASSIGN&amp;nbsp; after BAPI_USER_ACTGROUPS_ASSIGN so no PFUD required, but you should call it, also check if it's not already scheduled by administrators as a daily background job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2015 06:01:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-remove-user-a-role/m-p/11299965#M1917635</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2015-10-05T06:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to remove user a Role</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-remove-user-a-role/m-p/11299966#M1917636</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;in addition to &lt;A _jive_internal="true" href="https://answers.sap.com/people/raymond.giuseppi"&gt;Raymond's&lt;/A&gt; solution, if you have an active Central User Management, then you will need the rfc fm's &lt;EM&gt;&lt;STRONG&gt;BAPI_USER_LOCACTGROUPS_READ&lt;/STRONG&gt;&lt;/EM&gt; and &lt;EM&gt;&lt;STRONG&gt;BAPI_USER_LOCACTGROUPS_ASSIGN&lt;/STRONG&gt;&lt;/EM&gt; here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Klaus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2015 06:29:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-remove-user-a-role/m-p/11299966#M1917636</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-10-05T06:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to remove user a Role</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-remove-user-a-role/m-p/11299967#M1917637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. &lt;SPAN style="color: #333333; font-size: 12px;"&gt; BAPI_USER_ACTGROUPS_ASSIGN does the job with a workaround. However neither BAPI_USER_PROFILES_ASSIGN nor&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;BAPI_TRANSACTION_COMMIT does not run the User Comparison (with my current checks).&amp;nbsp; Will still play around, but at least I can now remove the Role.&amp;nbsp; Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Oct 2015 10:09:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-remove-user-a-role/m-p/11299967#M1917637</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-10-06T10:09:24Z</dc:date>
    </item>
  </channel>
</rss>

