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.

Similar Messages

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

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

  • Maintaing Sales Area Data via MASS

    Hello Experts
    We'd like to maintain sales area data of customers via transaction MASS. However we get an such a message "Field PARTNER_GUID does not have a foreign key; as a result no intervals are allowed" and are not able to create BP sales data.
    Does anyone have any idea about it?
    thanks in advance
    M.

    Dear Mehmet,
    note  983702 offers a workaround for this missing functionality.
    Regards, Gerhard

  • Changes in Sales Area data

    We require to provide access to "make changes" in the sales area fields only, of a customer master record. The t code VD02 was looked upon, but strangely when VD02 was accessed, even the general data too comes up for editiing which is strictly not required.
    XD02 is not provided to the said user, only the account group, activity 02, and VD02 was provided for the specific sales area.
    Request you all to enlighten me as to where am I going wrong, in the understanding of VD02, authorisation or the execution of it.
    Further to the same, if tab wise authorisation is possible within the sales area data, would be even more obliged.
    Thanks and regards,
    Tariq

    Dear Aziz
    There are 3 tables where customer master data stores
    KNA1 - General data
    KNB1 - Company code  data
    KNVV -  Sales area data
    You can restrict particular user by blocking kna1 table access for tcode - va02.
    Regards
    Pavan Kumar

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

  • 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

  • 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

  • Changing Sales area data in XD02

    Hi,
    I am trying to change the sales area data for the taxes is XD02 and the data seems to be greyed out. Can you please suggest, how we can change this.
    Regards,
    Anand.

    In XD02, I am only authorized to change the Tax classification. I want to change the country from GB to some other country.
    Please let me know do you need to change the tax classification or country?
    If it is country you can't do anything in xd02 and this has to be done in configuration of tax determination. and if you do so it will not only effect the customer but also other customers who are created under the country, not advisable.
    May i know what is your exact requirement is? why you  wanted to delete the country GB from the xd02?
    Thanks,
    Srinu.

  • 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

  • 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

  • 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

  • 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

  • BP Creation in Web UI - How to enable Sales Area data?

    Hello Gurus
    We are using CRM 2007 and create BPs in CRM and then have them replicate to OLTP. This works as desired if I launch Transaction BP and maintain the record.
    But in Web UI, I dont see many of the fields that are necessary for replication such as Account group for R/3 customer acct group. Nor do I see a tab for sales area data maintenance. I am logging on to Web UI with SALESPRO profile. How do I enable enter of key information in Web UI BP maintenance, so that I could see the replication from CRM to OLTP R/3.
    Please advice.
    Thanks
    Jai

    Hi Jai,
    I am glad that the answer was helpful for you.
    In the create mode just the details view is available, as this is the way the component BP_HEAD is implemented.
    To understand this please open the component workbench, component BP_HEAD. Go to the runtime repository and compare the window CorpAccountNew(this is for the create mode) with the default window named MainWindow. In the first one just a sole view is offered.
    But after you change from the create mode to edit mode (push the save button and then the edit one) you will actually see all the assignment blocks. Maybe this helps. But if you still see the need of the sales area assginment block it can easily be made available via a customer UI enhancement.
    Good luck and best regards,
    Erika

  • Sales Area Data isnt replicating from CRM to ECC

    Hi Gurus,
    We are replicating some BPs of certain groupings from CRM to ECC.
    We performed all steps relevant for this task mentioned in Best Practice u201CMaster Data Replication C03u201D. After performing the
    steps results are as follows:
    u2022     BP General Data is replicating without any trouble.
    u2022     When registering sales area data in CRM and trying to get this replication to ECC we see that the BP Sales Area data isnu2019t replicated.
    Monitoring SMW01.
    The BDOC BUPA_MAIN ended with the following error:
    Messages for business partner 0007000362: Fill in all required entry fields
    Action already taken:
    After reading this message I have reviewed the mandatory fields per Account Group in ECC and mapped them with the CRM ones. Even this changes I still can get sales area data in the ECC BPs replicated.
    Is there something I am missing here.
    Thanks for your help.

    Hi,
    Regarding debugging from CRM to R3. Please follow the below steps.
    There are 2 methods to debug the Business Partner (BP).
    First Method:
    1)     In CRM, Go to SM59 -> ABAP Connections => The ECC client -> See if the saved user (in logon details) that is used to connect to ECC from CRM is a Dialog user.
    2)     You can use transaction code SU01 to check User Type of User.
    3)     Deregister the Queue through SMQS.
    4)     Make changes to BP.
    5)     Go to SMQ1, Select the Queue name Double Click 2 times then select the Tool bar (Debug LUW).
    Second Method:
    1)     Put a break point in Function Module SMW3_MFLOW_UPDATETASKBDOC.
    2)     Create a BP and before save, type /h to activate debug, Mark update debugging option.
    3)     When stops in Function Module u201CSMW3_MFLOW_UPDATETASKBDOCu201D you must be sure to set header-dbgmode = 'X' this will make the BDoc stay stopped in SMW01.
    4)     Go to SMW01 and type /h and process the BDoc.
    5)     Put a breakpoint in Function Module u201CCRM_UPLOAD_AFTER_MAP_HANDLERu201D and be sure to change LV_SYNCHRON = 'X' this will allow you to connect in ECC.
    If the variable LV_SYNCHRON does not have any value, then it will work as background task, if the value is filled with the value u2018Xu2019, then it will allow debugging in R3.
    And another point to be noted here is, the user type of the R3 should be Dialog User. If the user is not dialog, then it will not connect with R3.

Maybe you are looking for