How to get business partner number of a Company code

How to get Company code business partner number..
Any FM or table name which can help us to get comapny code business partner number
Actually we want to find the default address number of the company code.
please suggest a way to find partner number of company code or directly to get default address number of the company code

Hello LS Kumar,
Try to use below Code may help:
DATA ls_object              TYPE hrhctobjc.
DATA ls_company             TYPE bbps_es_unit_id.
DATA ls_company_bupa        TYPE hrobjbupas.
ls_object-otype = is_org_unit_id-otype.   
ls_object-objid = is_org_unit_id-objid.   
  CALL FUNCTION 'HR_OBJECTBUPA_GETBUPA'
    EXPORTING
      is_object               = ls_object
    IMPORTING
      es_hrobjbupa            = ls_company_bupa
    EXCEPTIONS
      object_type_not_allowed = 1
      OTHERS                  = 2.
  IF sy-subrc NE 0.
    RAISE EXCEPTION TYPE cx_bbp_es_not_found.
endif.
Which determines the company code of the user belongs to:
CALL FUNCTION 'BBP_OM_DETERMINE_COMPANY'
      EXPORTING
        i_user_id = lv_user
      IMPORTING
        et_compc  =lt_compc
      EXCEPTIONS
        OTHERS    = 1.
Regards,
Sankarbabu

Similar Messages

  • How to get Business Partner Number from Position Code

    Please help me in determining the Business Partner assigned to a particular position in the Organizational Structure.
    Short code of the position is available in table HRP1000 field SHORT.
    Thanks in advance

    Dear Saurabh
    You can determine business partner assigned to organization by using PDP.
    When you assign partner to organization, in relationship tab of partner we notice relationship of "is employee responsible".
    we can use this relation to determine patner assigned to org
    Step 1: Define partner function
    Step 2: Define Access Sequence..Here use "BP relationship" and specify the partner function that you are going to determine from organization.
    Step 3: Define PDP
    Step 4: Goto business partner relationship and select maintained sales org and your partner function.
    Your pdp will be able to determine partner assigned to organization.

  • How to get business partner/contract account if i have DFKKKO-OPBEL?

    HI Gurus,
    Can you please tell me the way to link DFKKKO-OPBEL(Number of Contract Accts Rec. & Payable Doc.) field with business partner(FKKVKP-GPART) or contract account(FKKVKP-VKONT) in CRM. I have input as OPBEL and its my requirement to get business partner and contract account.
    PLease help me on this
    Thanks
    Sudipto

    Hi,
    You can surely get GPART and VKONT from DFKKOP table for the relevant OPBEL.
    Thanks,
    Vimala P

  • How to get busines partner number from organization id ?

    Hello,
    I'm working into SRM 4.0.
    I would like to determine the business partner number of an organization for which I know the organization id ('O' + number).
    Do you know a way / function module to achieve it ?
    Thank you very much for your support.
    Regards.
    Fabrice

    Hi,
         You can enter the name of the org in "NAME ORG2" field of table BUT000 to get the BP id in the field "PARTNER".
    BR,
    Disha.
    Pls reward points for useful answers.

  • How can I Business partner Number create manully or Externally In SRM 7.0?

    Hello all, I am working in SRM 7.0
    1. I am trying to replicate Employee from backend system to SRM, but I want that all Employee have same number in two  systems, for example:
    Employee 1000 in backend shows as 1000(Employee ID or Business Partner ID) in SRM
    How can I do it?
    2. How can I set Busines Partner Number range as external?
    3. There are several Business Partners in SRM 7.0
        For Example, Internal Bp(Employee, Purchasing Company) and External BP(Invocing Party and Contact Person and Employee so on).
        Is it possible to use each Business partner External Number Range separately?
        Ex) 0000000001 ~ 0000000100 : Employee Number
              0000000101 ~ 0000000200 : Contact Person
              0000000900 ~ 0000001000 : Supplier         
    Thanks in advance                    
    Chris.

    My opinion is standard function not support. Modification(not Enhancment) is necessary....

  • How to get business partner in BUPT for BP screen enhancement ??

    I have enhanced Business partner transaction screen using BDT - BUPT to show a sub screen, my problem is that I don't know how to get the BP no at subscreen level. Please help.

    A subscreen should have the main screen data available, so you just have to refer to the main screen's BP field.

  • How to extend business partner number length

    My legacy business partner id is 13 digits long. But SAP business partner is only 10 digits long at maximum.
    Please tell me how to extend this constraint?
    Giang

    Hi Giang,
    Unfortunately, this is not possible - you cannot extend the length of BP number.
    But there's a simpler way - there is a field called BPEXT in BUT000, this is the external BP number, and can store 20 digits.
    You can transfer the BP number of legacy system into BPEXT field on the SAP system. This is a standard practice and is used by most people.
    Regards,
    Rishu.

  • How to get business partner from premise?

    Hello gurus,
    I'm looking for a way to get the business partner (but000-partner) from a premise number (evbs-vstelle). I tried FM ISU_FINDER but he cannot find a business partner for the object.
    Can someone tell me another function module, table connections or at least sap transactions with which I can do it?
    Thanks in advance,
    Alej
    PS: Points will be rewarded!

    Hi ,
    use this function module  ISU_S_OWNER_FOR_PREMISE .
    or  you can try this path:
    you have EVBS-VSTELLE (Premise)
    get the  EANL-ANLAGE(Installtion) from VSTELLE
    each Installtion have one Contract so
    get EVER-VERTRAG(Contract) from  ANLAGE
    Now you can get the Contarct Account from Contract.
    get FKKVK-VKONT(Contract Account Number) from  VKONTO of EVER.
    Now you can get BP Number from Table (FKKVKP-GPART ) .
    use this if you not able to find any FM or BAPI , because its not a efficient way .
    revert back if any query.
    regards
    Deepak

  • How to get business partner no from guid of shopping cart

    Hi experts,
    is there any relation between guid of shopping cart  and business partner in but000 table , here  we need to find the approver for the shopping cart based on guid  , when it is just being created in single step approval. we are using process controlled workflow in srm 7.0.
    Thanks
    kamakshi

    Hi Kamakshi,
    I do not which FM can do the trick.  But you can build your own FM by searching table swiwiobjct, provide below data:
    -  objtype = 'BUS2121'
    -  objkey = shopping cart number
    -  wi_stat = COMPLETED
    -  wi_rh_task = TS10007991 (or other tasks to set SC status to released)
    Then  the value(s) of field wi_aagent should be the user ID of approver.
    Regards,
    Donald

  • How to get business partner name from sap user

    Hello,
    We want to get in the code the business partner name from sap user.
    What function modules should we use to perform it?
    Thanks in advance,
    Sergey

    HI,
    You can use the FM:CRM_CENTRALPERSON_GET
    pass the input parameter IV_USERNAME as the user name
    You can get the result in the export parameter EV_NAME as user's first name last name
    regards,
    PP

  • Business partner number of an employee

    Hi,
    How to get business partner of an employee.
    Any standard data source is there for the same.
    Regards,
    Kiran

    Hi,
    You can get the BP assigned to an Employee from the table HRP1001.
    Give OTYPE = 'CP', OBJID = Personnel number of the employee.
    The field SOBID will give you the BP number.
    Using the BP number, you can get all the business partner central details from BUT000.
    Regards,
    Rishu.

  • To get Business Partner using Email Id

    Hi,
    How to get business partner using Email ID.
    Thanks in advance.
    Regards,
    Sheela

    Hi Shantha,
    There are numerous Function Modules already written to fetch data which contains details of the BP. For your requirement use the FM "BAPI_BUPA_SEARCH", pass the email address as the input and in the searchresult structure you will find the BP id.
    Regards,
    Harshit

  • Can Business Partner number and Vendor Number, Plant Numbe be same in SRM ?

    Hi Experts,
    We are configuring SRM7.0 with ECC6 ( Ehp4) having Classic Scenario .
    I configured sandbox, and everything working fine.
    I have one query.  The Business Partner Number and the Vendor Code or Plant code are different. So while entewring the Location key in Shopping cart we need to enter BP code, by drilldown ( In drilldown we can see ECC Vendor Plant number).
    Its no big problem,.
    Can anyone suggest  whether it is possible to have both Unique or exactly same , so no need to remeber both code or see in drilldown.
    Thanks
    NAP

    Hi Narendra
    Location - BP can be different only since plant assign  always internal BP number only so BP number and plant number can not be same.
    but Vendor you have two options .
    External Number  - if you were selected BP and Vendor number will be remain same.
    Internal Number - if you were selected BP and Vendor number will be different.
    visit BUCF tcode for Internal and External BP number configuration.
    See our Mentor Ricardo detail explanations
    http://wiki.sdn.sap.com/wiki/display/SRM/ECCPlantorLocationnumberisnotdisplayedinShoppingCart
    All the associated parties which are used in the SRM environment (like location, recipient and supplier) are modelled as business partners.
    Due to this fact the user interface displays the business partner numbers in a uniform manner, as the business partners are the technical representation of the involved parties.
    In order to give the user a better idea which business partners are shown by the numbers, a little text is displayed next to the corresponding field (e.g. 11147 - Werk Hamburg).
    When ERP plants are replicated to SRM system, plant numbers are converted into business partners and a new ID is assumed.       
    Muthuraman

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

Maybe you are looking for