<?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: NEED HELP IN PROFILES in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-in-profiles/m-p/4096103#M979489</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Are you talking about "Profiles"  or "Roles" in SU01 ?&lt;/P&gt;&lt;P&gt;Because if the issue is duplicate Roles, that you can resolve the issue as following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1: In your abap program, read from table AGR_USERS against a given user name. This will return all roles assigned to a user.&lt;/P&gt;&lt;P&gt;2: select the roles you want to unassign from the user. Lets say you put these in internat table itab.&lt;/P&gt;&lt;P&gt;3: use function PRGN_DELETE_USER_ASSIGNMENT to unassign these roles from user master as following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at itab.&lt;/P&gt;&lt;P&gt;    call function 'PRGN_DELETE_USER_ASSIGNMENT'&lt;/P&gt;&lt;P&gt;      exporting&lt;/P&gt;&lt;P&gt;        user_name               = itab-userid&lt;/P&gt;&lt;P&gt;        activity_group          = itab-role&lt;/P&gt;&lt;P&gt;        from_date               = itab-from&lt;/P&gt;&lt;P&gt;        to_date                 = itab-tod&lt;/P&gt;&lt;P&gt;      exceptions&lt;/P&gt;&lt;P&gt;        actgroup_not_authorized = 1&lt;/P&gt;&lt;P&gt;        actgroup_not_existing   = 2&lt;/P&gt;&lt;P&gt;        actgroup_enqueued       = 3&lt;/P&gt;&lt;P&gt;        others                  = 4.&lt;/P&gt;&lt;P&gt;    if sy-subrc ne 0.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="5" type="ul"&gt;&lt;P&gt;give your error message&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rashid Javed on Jul 2, 2008 11:33 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Jul 2008 08:28:20 GMT</pubDate>
    <dc:creator>Rashid_Javed</dc:creator>
    <dc:date>2008-07-02T08:28:20Z</dc:date>
    <item>
      <title>NEED HELP IN PROFILES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-in-profiles/m-p/4096101#M979487</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 su01 we have user dummy that have lot of duplicates profiles,&lt;/P&gt;&lt;P&gt;how cam i build program or process that can delete his duplicates profiles?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i reward &lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2008 07:58:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-in-profiles/m-p/4096101#M979487</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-02T07:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: NEED HELP IN PROFILES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-in-profiles/m-p/4096102#M979488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any idea how can i solve it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2008 08:16:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-in-profiles/m-p/4096102#M979488</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-02T08:16:42Z</dc:date>
    </item>
    <item>
      <title>Re: NEED HELP IN PROFILES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-in-profiles/m-p/4096103#M979489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Are you talking about "Profiles"  or "Roles" in SU01 ?&lt;/P&gt;&lt;P&gt;Because if the issue is duplicate Roles, that you can resolve the issue as following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1: In your abap program, read from table AGR_USERS against a given user name. This will return all roles assigned to a user.&lt;/P&gt;&lt;P&gt;2: select the roles you want to unassign from the user. Lets say you put these in internat table itab.&lt;/P&gt;&lt;P&gt;3: use function PRGN_DELETE_USER_ASSIGNMENT to unassign these roles from user master as following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at itab.&lt;/P&gt;&lt;P&gt;    call function 'PRGN_DELETE_USER_ASSIGNMENT'&lt;/P&gt;&lt;P&gt;      exporting&lt;/P&gt;&lt;P&gt;        user_name               = itab-userid&lt;/P&gt;&lt;P&gt;        activity_group          = itab-role&lt;/P&gt;&lt;P&gt;        from_date               = itab-from&lt;/P&gt;&lt;P&gt;        to_date                 = itab-tod&lt;/P&gt;&lt;P&gt;      exceptions&lt;/P&gt;&lt;P&gt;        actgroup_not_authorized = 1&lt;/P&gt;&lt;P&gt;        actgroup_not_existing   = 2&lt;/P&gt;&lt;P&gt;        actgroup_enqueued       = 3&lt;/P&gt;&lt;P&gt;        others                  = 4.&lt;/P&gt;&lt;P&gt;    if sy-subrc ne 0.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="5" type="ul"&gt;&lt;P&gt;give your error message&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rashid Javed on Jul 2, 2008 11:33 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2008 08:28:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-in-profiles/m-p/4096103#M979489</guid>
      <dc:creator>Rashid_Javed</dc:creator>
      <dc:date>2008-07-02T08:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: NEED HELP IN PROFILES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-in-profiles/m-p/4096104#M979490</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;thanks but I don't wont to delete duplicates rols ,&lt;/P&gt;&lt;P&gt;i wont to delete duplicates &lt;STRONG&gt;profiles&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2008 09:14:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-in-profiles/m-p/4096104#M979490</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-02T09:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: NEED HELP IN PROFILES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-in-profiles/m-p/4096105#M979491</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;thanks but I don't wont to delete duplicates rols ,&lt;/P&gt;&lt;P&gt;i wont to delete duplicates &lt;STRONG&gt;profiles&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2008 09:14:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-in-profiles/m-p/4096105#M979491</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-02T09:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: NEED HELP IN PROFILES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-in-profiles/m-p/4096106#M979492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm &lt;/P&gt;&lt;P&gt;Well haven't personally worked on such problem but may be the following can help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;User - profile relationship is in table UST04.&lt;/P&gt;&lt;P&gt;profile - role relationship is in table AGR_1016B&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chedck the folloiwng FMs. May be helpful&lt;/P&gt;&lt;P&gt;PRGN_AUTH_PROFILES_ASSIGN&lt;/P&gt;&lt;P&gt;PRGN_AUTH_PROFILES_DELETE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2008 10:03:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-in-profiles/m-p/4096106#M979492</guid>
      <dc:creator>Rashid_Javed</dc:creator>
      <dc:date>2008-07-02T10:03:47Z</dc:date>
    </item>
  </channel>
</rss>

