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

Similar Messages

  • CUA SRM issue with user/business partner creation

    Hi Board,
    I've already replied to an existing thread in the SRM board, but also quite hopefully to find somebody here who may be able to help. Please find the thread here
    error during creation of EBP suers
    Any help would be highly appreciated as we can go on with this "work around" for the moment but not willing to change our current architecture.
    Many regards,
    Richard

    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

  • Business Partner Role Specific Field View in WebClient

    Hello to everyone,
    I have a question that really needs a answer.  We are upgrading from SAP CRM v4 to SAP CRM v7.0 and as such we have a number of custom Business Partner Roles within the Person BP Type.  Against these custom roles we have developed custom field and tabs in order to separate the content within the BP Role further.
    After rolling off an implementation of SAP CRM v6.0 [2007], the following seems apparent:
    - Assignment of Roles is done via an assignment block in the Customer Maintenance view.
    - You can create Business Partners in different roles initially.
    - You cannot maintain Business Partner details in specific roles
    However, you cannot display the role specific fields as you can in the WinClient.  As an example, a Citizen Role BP will have different fields to that of a Teacher, but these roles could be assigned to one Business Partner.
    There does not seem to be any guidance as to how this is managed in the WebClient and as it seems a fundamental part fo the SAP CRM offering, you would have thought that this questions has been asked, but I have found no answers.
    I really hope anyone can help and appreciate any time and effort put into solving my question.
    Many Thanks,
    MatFlat.

    Hi MatFlat,
    Yes, your observation is right - in the Web UI, fiel grouping is not implemented for roles. This is because the role concept is quite different between SAP Gui and Web UI.
    In SAP gui, (CRM 4.0) roles had a functional meaning as well as a UI control. However, the concept was changed with Web UI. Now, roles have only a functional meaning, and no effect on the UI at all.
    If you want to implement role based field grouping in Web UI, you need to define your own methods in the implementation class.
    E.g : you can write code to influence the field properties based on the roles. I guess you can redefine the DO_PREPARE_OUTPUT  methods of the impl class.
    In order to get info about which roles the BP is maintained , you can use FM BUPA_ROLES_GET_2.
    Hope this helps you.
    Cheers,
    Rishu.

  • Problem in Creating a Business Partner Role

    Hi Frns,
    I am trying to create a BP Role from CAC->SAP Business Partner->Business Partner->Business partner Roles->Define BP Roles.
    I copied BUP003 and given my BP Role name as ZEmp.
    When i try to save it, it is giving an error message saying
    "NO STANDARD ASSIGNMENT DEFINED FOR BP ROLE CATEGORY BBP003".
    I have checked in BBP003 Category in the same.
    What could be the problem?
    Thanks in Advance
    Rohan

    Hi Roshan,
             You have Created a BP Role,
    You must also have assgned the Same to a BP Role Category Check the Settings for BP Role Category Assignment and when Appropriate you shall Assign Std Assignment of BP Role Category to your BP Role by Selecting the Check Box
    Referal Notes:
    BP Role Category
    Attribute of a BP role.
    Use
    The role category makes it possible for SAP and customer programs to program on the BP role.
    Dependencies
    The role category depends on a differentiation type.
    Any number of BP roles can be assigned to a role category, with one role always acting as the standard role per role category.
    It is possible to control the update of a role by assigning a role category to a role.
    Hope it Anwers your Queries..
    Thanks and Regards,
    RK.

  • Business Partner Role  and Business Partner Grouping

    Hello Everybody!
    Business Partner Role  and Business Partner Grouping.
    Which correlation ist between this attributes existing.
    In which table are this infos stored, In order create I can use
    e.g. BUPA_CREATE_FROM_DATA
    but how is the way inversely. Suppose I want to abtain the information
    about a existing business partner which group he has etc.
    Regards
    sas

    Dear Sas,
    Business Partner Grouping is used to determine the number ranges to be used by the business partner at the time of creation.
    Business Partner Role determines the subset of all the data available to be shown and edited.
    I will give you a very simple (but imaginary) example for understanding the role concept: the business partner in a role of employee might allow you to enter a department id. So this field should be available to you for input when you edit the business partner in the role of employee. But suppose the same business partner is also a person who is your customer. And your customer will require a default payment term. So this field should be available for input when you edit the business partner in the role of a customer. Also, some applications use these roles to determine if the business partner is suitable for particular transaction. In the above example, Payroll application will only allow those Business Partner to be used if they are maintained as an employee. Similarly the sales application can mandate that you can only sell a product to a business partner if he is maintain in a 'customer' role.
    Please understand the example above is not real but given for the understanding of the concept of role.
    You can use the function module 'BUPA_CENTRAL_GET_DETAIL' to find the business partner group. And you can use the function 'BUPA_ROLES_GET' to find the role assigned to a Business Partner.
    Regards, Rakesh

  • Preallocation of business partner role?

    I want to preallocate a business partner role in display mode of transaction BP.
    Is it possible via customizing or do I have to develop something? If yes - how?
    E.g. Every time I call transaction BP, the role BUP002 should be default in display mode.
    Regards
    Andreas

    it´s a CRM 5.0...

  • Business partner role in purchasing

    Hi ,
          I am working with PO , i need the to know where business partner role data is saved,
    I tried to post PO with business partner to check the table EKPA , but i dont find the data there.

    Hi
    Vendor's Data is stored in LFA1. Customer's Data is stored in KNA1.
    Regards,
    Vishwa.

  • JDev 10.1.3.3 - issues with imported Business Components

    Hi,
    I have got some issues with importing Business Components in JDev 10.1.3.3.
    I cannot discover/use the imported components.
    What I did is the folowing:
    1. In a existing project I extended the default base-classes to create our own layer
    2. created a project called ModelShared
    2a. configured the project to use the base-classes I created in step 1
    2b. created an entitybased-viewobject (RefCodesByDomain)
    2c. created bc deployment-descriptors
    3. created a project called RelatieModel in the same workspace as ModelShared
    3a. added dependencies to the deployment-descriptors as well as the project created in step 2
    3b. configured the project to use the base-classes I created in step 1
    3c. imported business components
    Although I did not recieve any errors during the import of business components, I am unable to add the vo (RefCodesByDomain) to a service.
    I do see the package which contains the vo but is has no entries.
    Importing the business components to a new BC Project in a seperate workspace did succeed (I could reuse the vo).
    I tested a little further and the folowing occurred:
    4. I created a new vo in the ModelShared Project
    5. I deployed the ModelShared
    6. Restarted JDeveloper
    7. Got the folowing error message in the console window when expanding a service in my datacontrol pallette:
    INFO: oracle.adf.share.config.ADFConfigFactory No META-INF/adf-config.xml found
    1-sep-2008 13:23:27 oracle.adf.dt.controls.DataControlsTreeWillExpandListener treeWillExpand
    FINER: THROW
    java.lang.NullPointerException
            at oracle.adf.dt.objects.JUDTViewReferenceAccessorDefinition.init(JUDTViewReferenceAccessorDefinition.java:108)
            at oracle.adf.dt.objects.JUDTViewReferenceAccessorDefinition.<init>(JUDTViewReferenceAccessorDefinition.java:98)
            at oracle.adfdt.internal.meta.bc4j.BC4JDataControlDefinition.createViewObjectDefinition(BC4JDataControlDefinition.java:228)
            at oracle.adfdt.internal.meta.bc4j.BC4JDataControlDefinition.addViewObjects(BC4JDataControlDefinition.java:208)
            at oracle.adfdt.internal.meta.bc4j.BC4JDataControlDefinition.loadStructure(BC4JDataControlDefinition.java:110)
            at oracle.adfdt.internal.meta.bc4j.BC4JDataControlDefinition.getStructure(BC4JDataControlDefinition.java:407)
            at oracle.adf.dt.controls.treemodel.jsr227.JSR227DataControlTreeNode.loadChildNodes(JSR227DataControlTreeNode.java:129)
    8. In my other "fresh" bc project I was able to use the newly created vo.
    9. When I added a VO to my shared project, all projects that are refering to the shared project loose their vo's in the data-controlpannel
    Do you have any suggestions?
    Regards,
    Romano

    Hi,
    since this appears to be a WebCenter related issue, I suggest to try the Webcenter forum WebCenter Portal or to log a bug
    Frank

  • Issue with executing Business Rules from Planning web

    Hi,
    We are using Hyperion Planning 9.3.0.1 and we keep getting an issue with the Business Rules. We get an error if we try to run the rules from Planning web. The same rules validates and executes fine if we run it from AAS. This issue gets resolved if we restart the Planning and RMI service. But this issue keeps happening randomly. Is there a permanent resolution to it? Is it a bug or I am missing something here?
    Thanks and Regards,
    Amol
    Edited by: user638718 on Apr 7, 2009 5:20 PM

    Hi,
    Have you installed any of the patches for 9.3.0.1, I think it goes up to 9.3.0.1.09
    One of the fixes was :-
    8-665086601 (6588823) – When the Business Rules connection to the relational database is lost, Business Rules does not reconnect to it. To solve this problem, an optional property, HBR_CONNECTION_VALIDATE_TIME, was added to HBRServer.properties. This property specifies a time interval for checking the connection between Business Rules and the relational database. If the connection is not valid, a new connection is established. The time interval is specified in milliseconds and defaults to 300,000 (five minutes).
    Though I know there has been more attention to fixing known issues on 9.3.1 than 9.3.0.1
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Incorrect display Business Partner roles when creating Individual account

    Hi,
    The problem occurs in CRM 5.2. I have changed some business partner roles for both the business partner categories 'Organization' & 'Person'. My settings al correctly displayed in de SAP GUI but not in de webclient (my new business partner roles are only displayed correctly for 'Corporate Account' but not for 'Individual Account'.)
    Does anyone has a clue?
    Kind regards,
    Nigel de la Rambelje

    Hi Joost,
    Thank you for your reply.
    The issue is that different roles are displayed in the webclient compared to the gui.
    For the business partner category 'Person' the following roles are displayed: Contact Person, Employee, Portal Provider & Sold-to Party (and which are the roles we would like to have).
    But, if I create an Individual Account in the webclient, the following roles are displayed: Member, Patient, Physician, Portal Provider & Sold-To Party. The roles Member, Patient and Physician should not be displayed. Where are these roles defined? I would like to hide these roles.
    Kind regards,
    Nigel

  • E-Recruiting 6.0: Business Partner Role For Branches

    Hi Experts,
    In the IMG, SAP E-Recruiting > Basic Settings > Enterprise Structure > Define Business Partner Role for Branches
    Can anyone help in the following:
    1) What is the purpose of Business Partner Role and how does it relate the Branches? Or how can i make use of it?
    2) If i am going to maintain the Company & Branches via the Administrator function instead of IMG, do I still need to configure this step: Define Business Partner Role for Branches
    Thanks.  Will reward points for any helpful tips.
    William

    Hello William,
    the Business Partner is an application / module which belongs to the base components of the SAP. It is used and partly extended by various other applications / modules. Next to E-Recruiting it is used for example by CRM and the financial service solution (FS-CS, FS-PM, FS-RI). All of these modules can put their data for a person or an organization into the same tables. Depending on the installation / system environment or even within one single module the requirements for available fields and business checks as on authorization differ between kinds of business partners (e.g. in FS-CS the commission solution for the financial service sector knows external agents and internal employees which have to be treated differently). The business partner is the element to assign the logical / business role in which a person is handled by the system.
    For E-Recruiting you have 2 kinds of business partners, too. On the one and there are people being candidates and on the other hand there are branches of your company which hire people. The configuration allows you to seperate them if you need to identify anywhen which business partner is a branch and which is a candidate. So far I never tried if this is really working as there is no real use for this I never set it up. The attributes and the business checks are the same anyways.
    Hope that helps a bit to understand the context
    Best Regards
    Roman Weise
    PS: please remember that you have to maintain the branches via administrator bsp application. Using the IMG entry won't work.

  • Business Partner Roles and Account Life Cycle management in IC

    Hi all,
    We have IC agents creating prospects but also back office people (i.e. sales staff) creating prospects. Back office staff uses account life cycle management to identify the prospect role. However, I noticed that the business partner role (prospect in this case) is not visible within the IC - during account creation - because the role is used within the account life cycle role exclusion group.
    I can always enhance the IC component to remove the filter on the BP Role. but question I have is why does SAP IC remove the roles from the role drop down list in the IC account creation screen and how did other people get around this?
    Thanks,
    John

    I am also looking for an answer on this. How did other people who work on Interaction Center get around this? How do you create accounts when IC removes the BP roles mentioned in the Exclusion group config in SPRO ?

  • Business Partner Roles

    Hi Gurus
    We have two Business Roles and one Business Partner Role
    This Business Partner Role we assigned to Two Business Roles so In one business Role Business Partner Role all tabs will work but in other business Role same Business Partner Role some tabs he donu2019t open because he donu2019t have permutation to open those tab
    Ex: we have ABC Sold-to-party and we have xyz Business Role and also 123 Business Role
    If I use xyz Business Role all tabs will open in ABC Sold-to-party
    But if I open 123 Business Role some tabs ware not opening in ABC Sold-to-party In Web Client
    So for this what Configurations we have do
    Please Guide me how to Configure
    Thanks in Advance
    Shetty

    Thank you for your Quick Response
    My Quotation is
    we created one ABC Sold-to-Party
    so i have TWO Business Roles
    Mahesh is one Business Role
    Ramesh is one Business Role
    if i am  log in  through Mahesh Business Role in my Accounts ABC Sold-to-Party in this Business Partner Role Category i will see all Tabs
    But when i am   log in  throughRamesh Business Role in my Accounts ABC Sold-to-Party in this Business Partner Role Category i will see Some Tabs only
    so for this scenario what are the configurantion we have do
    Please Guide me
    Thanks in Advance
    Shetty

  • Business partner role type

    hello friends
    In which table i can get business partner roles .
    I know about BUT100
    i want Business Partner Roles like (sold_to_party,ship_to_party,bill_to_party)

    Hi,
    Though the requirement is not crystal clear, hope following solution meet your requirement ,
    you can use following table
    1) Enter your transaction number in object_id in table CRMD_ORDERADM_H
    2) get guid from above table and pass it into CRMD_LINK
    3) Get the set guid from CRMD_LINK and pass it into table CRMD_PARTNER
    So you will get all the partners in transaction,
    regards,
    PD
    Reward points if it helps......

  • Verizon iPhone 5, 64GB black - is anyone having issues with a very choppy conversation while talking on the phone.  Both my wife and I have the same phones and are both having the same issue.  We can only hear every other word.

    Verizon iPhone 5, 64GB black - is anyone having issues with a very choppy conversation while talking on the phone?  Both my wife and I have the same phones and are both having the same issue.  We can only hear every other word of the person we are talking to.  This happens at home, on the road and in the downtown area while calling both cellphones and landlines. It is intermittent, so we don't know exactly when it will reoccur.  Absolutely no problem with data.  The data speed is great.

    "Wireless devices use radio transmissions, so unfortunately you can't get Service if your device isn't in range of a transmission signal. And please be aware that even within your Coverage Area, many things can affect the availability and quality of your Service, including network capacity, your device, terrain, buildings, foliage and weather."
    Customer Agreement | Verizon Wireless
    While there may be an issue in your area, it is suggested that you don't use wireless service if it's a life or death situation, such as the one you've described.

Maybe you are looking for