<?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: Bapi for maintaining roles in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-maintaining-roles/m-p/2379340#M527886</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1&amp;gt; Ask for your client to give you the access key to modify the roles.&lt;/P&gt;&lt;P&gt;if this happens it can solve your problem.&lt;/P&gt;&lt;P&gt;2&amp;gt; or you can copy the program into your z program and then modify accordingly&lt;/P&gt;&lt;P&gt;3&amp;gt;or you  can navigate through the screens ...debug and see which screen of pfcg you want 2 enhance you can write a separate z program for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i dnt think there is any other possible way to do that coz bapi's doesnt exist for pfcg&lt;/P&gt;&lt;P&gt;hope this was helpful&lt;/P&gt;&lt;P&gt;thnkx  &lt;/P&gt;&lt;P&gt;bhanu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Jun 2007 06:37:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-12T06:37:05Z</dc:date>
    <item>
      <title>Bapi for maintaining roles</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-maintaining-roles/m-p/2379336#M527882</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;I have to modify role ( adding or deleting Transaction to role) through program. Do anyone knows BAPI or BADI for that which can do changes in in role.&lt;/P&gt;&lt;P&gt;Can we write BDC for role maintenance?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sandip&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2007 06:19:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-maintaining-roles/m-p/2379336#M527882</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-12T06:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi for maintaining roles</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-maintaining-roles/m-p/2379337#M527883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your are trying to modify roles in T-code pfcg?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there are No badi's which exist for it.&lt;/P&gt;&lt;P&gt;i can tell you more hw 2 process but let me know if that is the t-code you want to use?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thankx &lt;/P&gt;&lt;P&gt;bhanu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2007 06:26:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-maintaining-roles/m-p/2379337#M527883</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-12T06:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi for maintaining roles</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-maintaining-roles/m-p/2379338#M527884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I want it for pfcg transaction and I want to add or remove HR regarding transaction (like PA20, PA30) through program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2007 06:31:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-maintaining-roles/m-p/2379338#M527884</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-12T06:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi for maintaining roles</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-maintaining-roles/m-p/2379339#M527885</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;Check the following BAPI's and fun modules&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUSR_BAPI_USER_PROFILES_ASSIGN&lt;/P&gt;&lt;P&gt;SUSR_BAPI_USER_PROFILES_DELETE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUSR_USER_PROFS_BUFFER_CLEAR&lt;/P&gt;&lt;P&gt;SUSR_USER_PROFS_BUFFER_FILL&lt;/P&gt;&lt;P&gt;SUSR_USER_PROFS_BUFFER_SAVECHK&lt;/P&gt;&lt;P&gt;SUSR_USER_PROFS_BUFFER_TO_DB&lt;/P&gt;&lt;P&gt;SUSR_USER_PROFS_LASTCHANGE_GET&lt;/P&gt;&lt;P&gt;SUSR_USER_PROFS_PROFILES_CHECK&lt;/P&gt;&lt;P&gt;SUSR_USER_PROFS_PROFILES_DEL&lt;/P&gt;&lt;P&gt;SUSR_USER_PROFS_PROFILES_GET&lt;/P&gt;&lt;P&gt;SUSR_USER_PROFS_PROFILES_PUT&lt;/P&gt;&lt;P&gt;SUSR_USER_PROFS_PROFTEXT_FILL&lt;/P&gt;&lt;P&gt;SUSR_USER_PROFS_RELATE_ONE&lt;/P&gt;&lt;P&gt;SUSR_USER_PROFS_REMOVE_ONE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUSR_USER_LOCPROFS_PROFS_CHECK&lt;/P&gt;&lt;P&gt;SUSR_USER_LOCPRO_O_PROFILE_DEL&lt;/P&gt;&lt;P&gt;SUSR_USER_LOCPRO_PROFILES_ADD&lt;/P&gt;&lt;P&gt;SUSR_USER_LOCPRO_PROFILES_DEL&lt;/P&gt;&lt;P&gt;SUSR_USER_LOCPRO_PROFILES_GET&lt;/P&gt;&lt;P&gt;SUSR_USER_LOCPRO_PROFILES_PUT&lt;/P&gt;&lt;P&gt;SUSR_USER_LOCPRO_PROFTEXT_FILL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points for useful Answers&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2007 06:31:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-maintaining-roles/m-p/2379339#M527885</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-12T06:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi for maintaining roles</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-maintaining-roles/m-p/2379340#M527886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1&amp;gt; Ask for your client to give you the access key to modify the roles.&lt;/P&gt;&lt;P&gt;if this happens it can solve your problem.&lt;/P&gt;&lt;P&gt;2&amp;gt; or you can copy the program into your z program and then modify accordingly&lt;/P&gt;&lt;P&gt;3&amp;gt;or you  can navigate through the screens ...debug and see which screen of pfcg you want 2 enhance you can write a separate z program for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i dnt think there is any other possible way to do that coz bapi's doesnt exist for pfcg&lt;/P&gt;&lt;P&gt;hope this was helpful&lt;/P&gt;&lt;P&gt;thnkx  &lt;/P&gt;&lt;P&gt;bhanu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2007 06:37:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-maintaining-roles/m-p/2379340#M527886</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-12T06:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi for maintaining roles</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-maintaining-roles/m-p/2379341#M527887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sandip&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following sample reports add a transaction to the role menu. However, by adding a transaction to a role usually additional "objects" are inserted into a role which require maintenance of the authorization values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Report  ZUS_SDN_PFCG_ADD_TCODE
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*

REPORT  zus_sdn_pfcg_add_tcode.



DATA:
  gs_tcodes    TYPE agr_tcodes,
  gt_tcodes    TYPE STANDARD TABLE OF agr_tcodes.


PARAMETERS:
  p_role      TYPE agr_name  DEFAULT 'Z_SDN_ROLE1',
  p_tcode     type tcode     default 'SU01'.



START-OF-SELECTION.


  CALL FUNCTION 'PRGN_1221_READ_TRANSACTIONS'
    EXPORTING
      activity_group              = p_role
*     ONLY_TRANSACTIONS           = ' '
    TABLES
      i_agr_tcodes                = gt_tcodes
*     I_AGR_SELECT                =
    EXCEPTIONS
      no_transactions_found       = 1
      OTHERS                      = 2.
  IF sy-subrc &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.


  READ TABLE gt_tcodes INTO gs_tcodes INDEX 1.
  gs_tcodes-tcode = p_tcode.
  APPEND gs_tcodes TO gt_tcodes.

  CALL FUNCTION 'PRGN_1221_SAVE_TRANSACTIONS'
    EXPORTING
      activity_group       = p_role
*     DISPLAY_STATUS       = 'X'
    TABLES
      i_agr_tcodes         = gt_tcodes
*     I_AGR_SELECT         =
            .


  CALL FUNCTION 'SUPRN_PROFILE_BATCH'
    EXPORTING
      act_objid                   = p_role
*       LTEXT                       =
*       ENQUEUE                     = ' '
    EXCEPTIONS
      objid_not_found             = 1
      no_authorization            = 2
      generation_not_active       = 3
      empty_authorizations        = 4
      enqueue_failed              = 5
      not_generated               = 6
      OTHERS                      = 7.
  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE ID sy-msgid TYPE 'S' NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.



END-OF-SELECTION.&lt;/CODE&gt;&lt;/PRE&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>Tue, 12 Jun 2007 07:03:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-maintaining-roles/m-p/2379341#M527887</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2007-06-12T07:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi for maintaining roles</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-maintaining-roles/m-p/2379342#M527888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Uwe, It will solve my problem at better extent but my main problem is the 'Object values'. Because addition of transaction appends object values but old values remain same. Is there any method for maintaining those values?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2007 07:29:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-maintaining-roles/m-p/2379342#M527888</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-12T07:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi for maintaining roles</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-maintaining-roles/m-p/2379343#M527889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sandip&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our company has developed over the last 7 years an application which allows to completely separate the authorization values (= OrgLevels &amp;amp; all other authorization fields) from the role generation (i.e. the profilgenerator).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are now able to deliver almost any authorization values at any position within a role, in particular we can also handle specific authorization value-sets for repetitive authorization objects (which are quite frequently found in HR roles).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on a &amp;lt;i&amp;gt;master role -&amp;gt; derived role &amp;lt;/i&amp;gt;concept we can take the separated default values and the master role and generate automatically the corresponding derived roles.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The point I would like to stress is that is is by no means a trivial task to maintain authorization values in roles programatically. In particular, in the profilgenerator we have several different status (Standard, Maintained, Manual) which make this task even more complicated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our product is currently in use at a big company here in Switzerland. Having about 100 master roles they maintain about 2-3 thousand derived roles with about 2-3 people.&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>Tue, 12 Jun 2007 09:39:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-maintaining-roles/m-p/2379343#M527889</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2007-06-12T09:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi for maintaining roles</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-maintaining-roles/m-p/2379344#M527890</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;have you some hints about your product to apply master role changes to derived roles?&lt;/P&gt;&lt;P&gt;I have to set up the values from an excel file (master role) to some thousand of derived roles...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thansk in advance.&lt;/P&gt;&lt;P&gt;GB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Feb 2011 22:06:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-maintaining-roles/m-p/2379344#M527890</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-21T22:06:15Z</dc:date>
    </item>
  </channel>
</rss>

