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

Similar Messages

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

  • 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

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

  • 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

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

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

  • User Exit for XD02 in Sales area data in Sales tab

    Hi Sap Gurus,
    I have a problem . I need help .
    The requirement is
    In XD01 transaction , In Sales area data, In Sales tab i need to add a Check box which i already have added.This check box refers to KNVV table-Zflag
    In VA01 transaction , In menu goto -> header -> Sales , In Additional data B .
    I have another Check box.  This check box refers to Vbaktable-Zflag .
    <b>I need the code and exact locations where to put this to get my issue resolved which is given below in Functional Description</b>.
    Functional Description where you can understand better.
       Our custom logic will be initiated once the Sold-to Party (VBAK-KUNNR) is entered for any order type.  When the sold-to party is entered the user exit program will check table KNVV for the custom field ZFLAG that corresponds to the “Print Prices on Delivery Note” flag (hereafter referred to as the Pricing Flag) and populate the same setting of the flag into the ZFLAG that will be on the “Additional data B” tab on a sales order at the header.  The user can manually change VBAK-ZFLAG Pricing Flag setting to something different than what is populated for the customer master level.
    If the user happens to change the sold-to party for any reason then the user exit program should take the following approach when populating the ZFLAG Pricing Flag in a sales order:
    -     Recheck the ZFLAG Pricing Flag setting in the customer master for the sold-to party that the user has newly selected.
    The user will still have the option to manually ZFLAG Pricing Flag on a sales order after the user exit program defaults it.

    Transaction Code - XD02                     Change Customer (Centrally)
    Exit Name           Description
    SAPMF02D            User exits: Customer master data
    No of Exits:          1
    USER EXIT
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sapgenie.com/abap/code/abap26.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
    http://www.easymarketplace.de/userexit.php
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sappoint.com/abap/userexit.pdfUser-Exit
    http://www.sap-img.com/ab038.htm
    http://help.sap.com/saphelp_46c/helpdata/en/64/72369adc56d11195100060b03c6b76/frameset.htm
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://expertanswercenter.techtarget.com/eac/knowledgebaseAnswer/0,295199,sid63_gci982756,00.html
    Rewards if useful.........
    Minal

  • Extend Sales area data of a BP via copy

    Hi,
    Is there any functionality in SAP CRM 2007 to extend the Sales area data for a BP via copying.
    Example: BP 'A' has been created for Sales area 'AB' and the relevant fields have been populated. Later on the BP 'A' needs to be extended to Sales area 'CD', 'EF' and 'GH'. Since only a few fields differ in the different Sales areas a copy of Sales area 'AB' to 'CD', 'EF' and 'GH' is requested. Is that possible?
    In ECC this is possible but I cannot find the similar functionality in CRM.
    Thanks for your help!
    BR,
    //Anders

    You can use AET to extend the sales area data of BP.  However, it wont add the fields automatically in GUI, But the generated fields are available in the relevant DB tables.
    BP GUI transaction is no more supported . Im not sure why you want to work on GUI.
    Regards,
    Shaik

  • Business Partner creation - Sales Area Data retrieves blank divisions

    During business partner creation, the sales area data assignment block will retrieve a list of all relevant sales organizations, distribution channels, and divisions that are replicated from ECC. This is working fine. However, it also adds to this list with the sales organizations, distribution channels, and blank divisions. Blank divisions do not exist in either ECC or CRM. It appears to be using the dummy division settings, but I have attempted to configure with the indicator "CRM Header Div. Active" as both active and inactive, to no effect. The only time I have been able to condense this list into a single line has been when I actually activated dummy divisions -- to which CRM would now retrieve only sales organizations, distribution channels, and blank divisions. This is not an ideal solution either.
    How do I get the system to remove the blank divisions from being displayed? It is very confusing to the users, not to mention polluting the screen.
    Example (both are being displayed, I only want the one with an actual value to be displayed):
    Sales Org = 1000, Dist Chan = 10, Division = blank
    Sales Org = 1000, Dist Chan = 10, Division = 10

    any insight woudl be much appreciated. thanks.

  • Importance of Sales Area Data for BP

    Please give me the various reasons for having or maintaining Sales Area for a Business Partner:
    _Explanation:_  What is the importance of maintaining Sales Area Data for BP.Please list out several points.
    As we know Sales Area is composed of : Sales Organisation, Distribution channel, & Division.
    Thanks & Regards,

    These are off the top of my head. I can reply a bit later to add some more.
    1) The pricing procedure (entered in the Billing Tab) which affects the LEAD, OPPT, AG, QCTR, and TA documents. Without the pricing of the product, the transactions cannot be executed and the total product value cannot be determined. Without a total dollar value, a TA doesn't make sense.                                    
    2) The S.O defines the legal terms for the product and if the BP wants to return the product they ordered, they have that information.                                   
    BB

  • Sales Area Data Update in BP

    Hai,
    Could you give some information, how to update the distribution channel and division in Sales Area Data Tab in BP?
    For Information, I have maintain the configuration in IMG - CRM - Master Data - Organization Management - Define Distribution Channels. After i have maintained in that configuration, the distribution channel can't directly change in BP.
    is there any configuration should i maintain?

    Dear Rhesa,
    I said you also have to add the division, distribution channle and the tupples (combination of div and dis. channel) under the particular sales org.
    T code: ppoma_crm
    Double click on your sales org...you can see 4 tabs are there...click on attribute tab....choose the relevant attribute maintainance scenario (sales/service/marketting)..then add the division, distribution channle and the tupples (combination of div and dis. channel)..save it...
    If still you face the problem, please send me the screen print at [email protected]..
    Thanks,
    Atin

  • Customer Master Screen Enhancement XD02 / XD03 / XD01 in sales area data

    Hi,
    My requirement is to add custom fields for customer master enhancement XD01/ XD02 / XD03 in sales area data.
    There are 5 tabs in sales area data. I want to add fields in sales tab after subscreen Agency business.
    subscreen similar to Agency Business should be added.
    I tried to create Screen group in SPRO and implemented BADI as explained in link below, even then my custom program is not displayed in customer master
    http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=77005819
    Please help.

    Hi,
    Please don't mind but I want to know have you activated the implementation?
    regards,
    Sarbajit

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

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

Maybe you are looking for

  • Location is Changed when a Po is Saved in Draft Mode

    Hi Experts I am facing a very big problem while making purcahse order of service type. When I saved the PO in Daft mode and again open for permanent save, location of first row is automatically changed. Is there a default location setting for Service

  • CS6 Photo merge error 1 error

    Hi, Trying to use the following in Automate all fail with the same error codes: Lens Correction Merge to HDR Photomerge all have this error; I have tried to change CS6 Preferences/Performance to allow more memory etc but that didnt help. Restarting d

  • Impossible to use the $ sign when using billing template.

    My setting (default language) of my imac are set to French Canadian.When using page, I try to create a bill from template and the default dollar sign is in "euro".If I switch it to the "$" sign, it works up until I try to print, than the multicolor s

  • SAPSCRIPTS - BOX COMMAND.

    Hi , I hava script in which i am supposed to print an internal table. now. the script is designed in such a way that on first page the main window starts at line 17 of the page and on second page the main window starts at line no 7. i ma printing my

  • I cannot open TIFF files from Image Capture

    I cannot open color TIFF files from Image Capture. I can open the Black and White files though. I tried with Quick Time with the same result as with Preview. I never had this kind of trouble before. I tried the coarser resolution and the 8 bits to ma