Defaulting BP Roles in CRMM_ACCOUNT

Hi,
We are working with the PCUI in 4.0. Within the CRMM_ACCOUNT application we would like to default a specific BP role when a user is creating an account in the system. Currently when a user creates an account, the General BP, Activity Partner, Bill-to-Party, Payer, Prospect, Ship-to-Party, and Sold-to-Party Roles are assigned to the BP. I have tried defaulting the required role at the fieldgroup level, but it gets overwritten when saved. We would like just the General BP and Prospect roles assigned. Is this possible?
Thanks for your help. Points will be awarded.
Regards,
Bernard

Hi Fakhan,
There are two ways to solve your requirement :
1. via authorization
explore authorization object B_BUPA_RLT and CRM_BPROLE. Those authorization objects define which BP roles can be edited.
OR
2. via enhancement
Enhance component BP_Roles/AccountRolesEL. In the context node BUILROLES enhance method GET_V_PARTNERROLE
Do the same in component BP_roles/RolesList context node ROLES method GET_V_PARTNERROLE
Hope it's solve your problem
Cheers,
Lina

Similar Messages

  • Defaulting BP role in transaction BP

    Hi,
    I would like to default the BP role to "Sold-to" when calling transaction BP instead of the "general BP role" which is standard.
    Is this possible somehow ?
    thanks
    Guest01

    Hi,
    You can achieve this using application transaction. In transaction BUSF you can check out some transactions are mentioned like BUI1. If you try using BUI1, BP will open only with role prospect. Same way you can define your own transaction for role sold to party in BUSF.
    If you want other roles also should be present with this role in BP, then there is no way through customzing to get it. Instead you can use the method 'start_with_navigation’ of class ‘cl_bupa_dialog_joel’ is used instead of calling transaction BP.For going directly to ‘Sold to party', you need to pass the role  to method ‘start_with_navigation’.
    Thanks and warm reagrds,
    Smita.

  • BAPI_PO_CREATE1 is not defaulting all the partner role in the PO

    Hi All,
    I am facing a problem while Purchase Uploads using  BAPI_PO_CREATE1 in the LSMW via Idoc .
    The BAPI is not behaving same as Txn ME21n .
    In the Txn ME21n when we enter the Vendor the partner tab is automatically filled with  all the  Partner roles .
    While when we use BAPI it is only filing the Partner role with a single partner  role VN.
    We are sending the sturcture partner role  as blank because we wanted it to be defaulted as it is in Txn ME21N.
    During the program analysis we found the following :
    BAPI is calling the Function Module MM_PARTNER_SELECT which try to fill the Partner function
    using WYT3 table . The table  Wyt3 has the plant field as empty for that particular Vendor.
    The BAPI is  using the plant to determine the partner roles .
    While in Txn ME21n the plant field is not used for determining the partner role .
    In txn Me21n once we change the vendor entered initially & then again re enter the  initial vendor  number
    then it behaves like BAPI & only display the single partner role .
    Kindly advice .
    Regards,
    Anurag Goel

    Hi All ,
    FYI
    We found the solution for  defaulting  partner role using   BAPI_PO_CREATE1,It is a customization issue .
    We have check the  Higher level indicator ( Search at higher level )  in the customization Txn OLME  Under Partner Determination -
    > Partner setting in Purchasing document -
    >Define partner schemas
    If this indicator is not set, the system only  transfer partner roles  that are maintained at plant level .
    Best regards,
    Anurag Goel .

  • Issue with defaulting Business Partner Role while BP Creation

    Hi,
    I am having a simple requirement that while creating any contacts, the Business Partner role and authorization group will be defaulted.
    Now 1st was trying to wrtite code in the enhancement spot : CRM_UIU_BP_ENHANCEMENT --> badi CRM_BP_UIU_SAVE --> Method ON_SAVE_EVENT (Event handler for save event ).  But sometimes it is triggered, some times not. When it it triggered, transaction is giving a dump.
    Again, I tried to write code in badi BUPA_GENERAL_UPDATE. There also, I am getting the same error  " The COMMIT WORK processing must not be interrupted. "
    I am writing this code in the method :
    *Call this BAPI to fill the memory
        CALL FUNCTION 'BAPI_BUPA_CENTRAL_CHANGE'
          EXPORTING
            businesspartner = ls_but000-client.
      CALL FUNCTION 'BUP_MEMORY_BUT000_GET'
        EXPORTING
          iv_partner      = ls_but000-partner
        IMPORTING
          es_but000       = ls_bus000_upd
        EXCEPTIONS
          not_found       = 1
          parameter_error = 2
          OTHERS          = 3.
      IF ls_bus000_upd-augrp IS INITIAL.
        ls_bus000_upd-augrp = '9000'.
      ENDIF.
    *   Populate new BUT000 data
      CALL FUNCTION 'BUP_MEMORY_BUT000_FILL'
        EXPORTING
          is_but000       = ls_bus000_upd
        EXCEPTIONS
          parameter_error = 1
          OTHERS          = 2.
    I can't understand why this dump is coming? Please help if there is any other way to defaulting roles..

    Hi Suchandra,
    Are you trying to default Business Roles & Authorizations at the time of SAVE of a new CP?
    If yes, then everytime you click on SAVE button on CP Create Screen the Save BADi will be triggered.
    Cases when its not getting triggered please debug into the event handler method of view-BP_CONT/BPCONTOverview->EH_ONSAVE method.
    In this method at line (below) the save badi is triggered:-
    IF cl_crm_uiu_bp_tools=>save( ir_message_service = lr_msg_service ) = abap_true.
    In the above method - CL_CRM_UIU_BP_TOOLS=>SAVE( ) the save event handler is triggered :-
    * trigger ON_SAVE for registered handlers
      raise_save_event( ).
    If you want the default to happen when you navigate to CP Screen , you'll have to put the defaulting code in an implementation of a different badi - BADI_CRM_BP_UIU_DEFAULTS.
    - Dedeepya
    Edited by: dedeepya reddy on Nov 15, 2011 2:07 PM

  • Create Account with role by default

    Hi gurus;
    I'm working on CRM 7, and i want know if it's possible create an account with a role by default? For example, in UI I push to create an private account and i want that by default has the role BUP002.
    Can I customize that? If it's possible, where do I customize that?
    Regards.
    Miguel Montero.

    Hello Anders,
    I enhanced BP_HEAD and the AccountDetails view.
    I clicked the redefine method for process data and I put in this code:
    method PROCESS_DATA.
    *CALL METHOD SUPER->PROCESS_DATA
    *  RECEIVING
    *    SUCCESS =
      IF lr_header is BOUND.
        CALL METHOD cl_crm_uiu_bp_tools=>add_role
          EXPORTING
            ir_header       = lr_header
            iv_rolecategory = 'BUP002'.
        lv_core->modify( ).
      ENDIF.
    endmethod.
    But I get an error says Field LR_HEADER is unknown it is not contained in one of the specified tables nor is it defined by a "DATA" statement.
    Is there any way you can give me some more details about this as I am new to the coding aspect of CRM 7.0.
    I just need to set the default account role when an end user creates an account.
    Thanks,
    Jon

  • BHOLD Default Supervisor not showing up in drop down list when trying to add a role.

    Hi All,
    I am trying to add a new role to one of my BHOLD installations, and when I do that I do not have a "default supervisor role" listed in the drop down. A supervisor role is required to be able to create a role. I am performing the operation as a
    B1 admin with the default supervisor role.
    In another installation I can do it just fine. I have found no delta between the two as far as permissions are concerned. Anyone have an idea? Thanks.

    Matt,
    Do you have a large number or roles, as in >500, maybe 1000s? I have seen an issue where a customer had 1000s of roles. There are some SPROCs that look for top 500 or something similar. I think a workaround was to change the SPROCs, not saying your should
    do that necessarily but I believe that is what they did to get around this.

  • Default Roles or Group

    Hi there,
    i am trying to assigned default ESS roles automatically in EP for new users that have been created in EP database.
    I remember that under EP5.0, there was a parameter which i could set to point to a default group, and all new or existing users would be assigned to this group.
    Anyone knows is there a similar feature in EP6?
    Thanks
    Fred

    Hi Frederick,
    it's the built-in group "Everyone".
    Just go to User Administration -- Roles -- Search for "Everyone" -- Edit -- Search for the Roles you want to add to everyone -- Add them.
    Hope it helps
    Detlev
    PS: For helping answers, please remember to award points (yo have been reminded also in Additional Application Node)...

  • BP creation in CRM WebClient - Role and Number Range assignment

    Hello,
    I have the requirement to specify a particular number range and BP role when an Account is created in the CRM WebClient Interface.
    For example as standard, when an employee is created through the CRM WebClient (BSP component BP_EMPL) the default employee role (BUP003) and the default number range are assigned to the BP.
    I would need to specify a different number range and role to the employee
    I've tried to configure the Account Identification profiles (activity "Define Account Identification Profiles" in customizing); with that activity you can specify which role and which number group you want to use for the BP (account) creation. However this customizing is affecting the IC WebClient only and not the CRM WebClient.
    I was wondering if a similar customizing activity exists for the CRM WebClient (in particular for the BP_EMPL application), or if there's a way around this.
    Anybody has an idea about how to solve this?
    Any help would be greatly appreciated, thank you in advance.

    Hi all,
    I have done this by defaulting the bp group in the BADi 
    1.Go to the se18 and select BADI_CRM_BP_UIU_DEFAULTS and select the interface IF_UIU_BP_DEFAULTS
    2. Go to the method IF_UIU_BP_DEFAULTS~GET_DEFAULT_VALUES and you can write your logic here to default the grouping.
    In my case I wanted all accounts created to be defaulted to a particular grouping and my code looks like this
    lv_name1 = lr_current->get_property_as_string( iv_attr_name ='BP_CATEGORY' ).
                        IF lv_name1 IS NOT INITIAL.
                          IF lv_name1 = '2'.
                            lr_current->set_property( iv_attr_name = 'BP_GROUP'
                                       iv_value = '0060' ).
                          ENDIF.
                        ENDIF.
    Thanks & Regards,
    Sanila

  • Starting managed Servers under WLS 8.1 using Operator Role

    Hi,
    we've configured a user who is acting in the default 'Operator' role.
    He can shutdown a managed server using the admin console, but when
    trying to restart that managed server via node manager he fails with an exception.
    weblogic.management.NoAccessRuntimeException: Access not allowed for subject:
    principals=[oper, Operators], on ResourceType: Server Action: write, Target: ExpectedToRun
    According to the documentation http://edocs.bea.com/wls/docs81/secwlres/secroles.html
    this role should be allowed to start managed servers.
    -- What are we doing wrong ? --
    Cheers,
    Robert

    I believe this is a known problem, please contact BEA support for a patch.
    Thanks,
    -satya
    Robert Akolk wrote:
    Hi,
    we've configured a user who is acting in the default 'Operator' role.
    He can shutdown a managed server using the admin console, but when
    trying to restart that managed server via node manager he fails with an exception.
    weblogic.management.NoAccessRuntimeException: Access not allowed for subject:
    principals=[oper, Operators], on ResourceType: Server Action: write, Target: ExpectedToRun
    According to the documentation http://edocs.bea.com/wls/docs81/secwlres/secroles.html
    this role should be allowed to start managed servers.
    -- What are we doing wrong ? --
    Cheers,
    Robert

  • How to define a custome property in User Profile to Save Roles Sort priority ?

    Hi All,
    I have a requirement where in, user should get an option to decide his default tab(role), when he logs into portal.
    e.g.: If user1 and User2 is assigned with 2 roles namely Leave & Travel. User1 should be able to select Leave as his default tab and User2 should be able to select Travel as his default tab.
    I was thinking if I can store what use selects in a custom property and change the tabs through custom application.
    Please let me know how can achieve this in CE 7.3 portal.
    Thanks in Advance,
    Pavan.

    Hi Pavan,
    If you are using the AJAX framework page the user can simply drag the tabs and it will automatically be saved in the personalization.
    user should:
    1. place mouse over the role (in the top left corner you will see a triangle).
    2. place mouse over triangle and, push and hold down mouse button.
    3. drag the mouse to the navigation place where you want it to be (notice black line).
    4. leave the mouse button.
    Now the order of the tabs are saved in the personalization for that user only.
    Hope this is what you meant.
    BR,
    Saar

  • Roles for SAPUSER in SAPR3---Urgent pls help

    Hi,
    Since my Roles for SAPUSER is blank
    http://www.flickr.com/photos/10351754@N08/858043167/
    I have to create Role
    Now I am in SAP R3 and what are all the Roles I have to Create in SAP R3 for SAPUSER?
    pls let me know
    thanks
    dushanth

    hi,
    You can assign the relevant roles to the user you have basing on the requirements. It is not necessary that each and every user should by default have roles except for service and system users. So no tension..
    Reward if helpful,
    Sarath.

  • Role are not effected to user

    Hi to all ,
    created user "test", by login to portal useing this "test" user, default Home role is dispalyed..
    Now i created my Custom role .. i assigned this Role to user "test" in user administration.
    i checked is assigned roles my customrole is assigned but it is not displayed in portal while user login.
    is there any controls while assigning Roles.. to user ?

    Hi Eswar,
    Check the role permission.
    Set the group Everyone for Read permission, and set the flags End User and Role Assigner.
    Good Luck
    Eduardo

  • DBA role and system privileges

    I created a new user (PIPPO) with the default dba role in my db.
    I know that the dba_role has the SELECT ANY TABLE and INSERT ANY TABLE system privileges.
    I expeperienced that if I select a table of another schema on a simple sqlplus session everything is OK, but if I select the same table on the same manner in a PL/SQL procedure or in the creation of a wiew, both owned by PIPPO, the error message is that the table not exists...
    So I have to grant SELECT and INSERT on the tables I want to my user PIPPO.
    Does anyone tell me if this is normal or strange?
    Thanks

    This is normal. To access other schema's table you need to have direct grant not through roles. DBA is a role.

  • OPSS/JAAS and UCM roles

    (I'm sorry, my question will be a bit long-winded, but it's necessary because I want to provide more background information)
    I've been trying to get JAAS working for UCM. From what I understand from the documentation, in 11g this is handled in Weblogic.
    I started by doing an experiment in Weblogic first - I wrote a simple web application with security constraint specified, and wrote a custom LoginModule (as specified in JAAS), a custom authentication provider and my custom group and principal classes. I generated the MBean and deployed it to Weblogic. I set my custom authentication provider behind Weblogic's default, and set both providers to "SUFFICIENT". My custom LoginModule pulls user data from properties files and my simple web application works correctly, limiting access as defined in the security constraints in web.xml.
    Then I started to work on UCM (which is in the same domain as my experiment above). I found authentication working too, but once logged in to UCM, my users don't get any roles assigned - the UCM Home Page shows the menu item for guests only.
    Looking at the security log of Weblogic, I found the default XACML Role Mapper didn't include the UCM roles. Then it came to me that my simple application had additional security roles defined in its web.xml while UCM didn't have an equivalent config.
    So I implemented a custom RoleMapper and a custom SecurityRole class as well, again pulling data from properties files. I made my RoleMapper always return the same set of roles ("admin", "contributor", "Testing" and "Admin"), and they were seen in Weblogic security log:
    ####<Feb 7, 2011 3:43:29 PM CST> <Debug> <SecurityAtz> <HOSTNAME> <UCM_server1> <[ACTIVE] ExecuteThread: '8' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <11d1def534ea1be0:3c3ba107:12dfe46f824:-8000-0000000000000d31> <1297064609445> <BEA-000000> <com.bea.common.security.internal.service.AccessDecisionServiceImpl.isAccessAllowed Roles=[ "Anonymous" "admin" "contributor" "Testing" "Admin" ]>
    However that didn't work in UCM, I still got only guest roles.
    Finally I found out about Credential Map settings in UCM administration. I added these mappings:
    admin, admin
    contributor, contributor
    The map was highlighted as current map.
    It's only then I get "Content Management" menu when I login. Yet the "Administration" menu is still missing.
    I have several questions:
    1. Why is the Credential Map in UCM necessary? Since adding the mapping works (for contributor, anyway), UCM must already have the credentials added by my custom RoleMapper, and the mapping doesn't change anything.
    2. Is there a way to skip/replace the Credential Map in UCM? Will implementing a Credential Mapping Provider in Weblogic do (and how to tell UCM to use it)?
    3. How can I get the admin role working for my external users?
    Edited by: user6476654 on Feb 7, 2011 12:05 AM
    Edited by: user6476654 on Feb 7, 2011 12:10 AM

    This is the log captured when I login with "user1":
    userstorage/7     02.07 17:48:51.529     IdcServer-639     Start user storage query for user user1.
    userstorage/6     02.07 17:48:51.529     IdcServer-639     Finished user name determination, user=user1, expired=true, isNewUser=false, hasAttributesLoaded=false, authtype=EXTERNAL
    userstorage/6     02.07 17:48:51.574     IdcServer-639     Loaded record from database for user1
    userstorage/6     02.07 17:48:51.575     IdcServer-639     Retrieving attributes (type=EXTERNAL) for user1
    userstorage/6     02.07 17:48:51.575     IdcServer-639     User not found in default/preferred provider
    userstorage/6     02.07 17:48:51.575     IdcServer-639     Adding JpsUserProvider
    userstorage/6     02.07 17:48:51.575     IdcServer-639     Returning 1 results
    userstorage/7     02.07 17:48:51.575     IdcServer-639     Checking UserProvider JpsUserProvider
    jps/6     02.07 17:48:51.575     IdcServer-639     authenticateUser: false
    jps/6     02.07 17:48:51.575     IdcServer-639     User is new to this provider.
    jps/6     02.07 17:48:51.578     IdcServer-639     User user1 not found. Returning.
    userstorage/6     02.07 17:48:51.578     IdcServer-639     User not found in UserProvider JpsUserProvider
    userstorage/7     02.07 17:48:51.578     IdcServer-639     Checked credentials (isLoadAttributes=true) for user1
    userstorage/7     02.07 17:48:51.578     IdcServer-639     Provider did not provide attributes.
    userstorage/7     02.07 17:48:51.578     IdcServer-639     Load attributes from database for user1
    userstorage/6     02.07 17:48:51.578     IdcServer-639     Database->Roles=guest Accounts=#0023none for user1
    userstorage/7     02.07 17:48:51.578     IdcServer-639     Check state of attributes (isLoadAttributes=true)
    userstorage/6     02.07 17:48:51.578     IdcServer-639     No attributes loaded for user1
    userstorage/6     02.07 17:48:51.578     IdcServer-639     Updating shared cached copy for user user1
    userstorage/6     02.07 17:48:51.580     IdcServer-639     UserTempCache updated with user data for user1
    userstorage/6     02.07 17:48:51.581     IdcServer-639     Retrieved Roles=guest,authenticated Accounts=#0023none for user1
    userstorage/7     02.07 17:48:51.581     IdcServer-639     Query of info, provider required 52 milliseconds.
    userstorage/6     02.07 17:48:51.581     IdcServer-639     At exit, user storage access count is 0
    userstorage/6     02.07 17:48:51.581     IdcServer-639     Caller assigned Roles=guest,authenticated Accounts=#0023none for user1
    userstorage/7     02.07 17:48:51.581     IdcServer-639     stoareUserDatabaseProfileData copyAll=false, doAdminFields=false, alwaysSave=false, userDataFromDb=true
    userstorage/6     02.07 17:48:51.623     IdcServer-640     At enter, user storage access count is 1
    userstorage/6     02.07 17:48:51.623     IdcServer-640     Retrieving user data (isLoadAttributes=true, credentialData is not null) for user1
    userstorage/6     02.07 17:48:51.623     IdcServer-640     Debug dump of current call stack intradoc.data.DataException: Exception manufactured to capture current stack trace.userstorage/6     02.07 17:48:51.623     IdcServer-640     at intradoc.server.UserStorageImplementor.retrieveUserDatabaseProfileDataImplement(UserStorageImplementor.java:101)
    userstorage/6     02.07 17:48:51.623     IdcServer-640     at intradoc.server.UserStorage.retrieveUserDatabaseProfileDataEx(UserStorage.java:159)
    userstorage/6     02.07 17:48:51.623     IdcServer-640     at intradoc.server.UserStorageUtils.loadUserData(UserStorageUtils.java:88)
    userstorage/6     02.07 17:48:51.623     IdcServer-640     at intradoc.server.ServiceSecurityImplementor.loadUserData(ServiceSecurityImplementor.java:538)
    userstorage/6     02.07 17:48:51.623     IdcServer-640     at intradoc.server.ServiceSecurityImplementor.globalSecurityCheck(ServiceSecurityImplementor.java:221)
    userstorage/6     02.07 17:48:51.623     IdcServer-640     at intradoc.upload.UploadSecurityImplementor.globalSecurityCheck(UploadSecurityImplementor.java:57)
    userstorage/6     02.07 17:48:51.623     IdcServer-640     at intradoc.server.Service.globalSecurityCheck(Service.java:2671)
    userstorage/6     02.07 17:48:51.623     IdcServer-640     at intradoc.server.ServiceRequestImplementor.doRequest(ServiceRequestImplementor.java:678)
    userstorage/6     02.07 17:48:51.623     IdcServer-640     at intradoc.server.Service.doRequest(Service.java:1890)
    userstorage/6     02.07 17:48:51.623     IdcServer-640     at intradoc.server.ServiceManager.processCommand(ServiceManager.java:435)
    userstorage/6     02.07 17:48:51.623     IdcServer-640     at intradoc.server.IdcServerThread.processRequest(IdcServerThread.java:265)
    userstorage/6     02.07 17:48:51.623     IdcServer-640     at intradoc.idcwls.IdcServletRequestUtils.doRequest(IdcServletRequestUtils.java:1343)
    userstorage/6     02.07 17:48:51.623     IdcServer-640     at intradoc.idcwls.IdcServletRequestUtils.processFilterEvent(IdcServletRequestUtils.java:1715)
    userstorage/6     02.07 17:48:51.623     IdcServer-640     at intradoc.idcwls.IdcIntegrateWrapper.processFilterEvent(IdcIntegrateWrapper.java:222)
    userstorage/6     02.07 17:48:51.623     IdcServer-640     at sun.reflect.GeneratedMethodAccessor124.invoke(Unknown Source)
    userstorage/6     02.07 17:48:51.623     IdcServer-640     ... 35 more
    It seems JPS provider is unable to access the data I added in my custom authentication provider/role mapper? I can login web applications in Weblogic just fine though. If needed I can post the code of my custom providers.
    Also I am unable to get the contributor role working even if I put the credential mapping back in UCM. Is this because of JPS running and taking things over?

  • Users assigned to CRM Business Roles

    Is there a report that can show what users are assigned to what Web UI business roles. We have business roles assigned to positions and not PFCG roles. If not, what table to show business roles assigned to positions numbers so I can atleast query names on positions that have specific business roles.
    Thank You,
    Alex

    Hi Alex,
    Normally the AGR_USERs table through SE16 can give you this output
    in AGR_USERS table go and set the ORG_FLAG and COL_FLAG to get the output, you could also do this just for roles
    AGR tables.
    also if you have a proper naming convention please search by   "UIU" string most of the WEBUI roles supplied by SAP has this key word "UIU"
    Also you can go through SPRO ("UI Framework")  to see the default business roles assigned to the "UIU" roles supplied by SAP.

Maybe you are looking for