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.

Similar Messages

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

  • 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

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

  • 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

  • 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

  • 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

  • Authorization on BP based on Sales Area Data

    Hi,
    We want to control the authorization on a BP based on its Sales Area data attached to it.
    I have done following steps for this:
    1. create a new authorization object in su21. Class = AAAB, fields  = ACTVT, SALES_ORG
    2. regenerate SAP_ALL
    3. Assign authorization object to BP Transaction (SU22 and SU24), with attribute = check/maintain.
    4. Create a new profile in PFCG, and assign this to a user.
    But this is not working, as the user is still able to see those BP's to whom a different sales area is assigned as mentioned in user profile.
    I did run a trace with ST01 and it shows that this authorization object is never checked during transaction call.
    Could somebody please help.
    Regards,
    Saurabh

    Hi Saurabh
    When you create your own Authorization object, it needs to be added to the CRM object through Authority –Check statement call at relevant place..
    Class CL_BUPA_USER is used to determine the relationship/authorities for a user on a BUPA Object. Add modifications as described.
    Change the method “can_display_partner” of class “CL_BUPA_USER”.
    Added statement “Authority-Check” at the end.
    Hope it works out.
    Regards
    Vishal Mani

  • Sales Area Data of BP unavoidable?

    Hi
    i'm workin in a CRM system that has been permanently disconnected from the ERP because of a spind off/management buy out
    I wanted to make standard transaction type CMIC (individual contract) in CRM usable, very very basic, without pricing functionality and any extras, just a manual amount of money to be edited in a product position and that's it.
    I get the error message that the currency is not there and that the sales area data of the BP is not accessable. I get these messages before providing an item oder material number. Just after providing the sold-to-party and pressing enter. No difference if i work in WebUI or in SAP GUI  CRMD_ORDER
    A check shows of the BP in role CRM000 sold-to-prty shows that indeed there is no sales area maintained and no sales area data accessible / all the fields are greyed out
    A check in the customizing shows one distribution channel and even a division but i think the data is corrupt, the sales area choosing fields in the BP are white without content, the BPs dont have any sales area data, all fields are greyed out. So there is no way to write any sales area data into the BP, it would be needed for hundreds of BPs anyway so this is not the way.
    Now the system insists on the currency in the transaction type CMIC. The currency is copied from the sales area data from the BP. It cannot be provided manually. I will have to find a way to achieve this. I just saw, that it is the same with transaction type TA, so i guess all the sales transactions will have that problem in common
    What can i do? I checked the org units in the transaction. They do have an attribute 'Currency' that is filled 'EUR' but the system doesn't care
    The weird thing is that opportunities (with the same BPs and the same product) can be created without errors - and there EUR is provided as currency in the item by default...?
    Any ideas
    Thx

    If you are a functional consultant
    Once the transaction's org determination is done, you can always check the information from the Header Organization tab. This is you know already. If you want to know the Sales Areas a Business Partner (sold-to) is maintained, then go the BP maintenance (Transactio BP ), select the appropriate role - in your case sold-to role of the BP. If you are already not in the Sales Area then click the Sales Area Data button in the toolbar. Then click Choose sales area button in the Sales Area section.Inthe popup, if you click the Maintained Sales Areas, you will see the actual Sales areas the customer has been extended to.
    I am sure you know the above facts too. Well,
    If you are a technical consultant
    The Sales Org details of the transaction can be erad using the function module CRM_ORGMAN_READ-xxx There are more than one FM to read depending upon where you want to read that from - like from the order buffer (good in BAdIs when creating / chaning the order) or fromthe DB. Pick one you want.
    To read the Sales area of a sold to BP, the data is available in the table CRMM_BUT_FRG0080 You can get the maintained sales area information for a given BP.  You can also use the function module CRM_BUPA_FRG0080_READ
    If this is not what you wanted, then you must rephrase your question for me to understand.
    Easwar Ram
    http://www.parxlns.com

Maybe you are looking for

  • How to setup a PDF file with photo insertion

    Hi I am new to the PDF interactive world. I have recieved a document which i need to create field of text and photo insertion. I have figured out the text field. But i cannot figure out how to create a photo insertion field. I am trying to make a doc

  • LDAPUrl class doesn't handle ldaps://

    I am using the ldapjdk.jar (version 4.06) to access an ldap directory using SSL and "write referrals". I've found that when a referral is thrown, the url that is returned from the slapd server is in the form "ldaps://servername" . The LDAPUrl class (

  • Dynamic Item Code Parameter list

    Dear Experts, I have a problem  here. I have a range of item codes as parameters in a report. I realized  that not all item codes are here . The item codes in the master are very many but the parameters displayed in the report are  just a part of the

  • Does the 10.4.4 Update help the line problem?

    I am currently at work - but I have this last hope that the software update will fix the problem. Has anyone tried it yet? My current status is that after talking to apple (a product speicalist) before xmas they said they were working on the problem

  • Can't install:"1628: Failed to complete installation."

    Upon double-clicking on OracleXE.exe (165.332.312 byte, production), I receive a dialog box stating "1628: Failed to complete installation". I have MSIExec.exe version 3.1.4000.1823 on my system. I've followed the instructions (looking for still-runn