<?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 Delete roles from a certain system : BAPI_USER_LOCACTGROUPS_ASSIGN in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-roles-from-a-certain-system-bapi-user-locactgroups-assign/m-p/9451948#M1741515</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;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have written a code which determines which users' roles should be deleted from which systems. The code is using BAPI_USER_LOCACTGROUPS_ASSIGN to delete the roles. Now here is what happens in the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Prepare a list of user's roles ( Lets say user has 5 roles in each of the 10 systems, table has 50 entries in it). &lt;/P&gt;&lt;P&gt;2. Delete the entries corresponding to SYSTEM1 and SYSTEM7. ( The table is left with 40 entries in it). I am deleted ALL the roles so after this there is no entry for SYSTEM1 and SYSTEM7 in the table. &lt;/P&gt;&lt;P&gt;3. Run the BAPI by passing table (with 40 entries).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once BAPI runs the system send out 10 idocs (one for each system). And idocs for&amp;nbsp; SYSTEM1 and SYSTEM7 still have the roles in it. So essentially the BAPI just ignored my filtering and sent out idocs with situation as is. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did try to change the idoc by removing all the roles segment and that does the job for me. But I am not sure why BAPI is not doing it. I can not use BAPI_USER_LOCACTGROUPS_DELETE as I want to delete roles only from certain systems. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea whats up here? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Anuj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 May 2013 14:34:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-05-15T14:34:19Z</dc:date>
    <item>
      <title>Delete roles from a certain system : BAPI_USER_LOCACTGROUPS_ASSIGN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-roles-from-a-certain-system-bapi-user-locactgroups-assign/m-p/9451948#M1741515</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;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have written a code which determines which users' roles should be deleted from which systems. The code is using BAPI_USER_LOCACTGROUPS_ASSIGN to delete the roles. Now here is what happens in the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Prepare a list of user's roles ( Lets say user has 5 roles in each of the 10 systems, table has 50 entries in it). &lt;/P&gt;&lt;P&gt;2. Delete the entries corresponding to SYSTEM1 and SYSTEM7. ( The table is left with 40 entries in it). I am deleted ALL the roles so after this there is no entry for SYSTEM1 and SYSTEM7 in the table. &lt;/P&gt;&lt;P&gt;3. Run the BAPI by passing table (with 40 entries).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once BAPI runs the system send out 10 idocs (one for each system). And idocs for&amp;nbsp; SYSTEM1 and SYSTEM7 still have the roles in it. So essentially the BAPI just ignored my filtering and sent out idocs with situation as is. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did try to change the idoc by removing all the roles segment and that does the job for me. But I am not sure why BAPI is not doing it. I can not use BAPI_USER_LOCACTGROUPS_DELETE as I want to delete roles only from certain systems. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea whats up here? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Anuj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2013 14:34:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-roles-from-a-certain-system-bapi-user-locactgroups-assign/m-p/9451948#M1741515</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-05-15T14:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: Delete roles from a certain system : BAPI_USER_LOCACTGROUPS_ASSIGN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-roles-from-a-certain-system-bapi-user-locactgroups-assign/m-p/9451949#M1741516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I figured it out. For others who may be looking to do the same --&amp;gt;&amp;gt; If you want to remove all the roles from system A , &lt;SPAN style="font-size: 10pt;"&gt;you need to pass a row with just system id in it ( no role name/dates) and delete all the other rows for that system. That will delete all the roles for that system while keeping the system in system list. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2013 21:52:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-roles-from-a-certain-system-bapi-user-locactgroups-assign/m-p/9451949#M1741516</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-05-21T21:52:06Z</dc:date>
    </item>
  </channel>
</rss>

