Obtaining Org Unit from Business Partner number

Hi,  I am trying to obtain an org unit object id from the bp number that is created when the org unit is created.  I am in a BP BADI, so I only have the bp number, and am in the process of creating a new org unit when the BADI is called.  I have tried to use RH_STRUC_GET but because we are in the creation process this does not retrieve any results.  I understand that this fm reads a buffer to get its results, and the org unit is obviously not in the buffer at this time. 
Could anyone help me to find a function module that will find the org unit in this case?

Hi Ratikant,
Thanks for your suggestion.  This may work if I was looking for an employee's org unit, but I was actually looking for the BP record for the org. unit that was being created.  It would also depend on whether this function module would work before the save and commit has occurred.
I cannot test you solution since I managed to implement a work around where I saved the org unit using a funtion group in another(earlier) BADI so that I could retrieve it in this BADI.  This has been tested and implemented and I don't want to cahnge what is already working!
Many thanks though!

Similar Messages

  • Search employee details from Business partner number input

    Dear friends
    I am searching employee details by having input as a business partner number from infotype 0000. as pernr has only 8 character in size and bp in 10 char in size. would you please tell me how we can access employee detais from business partner number.
    p.s : I am doing this in CRM system
    Business partner  ?->infotype(0000)-->?
    Any help will be appreicated.
    Regards
    Naeem

    Dear Naeem,
    as a CRM environment is not able to run at the same sytsem / client with HR, the employee data (e.g. infotype actions (IT 0000)) only is available in a scenario with ALE-distribution from a HR-system.
    In this case the employee data from HR-system will be distributed via idocs (message type HRMD_ABA) to the CRM-system and saved to databases HRP558x [x=0 - 5; 0= IT0000; 1 = IT0001; 2 = IT0002; 3 = IT0006, subtype 1; 4 = IT0009; 5 = IT0105, subtype 0005, 0010, 0020] for the central person (object type CP).
    The activated business partner integration (table T77S0, group HRALX, switch HRAC) will create / update related business partners (relation is saved within table HRP1001, subtype B207) according to the mapping of data during idoc inbound processing (active CRM implementation of a BAdI HRALE00INBOUND_IDOC processed within the function module (FM) IDOC_INPUT_HRMD (stored in table TBD52 for evcode = HRMD).
    Reading specific infotype data of a central person (databases HRP558x) will be done using the FM RH_READ_INFTY.
    Regards,
    Michael

  • Business Partner Number for Org Model

    Hi Experts
    When we are maintain a Sales org Business Partner Number will automatically generated how it will generating let me what are the customizations for that
    I have one scenario
    Ex: I am taking number range from 10000 to 99999
    We created 99999 customers now we want to maintain anther 10000 customers so how should is increase the number range in system 10000 to 99999 only available so how should I will maintain
    Please tell me
    I will be very happy to reward points.
    Thanks and Regards
    Kumar
    Edited by: Kumar on Sep 24, 2008 12:48 PM

    Hi,
    The integration settings are maintained in the below path
    Img -> Customer Relationship Management -> Master Data -> Business Partner -> Integration Business Partner-Organization Management -> Set Up Integration with Organizational Management
    hopes this answers your query.
    Regards
    Vinod

  • Q: SRM/EBP Organizational units without business partner

    Hi,
    Good day!
    I have a problem on generating business partner when creating an organizational unit via PPOMA_BBP.
    Please see below setting of HRLAX of table T77S0.
    HRALX     HRAC     X     Activate HR Integration
    HRALX     MERID     X     Enter Integration Error in IDOC
    HRALX     MSGRE     0     Recipient of Error Message When Creating BP
    HRALX     OADBP          Business Partner of Standard Address
    HRALX     OADRE          Address Necessary for Business Partner?
    HRALX     OBPON     ON     Integration O-BP Activated
    HRALX     OBWIG     X     Ignore Business Partner Warnings
    HRALX     ONUMB     2     Business Partner Number Assignment (Org. Unit)
    HRALX     OPROL     BUP004     Role of organizational unit in business partner
    HRALX     OSUBG     01     Business Partner Subgroup (Organizational Unit)
    HRALX     PALEO          Log: Organizational Units in ALE
    HRALX     PALEP          Log: Employees in ALE
    HRALX     PBPHR     CREATE     Employees Are Replicated from HR System
    HRALX     PBPON     ON     Integration Employee/BP Activated
    HRALX     PCATS          Integration P-BP for CATS Activated
    HRALX     PLEVE     3     Log: Detail Level of Error Messages (1 - 5)
    HRALX     PNUMB     1     Business Partner Number Assignment (Employee)
    HRALX     PPROL     BUP003     Role of employee for business partner
    HRALX     PQUAL          Import Qualifications
    HRALX     PRTON          Log Active
    HRALX     PSYNO          Log: Organizational Units in Dialog
    HRALX     PSYNP          Log: Employees in Dialog
    HRALX     USRAC     X     Create relationship to user
    This happens when i changed the HRLAX ONUMB to 2.
    Thanks in advance for your help.
    Regards,
    Glenn

    Hi Glen
    What is the reason you are using ONUMB  = 2. Why are you not using ONUMBE = 1
    Note on ONUMB and PNUMB u2013
    1. For switch value 1, the internal interval is used.
    2. For switch values 2 and 3, the interval is defined by switches HRALX/OSUBG and HRALX/PSUNG.
    3. Additionally for switch values 2 and 3, a grouping must be created (transaction BUC2) for these intervals. So that the system can connect the grouping and number range interval, the name of the grouping must be identical to the name of the corresponding number range interval (the name of the grouping is in the first column of the table).
    4.  If type 3 is chosen (switch HRALX/ PNUMB=3) for the number assignment of business partners of the employee role, switch HRALX/PSUBG need to be created manually in table T77S0.
    Refer to other OSS notes mentioned in the document
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50350f29-1db1-2d10-0194-d6a3bf01a5aa?quicklink=index&overridelayout=true
    Regards
    Virender Singh

  • Business partner number Issue in Service Groups

    Hi ,
    In My Current Business process we are creating Manual Organizational Unit  Service Groups,  at the time of creation system should generate Business partner number with ROLE Organization.
         Recently we are updated system windows to UNIX . from that release system not generating business partner number automatically in Organizational unit .
    I  have run the program HRALXSYNC  to Synchronize organizational unit  in background,  then system generated business partner number but this  number not  visible under organizational unit  beside objective id . Available under transaction BP .
    And we are failed to find service group name under  service groups result list..
    Regards
    Raju

    Can  any One help on this
    Regards
    Raju

  • Displaying Business Partner Number in IDOC status

    I am trying to create a business partner using idoc CRMXIF_PARTNER_SAVE_M03 in we19. Idoc is getting created but does not display the business partner number in 53 status message.
    When i check the in BP transaction using the last name it shows i.e. it created sucessfully but why the BP number not showing in IDOC.?

    It should create a BP of type Org as soon as you add a organization in the Org model.
    Go to Tx  ppoma_crm (Maintain Org Model).
    Create a Org and add other data like address and save it .
    Exit the screen and open the org model again you would see the BP Number under the Business Partner column for the selected Org.You couls also see Code,ID,Valid from,Valid to columns for the organization.
    Take the BP Number and open it through BP transaction.
    Thanks,
    Thirumala.

  • How to look for business partner number in GTS

    Hi Experts,
    How to look for the business partner number in GTS when we have the Customer Id number in r/3?
    Please let me know the path in GTS.
    Edited by: Anurag87 on Dec 9, 2010 2:17 PM

    Hello,
    just simple in GTS in transaction BP find by "3 External number" (which is yours R/3 number).
    Or in se16 table /SAPSLL/PNTBP type in field BPVSY you external number from R/3 system.
    Cheers,
    Gabriel.

  • Automatic Creation of customer from business Partner

    Hi Deepak M
    Thank you very much for your response , but what is the effect of assigning the business partner  number to an internal number assignment in customer account ( FI ). The FI team had assigned an internal number assignment for this account group. What are they supposed to do.
    Please help
    Thank y

    Hi David,
                 If you are creating customers from BP. i.e. first the BP will get created and then customer gets created, the way system behaves is that it creates the BP and get a number is generated for it, then it goes and create a customer with the same number by passing the number already created as BP.
    So the number range for BP should be internal and for the customer account group should be external. you might need to create a different customer account group for REFX customers.
    Assumption: same number range tick is selected in the assignment where we assign the BP group and customer account group.
    Regards,
    Deepak M

  • 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

  • Missing business partner number

    Hi,
    I am working with SRM 7.0, SP09. I have encountered a problem where business partner number is not getting generated for new organizational objects created in PPOMA_BBP. It was working absolutely ok until we started the support pack upgrade from 07 to 09.
    Anyone has any clue, pls suggest.
    Thanks & Regards,
    Prashant

    Hi
    as you aware , fill all address details include mail and save and come out.
    Check BUCF internal number range .Is any thing beyond the limit.
    or
    you can address to SAP
    Muthu

  • 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 number

    Hi, 
           I am working in Real estate module,Can you please let me know How to fetch the Business Partner number from SAP system using the Parnter name with respective role and search term.
    Ashok

    Hi
    Try using this function module
    COM_BSP_SEARCH_BP
    It give you all the details with so many search criteria
    Hope this will help you

  • How to get Opportunity guid from business partner?

    Hi All,
    Could you please let me know function module for getting opportunity GUID from business partner (guid or id)? Where business partner is sales representative.
    Thanks,
    Anup Garg

    HI,
      go to the but000 give the partner number and get the partner guid. Pass your partner number in the table CRMD_ORDER_INDEX  and OBJECT_TYPE = BUS2000111 .
    Regards
    Srinu

  • Search for username (SU01 ID) from Business Partner in SRM

    Hi experts,
    We are working on implementing a change in BADI BBP_ECS_PO_OUT_BADI  for transferring Goods recepient field from SRM PO to ECC PO . However in SRM we ahev teh Business Partner in teh Goods recepient and we need to populate the userid in ECC. Do we have a quick way of getting teh username for the relevant Business Partner.
    Thanks for your help.
    regards,
    Pawan

    Hi Pawan,
    Alternatively you can use FM BUP_PARTNER_GET.
    Give the business partner number as input and it provides username in the XUBNAME field of table T_BUT000
    Regards,
    Nikhil

  • Business Partner Number - HRALX-HRAC  problem

    Hello,
      I am trying to configure Service desk in Solution Manager 7.0
    While creating Business partner through t-code ppoma_crm.
    But after creating Business partner, there is no assignment of Business partner number  to business partner.
    I have check entry  HRALX-HRAC  in table T77S0, in transaction sm30, 
    For HRALX-HRAC flag is not set.
    What should I do to set this Flag?
    Should I set manually or there is any procedure for it???
    Kindly guide regarding this.
    Thanks,
    Chandresh Pranami.

    Dear Chandresh,
    have you activated the BC sets for service desk?
    You can the following
    Go to the following IMG path: Customer Relationship Management -> Master Data -> Business Partner -> Integration Business Partner-Organization Management -> Set Up Integration with Organizational Management.
    Find the entries starting with HRALX. You should have those entries:
    HRLAX - HRAC with the value u2018X',
    create this entry in the table and Save.
    HRLAX-OBPON with the value u2018ON',
    create this entry in the table and Save.
    Regards
    Prakhar

Maybe you are looking for

  • Importing Bookmarks from an HTML Folder

    I had to have a new hard drive install. The tech created a file call old back up which have all of my bookmarks in a HTML folder call favorites. Is there any way to import the whole folder into firefox 4.0 I can go in and do them one at a time, but I

  • How do you connect a Satellite Pro 2100 to a TV?

    Is it possible to connect this laptop to a tv using the video out jack? If so what do you have to do? Any help would be very much appreciated.

  • HP 7510 All-in-One Won't Wake Up

    My networked HP 7510 goes into power saving mode as set in default settings, but will not wake up when a print job is sent from a networked PC - except randomly and for reasons that I can't explain. I can't correlate when it will wake up to any parti

  • How do I get original OS on the computer

    i've recently erased the disk of my iMac, and without a bootable OS I'm unable to start the computer. I had yosemite on the computer, but I don't want to use my apple ID to redownload it, as I'm selling the computer. 2010 iMac originally running snow

  • Oracle 9i and 10G professionals required

    Hi All, A company in Tanzania is looking for Oracle 9i and 10G professionals for immediate requirement. Those who are looking for change and has 4 to 5 years experience can send in your resumes to [email protected] Indians are preffered. Mention "ORJ