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

Similar Messages

  • Business partner number range - Current number set to 0

    I need to initialize business partner number range.
    TCode: BUCF
    0009000000 -0013999000  Current number 9000029
    How can I set Current number to 0.
    I have deleted business partners via BUPA_DEL. I need this to be set to 0 so that can bring in legacy data in the desired number range.
    Any help is greatly appreciated! Thanks

    From transaction BUCF, if you select "Status" tab it allows you to change current number.
    Hope this helps!!!

  • 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

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

  • XRPM- HR ALE ( Business Partner Number Generation)

    Hello All,
    Happy New Year Wishes to All !!!!
    Quick question, I was able to set-up the xRPM -HR ALE setup to transfer employee data and create Business Partners with employee role,in xRPM system, but my client wanted the Business Partner Number as same as the Employee Id.
    i.e if the Employee id is "901037" than the BP in xRPM should also be " 901037" and not the locally generated next available no:
    Is there any  BADI or any appropirate setting which could make this happen ??
    Thanks
    Kumar

    Hi,
    in case you have not solved the problem yet, check oss note 550055!
    regards
    Christine

  • 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

  • BAPI TO CREATE BUSINESS PARTNER NUMBER

    Hi,
    I am using BAPI_BUPA_CREATE_FROM_DATA to create Business Partner number .
    When I am executing the BAPI Business partner number is not getting created in tcode BP.
    I am passing Partner Category = 2
    Central Data = aaa
    Please Help.
    Palak
    Edited by: Palak Singhal on Sep 29, 2008 11:52 AM

    Hi
    After executing the BAPI did you call
    BAPI_TRANSACTION_COMMIT call this after you execute BAPI_BUPA_CREATE_FROM_DATA so that the database gets updated.
    regards
    Pavan

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

  • 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

  • How to get HR Business partner

    Hi all,
    In which table I can fine HR Business Partnerer which are available under Rule ( OOCU_RESP ) Tcode.
    Is there any function module where we can get Business Parter based on Personnel Area and Personnel Sub Area?
    Thanks,
    Venkata Prasad

    Hi,
    Business partner is identified with object type "BP". Table BUT000 stores the business partner information. You can see the Business partner attributes using Transaction code BP using the object I.D.
    Business partner object is not associated with Personnel area or Sub area directly.
    Instead you can find the association of Person (Object P) with Central Person (Object CP) in HRP1001 and you can find association of Object CP with Object BP - Business partner.
    Alternatively, the below functional module is used to determine Determine Employee No. for Business Partner Number
    BAPI_BUPA_GET_EMPLOYEE_FROM_BP
    Hope this information helps.
    Best Regards
    G Raj

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

  • 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

  • Change history of User for Business Partner Number attaching and removing

    Hi Experts
    Is there any t-code in SRM which will show change history of User for Business Partner Number attaching and removing.
    Thanks--
    Guru Prasad Dwivedi

    Serene,
    I am not too sure if anyone can DELETE a Payment Term linked to a BP. The system would not allow this.  If at all a Payment term was deleted, I don't think it can be traced.
    It is therefore very important to use Proper user authorization so that only people authorized to do certain things are doing it and not everyone.
    Suda

  • 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

Maybe you are looking for