Bapi - relationship on BP with sales area data - urgent

Hello,
I am still looking for BAPI for creating relationship between business partners with sales area data in CRM 5.0.
Example - I would like to create relationship type CRMH03.
Bapi BUPR_RELATIONSHIP_CREATE does not allow for maintaining sales area data (Sales org, distribution channel, division).
Does anybody know such a bapi?
regards
Radek

Hi,
U can implement the FM accordingly :
declare the data.
DATA : LT_NEW_ENTRIES TYPE STANDARD TABLE OF BAPIBUS1006_SALES_AREA,
LW_NEW_ENTRIES LIKE LINE OF LT_NEW_ENTRIES,
LT_RET TYPE TABLE OF BAPIRET2..
*Assign the required values
LW_NEW_ENTRIES-SALES_ORGANIZATION = 'O 50000000'.
LW_NEW_ENTRIES-DISTRIBUTION_CHANNEL = '01'.
CALL FUNCTION 'BUPA_PFCT_ADDFUNCTION'
  EXPORTING
   IV_PARTNER1           = '0000000569'
  IV_PARTNERGUID1       =
   IV_SALES_AREA         =  LW_NEW_ENTRIES
    IV_BPFUNCTION         = '00000004'
   IV_PARTNER2           = '0000000568'
  IV_PARTNERGUID2       =
  IV_STANDARD           =
   IV_TESTRUN            = ' '
   IV_X_SAVE             = 'X'
TABLES
   ET_RETURN             = LT_RET
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
   WAIT          = 'X'.
Hope its useful.
Regards,
Shwetha.

Similar Messages

  • CRM - Bapi for creating relationship between BPs with sales area data

    Hi
    I am looking for BAPI for creating relationship between business partners with sales area data in CRM 5.0.
    Example - I would like to create relationship type CRMH03.
    Bapi BUPR_RELATIONSHIP_CREATE does not allow for maintaining sales area data (Sales org, distribution channel, division).
    Does anybody know such a bapi?
    Regards
    Radek

    Hey Radek,
    I am actually looking for the same functionality. Were you able to find a solution although no one replied to your question in this thread? If so, it would be very helpful for me to know. Maybe you have to combine more BAPIs in order to add the organization information to the relationship. But I have no idea how.
    Best Regards
    Mirko

  • BP Relationship with Sales Area Data

    Hi,
    I am trying to create BP relationships with Sales Area Data and partner functions using FM BAPI_BUPA_PFCT_ADDFUNCTION, however, I am unable to do so because the chose partner function is time dependent. When I try to create the same relationship from the tcode BP, I am able to do so.  BAPI_BUPA_PFCT_ADDFUNCTION is not called in this case. Can anybody tell me which FMs are used so that I can use the same in my custom development.
    Thanks,
    Sarat

    Hi,
    U can implement the FM accordingly :
    declare the data.
    DATA : LT_NEW_ENTRIES TYPE STANDARD TABLE OF BAPIBUS1006_SALES_AREA,
    LW_NEW_ENTRIES LIKE LINE OF LT_NEW_ENTRIES,
    LT_RET TYPE TABLE OF BAPIRET2..
    *Assign the required values
    LW_NEW_ENTRIES-SALES_ORGANIZATION = 'O 50000000'.
    LW_NEW_ENTRIES-DISTRIBUTION_CHANNEL = '01'.
    CALL FUNCTION 'BUPA_PFCT_ADDFUNCTION'
      EXPORTING
       IV_PARTNER1           = '0000000569'
      IV_PARTNERGUID1       =
       IV_SALES_AREA         =  LW_NEW_ENTRIES
        IV_BPFUNCTION         = '00000004'
       IV_PARTNER2           = '0000000568'
      IV_PARTNERGUID2       =
      IV_STANDARD           =
       IV_TESTRUN            = ' '
       IV_X_SAVE             = 'X'
    TABLES
       ET_RETURN             = LT_RET
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
       WAIT          = 'X'.
    Hope its useful.
    Regards,
    Shwetha.

  • Create Account with Sales Area data

    Hi,
    Can we create new account in account identification in Interaction Cetner with Sales area data?
    We need to create accounts(Sold to party, customer, consumer) in the call center and subsequently service orders will be created for the new account.
    Regards,
    Shridhar
    Edited by: Shridhar Deshpande on May 31, 2011 3:52 AM

    Hi ,
    You can create the organisation information in CRM using transation ppoma_crm. Please take a look at this link for some more information
    http://help.sap.com/saphelp_crm50/helpdata/en/56/0d4e3cb7f4d83ee10000000a114084/frameset.htm
    Thanks & Regards ,
    Anita

  • BP Replication with Sales Area Data

    Hi all,
    We are having an issue with BP replication from CRM to R3. The issue is that when we create a new BP and add sales area data to this Sold-To business partner, the BP is replicated to R3 all blanked out. There is no name, address or any data that is replicated. However, if we create a new Sold-To business partner and do not maintain any sales area data, the replication works as expected. Any ideas?
    Thanks in advance. Points will be awarded for helpful responses.
    Message was edited by:
            John S

    Yes, the sales area exists in both systems but I get errors for both scenarios...
    When I create a sold-to BP in CRM and maintain Sales Area Data, the error I get is "Business partner #### does not exist as customer, change not possible" (XR012). In the extended data part, there are two entries under Partner table. The first entry appears to be the Update to include sales area, and the second entry appears to be the Insert of a new customer. However, this new customer uses the Reference Customer information.
    When I create a sold-to BP in CRM without Sales Area Data, I get "Updating could not be completed" (S&150). In the Partner table there is one entry and it contains an Insert for the new customer with all of the new data (no reference customer info in there).
    Any ideas?

  • Need to know how to extract those Sold to Party with sales area data

    Hi,
    As in our system i need to check that for all
    sold to party existings , who are all the having the sales area data.
    how can i able to pull those Sold to Party that does not having sales area data.
    I know that the data is huge , but canot help because some of the Sold to Party maintained in CRM is without sales area data.
    I want to know that if the numbers ar ehuge it can be a customizing problem.
    Waiting for your reply
    Thanks & Regards
    Prajith P

    Hi Prajith,
    Refer to the link, might help u in getting  the BP's with sales area.
    Tables in CRM- Sales Area Data
    Hope this helps!!!
    Prerna

  • IC Web Client: Create BP with sales area data

    Hello Everyone!!
    Is there a way to create BP with sales data information using IC Web Client without BAdI implementation to fill sales data? Any IMG configuration?
    Thank you,
    Alexandre Menezes

    Dear Alexandre,
    You can use template (configuration) for this.
    CRM->Master Data-> Business Partner-> Templates->Enhancements->Define Template Types for Business Partner
    Thanks,
    Atin
    <b><b>Reward points if it helps.</b></b>

  • Bapi for creating Sales Area data on Relationship

    Hi,
    I am looking for BAPI for creating relationship between business partners with sales area data in CRM 5.0.
    Example - I would like to create relationship type CRMH03.
    Bapi BUPR_RELATIONSHIP_CREATE does not allow for maintaining sales area data (Sales org, distribution channel, division).
    Does anybody know such a bapi?
    Regards
    Radek

    hi
    try using these
    BAPI_BUPA_CREATE_FROM_DATA
    BAPI_BUPA_RELATIONSHIP_CREATE
    best regards
    ashish

  • FM/BAPI to add sales area data to a BP , FM to assign relationship to BP

    Friends of CRM world,
    I need your help in finding out BAPI or FM to
    add sales area data to an existing Business Partner (BP).
    Also I need to assign a relationship to this BP.
    Please help me with info on BAPIs or Function Modules for this if you can.
    Best Regards,
    Vivek

    Hi Vivek,
        You should use separate function modules for each tab in the sales area data. Please find the following code:
    For shipping data tab of sales area data
          CALL FUNCTION 'BAPI_BUPA_FRG0020_ADD'
            EXPORTING
              businesspartner = g_partner_no
              sales_area      = wa_sales_data
              data            = wa_ship_data
            TABLES
              return          = it_return.
    For billing data tab of Sales area data
          CALL FUNCTION 'BAPI_BUPA_FRG0030_ADD'
            EXPORTING
              businesspartner = g_partner_no
              sales_area      = wa_sales_data
              data            = wa_price_data
            TABLES
              return          = it_return.
    Use function module BAPI_BUPA_FRG0140_ADD - For organization data tab of Sales area data
          CALL FUNCTION 'BAPI_BUPA_FRG0140_ADD'
            EXPORTING
              businesspartner = g_partner_no
              sales_area      = wa_sales_data
              data            = wa_org_data
            TABLES
              return          = it_return.
    Thanks
    Swagatika

  • Fm or BAPI for Change Customer: Sales area data

    Hello All,
    I need to change tax classification in Sales area data of Changing Customer ( transaction XD02 ).
    Function BAPI_CUSTOMERCRM_CHANGE looks like is ok for this, but I've try it and is not working, maybe i'm forgeting something or is not proper for this.
    Do you know a function for this or an sample with BAPI_CUSTOMERCRM_CHANGE ?
    Note: Function must not be for online store and Internet Sales.
    Any help will be appreciated and rewarded.
    Thank you a lot!
    Bogdan

    Hi again,
    Not the BAPI COMMIT was the problem,
    But I found FM SD_CUSTOMER_MAINTAIN_ALL, which is working realy fine.
    All the bests!

  • Bp relationship wit sales area data - mass changes

    Hi all,
    We keep our BP's relationship with the sales area and function data (in tab usage).
    is there a way to do mass change for this relationship (add/change/delete
    in the past when sales area was not documented in our relationship data, I have built scat which run BUB1 or BUB2 and mass changes could be done. The problem is that now sales area data is not seen in BUB1 and therefore I Can't change the right line via BUB1.
    Has any body  idea how to do it??
    Thanks,
    Rachel

    lv_frg081 TYPE string VALUE '(SAPLCRM_BUPR_CRMH_DIALOG)gt_global_frg0081[]',
        ls_frg80-client            = sy-mandt.
        ls_frg80-partner_guid      = <partner_ch>-partner_guid.
        ls_frg80-sales_org         = <bp_org>-sales_org.
        ls_frg80-channel           = <bp_org>-channel.
        ls_frg80-division          = <bp_org>-division.
        ls_frg80-partner_fct       = c_poueb.
        ls_frg80-rel_partner_guid  = g_pou_guid.
        ls_frg80-valid_to          = '99991231235959'.
        ls_frg80-valid_from        = '10101000000'.
        ls_frg80-relnr             = ls_but050-relnr.
        APPEND ls_frg80 TO lt_frg80.
        CLEAR  ls_frg80.
       Fill the  internal table with Business Partner - Sales Area - Partner Function
        CALL FUNCTION 'CRM_BUPA_BDOC_FILL_REL_TABS'
          TABLES
            ti_frg80 = lt_frg80.
        ASSIGN (lv_frg081) TO <f1>.
        IF sy-subrc = 0.
          <f1> = lt_frg80.
        ENDIF.

  • Extending BP Sales Area data with EEWB

    Hello Group,
    we plan to add a new field to the Business Partner's sales area data (PCUI). A business partner could have more than one sales area, so also more than one time the new field.
    Would I be able to achieve this with the EEWB?
    I have never worked with the EEWB but just read, that using it you can add new fields to the central table BUT000 of business partner.
    Is it possible to add a field to the sales area, i.e. depending on the sales areas of the customer?
    Thanks for help,
    Erik
    Message was edited by: Erik Mueller

    Hi Erik,
    Using EEWB you can only enhance the BUT000 table and add the fields. With EEWB it is not possible to enhance the sales area data.
    In order to do this take the refrence of the SAP oss note 513313. With this they enabled the exchange of the field sales office & sales group.
    Also provide me your mail id, I will send you the MW enhancement guide which will help you to do that.
    <b>Allot points if my post helps!!</b>
    Best regards,
    Vikash.

  • CRM BP type Sold-to-party Sales Area Data button not displayed

    Hi Gurus,
    Currently we are in the system preparation stage, but there's a problem in BP maintenance. For the BP type Sold to Party, the sales area data button is not showing up in the button bar with the General data. I only can see General data and Relationships here.
    The sales area has been maintained in the system already and can be displayed in the reference bp. Not sure any config will affect.
    Appreciate if anyone can give me a clue.
    Rgs, Michelle

    Hi,
    If you have chosen the role, and the button is not coming up following could be the possibilities:
    1. It might sound funny but it is a possibility that You might ALREADY be in the Sales Area data screens. Check if the "General Data" button is active. if it IS active then you ARE in the Sales area data.
    2. If not 1, above, then check the authorisation for the id to create BP for Sold to party and / or Sales area.
    3. Still No, then check if the screen config for creating BP is std or its a customised one wherein maybe the button has been rendered inactive. You can check by taking an existing BP who might already be a sold to part for a sales area. If this is your first case for a Sold to party then you might look at the screen config for sure.
    Do write back if you still need help.
    Regards,
    Tariq

  • Trying to add sales area data to sold to party in CRM using

    Hi all,
    i am trying to add sales area data to a sold to party business partner and i used the BAPI BAPI_BUPA_FRG0010_ADD. it executes i dont get runtime error but i get the error "invalid sales and distribution area" in return table.
    also i see that the sales area data of the sold to party is not updated after i execute my program
    can anyone tell me what i am missing
    Edited by: jessica sam on Nov 13, 2008 8:17 PM

    hey Rob i dont know if the configuration is done.but if i try to create a sold to party business partner in the screen in CRM i sales area data tab----->sales area, i find the drop down list with the values for sales organization, ditribution channel and division.
    i am able to create a sold to party in CRM and it is replicating in ECC. but if i try to display the sales area data of a sold to party that i created using the function module BAPI_BUPA_FRG0010_GETDETAIL
    it throws me an error saying invalid sales area data.
    Also i find that data is there in CRMM_BUT_LNK0021, CRMM_BUT_LNK0031 tables but not even one entry in CRMM_BUT_LNK0011
    Also i find that data is there in CRMM_BUT_SET0020, CRMM_BUT_SET0030 tables but not even one entry in CRMM_BUT_SET0010
    is some thing missing in functional configuration. the CRM guy did an intial upload from R3 and brought the sales organization to CRM.

  • Create default sales area data on BP creation using BUPA_GENERAL_UPDATE

    Dear all!
    We have the following requirement: whenever a user creates an organization in WCUI, we need to create some default data for the BP in the background, such as relationships (employee responsible, etc) and sales area data.
    I have created an implementation for BADI BUPA_GENERAL_UPDATE and use it to add the desired data. For relationships, this is working just great, but I´m having trouble with the adding of sales area data, since the system is not properly saving the data. I use the following code:
    * Assign data for sales area
      MOVE: 'O 50000632' TO ls_sales_area-sales_organization,
            '01'   TO ls_sales_area-distribution_channel,
            '01'   TO ls_sales_area-division.
      ls_data-customer_group1 = '330'.
      ls_data-customer_group2 = '003'.
      ls_data-customer_group3 = '002'.
      ls_data-customer_group4 = '006'.
      ls_data-customer_group5 = '021'.
      ls_data-pay_guar_proc   = '0001'.
      CALL FUNCTION 'CRM_BUPA_FRG0010_ADD'
        EXPORTING
          iv_partner_guid = ls_changed_instances
          is_sales_area   = ls_sales_area
          is_data         = ls_data
          iv_x_save       = ' '
        IMPORTING
          et_return       = lt_return
          ev_error        = lv_error.
      CALL FUNCTION 'CRM_BUPA_FRG0010_SAVE_COMMIT'.
    Problem is, that with the call of
      CALL FUNCTION 'CRM_BUPA_FRG0010_SAVE_COMMIT'.
    I get a short dump of type "SYSTEM_ON_COMMIT_INTERRUPTED", but without the call, the sales area data is not saved. I tried the same code in a Z-report (not in a BADI) and it worked just fine.
    Any ideas on how to commit the data so the sales areas will be saved? Helpful answers will be rewarded!!
    Thank you all & Kind regards
    Christoph

    Hi Pratyasha!
    Thanks for your reply. I figured, that by explicitly calling the commit FM, system commit procedures are interrupted.
    The thing is, that just by calling the FM for adding the sales areas does not result in those sales areas acutally created. What I mean is, that after the BAdI is executed, no sales areas are maintained for the newly created customer. All the more funny, since this exact same procedure is working for creating relationships. See following code:
      READ TABLE it_changed_instances INTO ls_changed_instances INDEX 1.
    * Get BP-Number for sy-user
      CALL FUNCTION 'CRM_ISA_IUSER_GET_BP_TO_ALIAS'
        EXPORTING
          username         = sy-uname
        IMPORTING
          business_partner = lv_user_partner.
    * Map GUID to partner number
      CALL FUNCTION 'BUPA_NUMBERS_GET'
        EXPORTING
          iv_partner_guid = ls_changed_instances
        IMPORTING
          ev_partner      = lv_partner
        TABLES
          et_return       = lt_return.
      CLEAR lt_return.
    * Create employee responsible
      CALL FUNCTION 'BUPR_RELATIONSHIP_CREATE'
        EXPORTING
          iv_partner_1_guid = ls_changed_instances
          iv_partner_2      = lv_user_partner
          iv_relationship   = 'BUR011'
          iv_date_from      = sy-datlo
          iv_date_to        = '99991231'
          iv_testrun        = ' '
          iv_x_save         = ' '
          iv_xdfrel         = 'X'
        TABLES
          et_return         = lt_return.
    which is in the same BAdI and acutally results in this relationship beeing created for my newly created customer. Works fine, just not for sales areas.
    I´ll be grateful for any comments on that issue!
    Kind regards
    Christoph

Maybe you are looking for