Duplicate check: access ID of current business partner

Hello,
we're using BADI ADDRESS_SEARCH to perform duplicate check of business partners in CRM 7.0.
Some relevant address fields are passed to method ADDRESS_SEARCH (e.g. city, country, ...), however, not the partner ID or the GUID of the business partner.
Is there any chance to access the currently processed business partner from inside the BADI method? The former (CRM 4.0, 5.0) BDT function modules "BUPMEMORY" don't work any more.
The thing is that we need to control the duplicate check based on several BP attributes like grouping, BP role, and so on.
Kindly consider that we're not in the IC (interaction center) but in the CRM web client (role SALESPRO)
Many thanks for any help & kind regards
Wolfgang

Hi,
One way is to enhance the custom controller of the BP_HEAD component, add a new attribute e.g., BP No or GUID and set its value on submitorenter event or save event and inside the BADI retrieve the custom controller reference to fetch the BP No or GUID.
Regards
Prasenjit

Similar Messages

  • To get Current Business Partner number In BADi

    Hi All,
    In Tcode BP (for creating Business Partner) i am using BADi  'BUPA_GENERAL_UPDATE'. In this i want get Current Business partner No Assigned for the current Creation process.Suggest me how to get Current Businees Partner no assigned or current creation.
    (Actually in the program wher this BADi is calling there is internal table mem_but000 which has the but000 details incluiding what Business partner number assigned for current creation.Is it possible to get details from this itab in my BADi implementation Method.)

    Hi,..
    U can use field symbols and get the values of the internal table into ur BADI
    FIELD-SYMBOLS: <fs_wa> TYPE table .
    UNASSIGN <fs_wa>.
    ASSIGN ('(program name)mem_but000 ') TO <fs_wa> .
    program name is the name of the program where this internal table mem_but000 is having data..
    U will get all the entries of the internal table in field symbol..
    decalre internal table like mem_but000 and assign the filed symbol data into internal table .
    IF sy-subrc EQ 0.(sy-subrc check for the assign statement)
    t_mem_but000  = <fs_wa>.
    endif.
    regards
    Sheeba

  • How check the user roles in Business Partner edition screen?

    Hello Masters,
    I'm having a little problem figuring out how to check the user roles to allow modification in some fields.
    At the 'Manage Organizational Data' screen ('Manage Business Partners' -> Business Partner Data -> edit). I need to check the user roles to let him change the 'Tax Numbers' values. The values can be changed only if the user is a administrator; otherwise it must only show the value.
    I checked the HTML Template and found where I can restrict this edition option, but the problem is that I don't know how to check the user roles here. Maybe there is a function to do this?
    Any ideas of how I can do it? Is there any magical BAdI to check this?
    Thanks in advance,
    José Omar

    Hi José Omar,
    there is no BADI for this...
    You have to change the standard code to display only tax data if the SY-UNAME does not have correct role.
    You can retrieve user roles with BAPI_USER_GET_DETAIL, or access directly the activity groups table.
    Rgds
    Christophe

  • Check in BADI when updating Business Partner

    Hi.
    This question is regarding in general how to know which tables, classes etc. that you are able to use when you are in a BADI.
    I guess this BADI should be used: BUPA_IDENT_UPDATE, or it might be PARTNER_UPDATE.
    I need to check if ID_TYPE when Update or Insert new ID during Save of partner.
    When pressing F6 a few times I can see in the call of funtion BUP_BUPA_UPDATE that variable mem_but0id and there the kz variable is I for Insert.
    But this is outside the BADI, how would I find this information from the BUPA_IDENT_UPDATE???
    Thank you very much in advance!
    BR
    Mattias

    Hi,
    yes, the existing payment methods were defined manually before update.
    But the payment method was not included for that business partner.
    Here are some hardcopys before update and after update.
    [BP Master Data Before Update DTW|http://www.sap-potsdam.de/BoneUpload/BP_before_Update.JPG]
    [BP Master Data After Update DTW|http://www.sap-potsdam.de/BoneUpload/BP_after_Update.JPG]
    Jacqueline

  • Restricting Business Partner, Customer, and Vendor access

    Hi,
    We have the synchronization set up for the business partner and customer for REFX.  The requirement is to allow access to change the Business Partner record in tcode BP, when as a General Business Partner, but only allow view access to the Customer information.  I have tried limiting the following objects to 03 but to no avail.  Any help would be appreciated:
    B_BUPA_FDG
    B_BUPA_GRP
    B_BUPA_RLT
    F_KNA1_BED
    F_KNA1_GRP
    V_KNA1_BRG
    I would rather have the users have access to the following so that the Business Partner can be updated:
    B_BUPA_ATT
    B_BUPR_BZT
    B_BUPA_FDG
    B_BUPA_GRP
    B_BUPA_RLT
    Is there a combination that I am missing?
    TIA

    Hello Rao
    I am also looking for solution. could you give some details on this, How did you solve your problem.
    Thanks,
    Ram

  • Business partner creation error

    Hi Gurus,
    1) We don't have pre-configured standard settings for FICAx (for ex standard contract categories, document types, number ranges, main and sub-transactions) in our system. Can anyone tell me how to load the pre-configured settings in SAP.
    2) In BP creation after entering all the BP fields, if I try to save the data it says the BP has been created but gives a dump. We were not able to find that BP when we try to look up. I am not sure if it is a configuration issue or is it due to improper loading of FI-CA.
    3) We have the same issue with contract account creation CAA1, CAA2, or CAA3. When we try to access transaction it gives dump.
    The current ABAP program "SAPLBUSS" had to be terminated because it has
    come across a statement that unfortunately cannot be executed.
    The following syntax error occurred in program "SAPLFSP35 " in include
    "LFSP35TOP " in
    line 36:
    "Missing length check at runtime"
    The include has been created and last changed by:
    Created by: "SAP "
    Last changed by: "SAP "
    Error in the ABAP Application Program
    The current ABAP program "SAPLBUSS" had to be terminated because it has
    come across a statement that unfortunately cannot be executed.
    Please advise and points will be awarded for all useful solutions.
    Thanks
    Santosh
    Edited by: Santosh Kolleti on Dec 15, 2008 6:39 PM

    Hi Mahesh,
    Thanks for the info, i did check the validity in the Business Partner and it is coming correctly for the one which are created.
    Issue i am facing is while creation of business partner, is the any field in customer master which govern the validity of Business Partner while creation.
    Thanks & Regards,
    Ravi

  • Aditional Properties in Business Partner Master Data

    Good Morning,
    I have a doubt:
    There is any way to create some addicional properties in the Business Partner Master Data?
    Thank you,
    Susana Cunha.

    Hi Susana,
    The current system maximum properties are 64. You cannot define more.
    However, as an alternate you can check the "Group" in the Business Partner Master Data and then can define different Properties for different Group of Business Partners.
    Check this if any help in your case.
    Regards,
    Jitin
    SAP Business One Forum Team

  • Searching in business partner master data (properties and contact persons)

    Hello,
    concerning the need of a customer i am asking for a optimizing of the search in business partner master data.
    It should be possible by a soon coming patch to have the tabs properties and contact persons available in the search modus.
    I hope this is a functionality which SAP looks on like a nice and essential function, too, and can integrate this in a soon coming patch.
    The customer is running SAP B1 2005A PL39
    The same funktion concerning the properties would be great at the item master data.
    This post is concerning the sap support message 842328 / 2008.
    Thank for assistence in solving this nessaccary issue.
    Michael Hubenschmid
    MTF Schaffhausen AG
    Edited by: Michael Hubenschmid on Oct 8, 2008 4:18 PM

    Hi Susana,
    The current system maximum properties are 64. You cannot define more.
    However, as an alternate you can check the "Group" in the Business Partner Master Data and then can define different Properties for different Group of Business Partners.
    Check this if any help in your case.
    Regards,
    Jitin
    SAP Business One Forum Team

  • Messagw while trying to create Business partner (BP) object for Recruiter

    Hi,
    We have upgraded E-Recruitment from EHp2 to EHP4.
    When I tried to access Recruiter dash board through recruiter ID, I got error "You are not authorized to see this". After checking it is found that business partner object is not created for Recruiter ID. So tried to create through program RCF_Create_user. But while running this report, I am getting message like "candidate number is already exist" and I am not able to proced further. I checked relationship A650, also table HRP5102 for candidate details for this Recruiter personeel number. But no where it is available.
    Could anybody please tell how to proceed on this? Where to see candidate details for an employee? How to delete candidate details if exists so that I can create business partner object again via program RCF_create_user.
    Anybody's help is appreciated.
    Regards,
    Purnima

    Hello Purnima,
    as you started from an authorization error message, have you tried to assign SAP_ALL to the user and check if the application was working? Did you regenerated SAP_ALL after the upgrade as otherwise the authorization for the new application might still be missing.
    I first thought the BP relation was missing after your upgrade but in your 2nd post you said you deleted CP-BP relation among others. Was this a typo or was the relation existing but the business partner missing. This would be very suprising as it is not that easy to get rid of one.
    It is very strange if RCF_CREATE_USER is still not working after deleting all relations. If you only deleted one relation from CP it might be necessary to delete the other direction for all objects being internal. BUT be aware! Changing HRP1001 data this way will lead to inconsistencies in the system.
    The only additional thing which comes to my mind is the integrated installation. Here the user for the candidate is not read from HRP1001 but directly from the PA infotype 0105. So there might be another candidate joined to the user this way if you use an integrated landscape.
    But before you start changing hrp1001 by hand please always get the CP id for the candidate, go to SE80, open class cl_hrrcf_candidate and test the get method. (you need the cp id as you have to enter the first id on the method test screen, the others won't work due to the usage of "is supplied" in the method combined with the methgod tester). In the result check if there is really no BP Id resolved.
    If the relation or the bp object really got lost during the upgrade, I'd check if this is a single case or more candidates were effected. If so I'd in every case get in contact w/ sap suppport.
    Kind Regards
    Roman
    Edited by: Roman Weise on Mar 14, 2010 6:43 PM

  • CICO - Business Partner details of the account selected not appearing

    Hi,
              I am a R/3 Basis consultant and I am not much aware of the functionality of the transaction CIC0. The User is facing an issue while accessing transaction CIC0 - Customer Interaction Center. The User first clicks on yellow arrow near the search string and provides the contract account in the prompted screen.Presses "Enter" for three times and gets the invoice details. Under Invoice selects the bill, double clicks on it and presses "End Contract" to clear data. Now the first screen appears and again he continues as earlier. But this time he clicks on yellow arrow on search string, provides different contract account number, presses "Enter" button. But nothing appears even he presses "Enter" button n times.It doesnt moves to Business Partner details of the account selected. It always works for the first entry and does not work from the second entry. Even if the enter key pressed for n times, the text boxes are not automatically populating the relevant information. There was no any change in GUI Version. But seems to be there was a upgradation in Desktop Version GI-Desktop from 1.8 to 1.9. Since then this issue is occuring for all the users. Is it because of this upgradation or any of you have come across this scenario earlier. Please advise on this issue as I need to resolve this issue at the earliest.
    Thanks in advance for any valuable inputs which will resolve this issue.
    Regards,
    Shahul

    You have a few options:  execute a customer change or use the account holder functionality, or reverse all transactions and redo with correct partner.
    The account holder would enable you to keep the account number, but it only allows you to add a new business partner as related.  You cannot remove the current business partner relation, and thus might not be appropriate.
    The customer change process moves the contracts and account from one bp to another.  This will result in a new account number.
    Lastly, you can reverse the bills and moves, and then re-execute them with the correct bp. 
    regards,
    bill.

  • Invalid Business Partner Assignment via BAdI CRM_ORDER_MAINTAIN

    Hi all,
    I'm on Solution Manager 7.1 (SP3), and currently, I'm working on BAdI CRM_ORDER_MAINTAIN (method PREPARE) to populate business partner on WebUI (TCode CRM_UI). The Business Partner populated successfully on Parties Involved panel via the above mentioned BAdI.
    However, the only thing that puzzled me is; I encountered an error message, Business Partner 302 (Team Lead) is not a business partner, although Business Partner 302 is populated correctly in CRM_UI. Please note that Team Lead is customized Partner Function.
    I've checked the master data, and Business Partner 302 does exist. Does anyone knows why I would encounter the above error message eventhough Business Partner 302 has been maintained?
    Thanks in advance.
    Regards,
    Patrick

    Hi Patrick,
    can i know how to populate the busniess partner in webUI, i tried using CRM_ORDER_MAINTAIN in ORDER_SAVE BADI(method PREPARE), but is not getting populated in webUI.

  • Deletion of Business Partner from tcode "BP"

    Hi!
    I set up ChaRM functionality and have the problem that for one existing Business Partner
    from tcode "BP" the error message comes up:
    The current business partner does not have a vald assignment to change Request Manager or Organization.
    Therefore I would like to delete this value from tcode BP and recreate them.
    Question
    Does anyone know how to delete business partner from tcode "BP"?
    Are there some report, functional module, etc. for this approach?
    Thank you very much!
    regards
    Thom Heinemann

    Hi!
    When I try tp delete a business partner by usage of tcode "BUPA_DEL" I get the warning that this business partner will be used in some transactions.
    Therefore I closed all the messages with theis assignment.
    Unfortunately when I start CRM_DNO_MONITOR I see that some service desk messages with this business partner still exist, bu are closed.
    Question:
    What is the report or tcode to delete all the closed Service Desk messages?
    Thank you very much!
    regards
    H. Thomasson

  • Entering Business Partner data from IC Webclient - CRM2007

    Just wanted to check that if I enter Business partner data from the IC Webclient is the data stored in the CRM backend tables for example BUT000, BUT050 etc and if so is this done on the fly or a scheduled update? If not what tables are they stored in.  Also can I see the same information once it is entered in the webclient via the CRM transaction BP Thanks

    Hi Niten,
    The tables are the same (for example: but000 for master partner data, but050 for relations, and so on...).
    The data is updated when you press the respective save button, or when you press the 'end' button at telephony bar (to end an Interaction Center Interaction).
    And yes, you can then check the information in BP t-code.
    Just try it and see by yourself
    Kind regards,
    Garcia

  • Retrieve Business Partner number

    Hi all,
    we've upgraded from CRM 5.0 to CRM7 (2007). And some functionality that used to work involving a BAdI, no longer works for us. Here's the original situation using the 'old' SAP GUI:
    After changing a business partner or one of its relationships, our BAdI implementation of PARTNER_UPDATE is triggered. In here, the current business partner is retrieved using BUPA_GENERAL_CALLBACK. This works just fine. This also works fine if one of the EEWB (Easy Enhancment Workbench) fields on a relationship has changed. We need the business partner in order for us to replicate the relevant data to an external NON-SAP system.
    In CRM 2007 via the WebClient UI, this BAdI is triggered as well during a change of the business partner, one of it's relationships and even after a change of one of the EEWB fields. So far so good, however, we are not able to retrieve the business partner number after a change of the validity period of the relationship using BUPA_GENERAL_CALLBACK. This is not a real problem since we can also use BUPA_BUT050_CALLBACK as an alternative. Bit of extra coding, but no problem yet.
    The real problem occurs, if we change a EEWB field. In this case both callback-function modules do NOT return any data at all. So I tried to use the generated function module ZZNZK_BUPR_CALLBACK to retrieve the business partner being processed. But this function module generates a dump, saying that the COMMIT WORK should not be interrupted (SYSTEM_ON_COMMIT_INTERRUPTED).
    So main question actually is: How can we, in all cases (changing a business partner, on of its relationships or even an EEWB field on the relationship), retrieve the business partner from memory?
    Kind regards,
    Micky.
    P.S. In the BAdI documentation SAP suggests to use the CALLBACK function modules, but they don't always (especially in case of EEWB field change) necessary do the job.
    P.S. Not sure if this is the correct forum, since this BAdI is also triggered in non CRM related scenario's. However, the problem only occurs as of the upgrade to CRM 7 and the use of the webclient.
    I'm waiting.....

    Hi Micky,
    The problem occurs due a change in memory handling between the SAP gui and the web ui. SAP gui basically fills all the memory for datasets that need to be displayed on the screen - which means that even if you change relationship data, the bp's address memory is also filled and thus the CALLBACK returns the memory contents.
    In Web UI, the background processing uses BAPIs or APIs. The memory is filled ONLY for the dataset that you are changing. Hence, you can't always get the data from any CALLBACK, but you need to use the specific CALLBACK.
    Your approach here is quite correct in using the EEWB callback, but i honestly do not know why the dump occurs. I do however know that the handling of relationship data is 'hopeless' - with an overlapping of dialog and bapi modes, which makes such dumps very common during post processing of relationship data. This problem would be much easier to trace under debugging, but its tough to estimate a guess - more so since its sue to a Z field.
    The best bet would be to raise an OSS for SAP, since EEW ought to generate perfectly working callbacks as well, and these callbacks are perfectly allowed for use in all customer implementations. Ideally, the EEW callback ought to have returned the memory contents for the EEW field if it had been changed during the process.
    Cheers,
    Rishu.

  • Business partner changing in contract account

    Hi, all.
    Inform, please, somebody by experience, whether it is possible business partner change in contract account?
    At creation of the contract account the incorrect business partner was wrongly specified. In result one business partner had two contract accounts (one not him), and other business partner - any. This error was detected not immediately and exists several already billed and invoiced periods for today.
    Whether it is possible somehow assign to the contract account of other (correct) business partner (instead of existing) or transfer the contract account (without change its number) with all contracts from one business partner to another?
    Thank in advance.

    You have a few options:  execute a customer change or use the account holder functionality, or reverse all transactions and redo with correct partner.
    The account holder would enable you to keep the account number, but it only allows you to add a new business partner as related.  You cannot remove the current business partner relation, and thus might not be appropriate.
    The customer change process moves the contracts and account from one bp to another.  This will result in a new account number.
    Lastly, you can reverse the bills and moves, and then re-execute them with the correct bp. 
    regards,
    bill.

Maybe you are looking for