Deleting address usage not replicating in CRM

Hello Friends,
Below is the code to replicate the problem i have in my system. This report will check if the BP in processing has address usage of type 0003 which is Forwarding address in our system, then delete it and assign the standard address of BP as forwarding address usage 0003.
The problem is when performing deletion the CRM system is not updated correctly. BDOC created doesnot deletes the entry in CRM.
Note :- You must change BP data in BP screen. This report runs in R/3.
Steps:-
1. Create a new BP.
2. Run program.
2.1 Add two addresses to BP.
3. Assign the non-standard as forwarding address or any other address
usage you will put in the code. " lt_add-ADDRESSTYPE = '0003'.
4. save it.
This will trigger BDOC's to update CRM system. After the run you can see
the difference between the BP address usage in two systems.
Please advise what can be done?
Regards,
Pankaj
REPORT  Z_BP_CHANGE                              .
DATA: W_BUT020 TYPE BUT020,
      W_BUT021 TYPE BUT021,
      GUID     TYPE     BUT020-GUID,
      TASK TYPE BU_UPDFLAG.
DATA : LT_ADD TYPE BAPIBUS1006_ADDRESSUSAGE occurs 0 with header line,
         LT_ADD_X TYPE bAPIBUS1006_ADDRESSUSAGE_X occurs 0 with header line,
         LT_RETURN TYPE STANDARD TABLE OF BAPIRET2.
PARAMETER BP TYPE BU_PARTNER.
*CHANGE ISU PARTNER
CALL FUNCTION 'ISU_S_PARTNER_CHANGE'
  EXPORTING
    X_PARTNER      = BP
  EXCEPTIONS
    NOT_FOUND      = 1
    FOREIGN_LOCK   = 2
    NOT_AUTHORIZED = 3
    CANCELLED      = 4
    INPUT_ERROR    = 5
    GENERAL_FAULT  = 6
    OTHERS         = 7.
SELECT SINGLE * FROM BUT021 INTO W_BUT021 WHERE PARTNER = BP AND ADR_KIND = '0003'.
*CHECK IF ADDRESS USAGE IS ALREADY ASSIGNED. IF YES DELETE ASSIGNMENT
IF SY-SUBRC = 0.
  SELECT SINGLE * FROM BUT020 INTO W_BUT020 WHERE PARTNER = BP AND ADDRNUMBER = W_BUT021-ADDRNUMBER.
  GUID = W_BUT020-ADDRESS_GUID.
  TASK = 'D'.
*DELETE EXISTING ADDRESS USUAGE.
  PERFORM UPDATE_BP USING TASK.
ENDIF.
CLEAR: GUID, W_BUT021, W_BUT020, TASK.
REFRESH: lt_add_x, lt_add.
*ADD STANDARD ADDRESS USAGE
SELECT SINGLE * FROM BUT020 INTO W_BUT020 WHERE PARTNER = BP AND XDFADR = 'X'.
GUID = W_BUT020-ADDRESS_GUID.
TASK = 'I'.
*ADD STANDARD ADDRESS USUAGE.
PERFORM UPDATE_BP USING TASK.
MAINTAIN BP ADDRESS
FORM UPDATE_BP USING TASK TYPE BU_UPDFLAG.
  lt_add-ADDRESSTYPE = '0003'.
  lt_add-STANDARDADDRESSUSAGE = 'X'.
  append lt_add.
  lt_add_x-STANDARDADDRESSUSAGE = 'X'.
  lt_add_x-ADDRESSTYPE = 'X'.
  lt_add_x-UPDATEFLAG = TASK.
  append lt_add_x.
  CALL FUNCTION 'BAPI_BUPA_ADDRESS_CHANGE'
    EXPORTING
      BUSINESSPARTNER = BP
      ADDRESSGUID     = GUID
      ACCEPT_ERROR    = 'X'
    TABLES
      ADDRESSUSAGE    = lt_add
      ADDRESSUSAGE_X  = lt_add_x
      RETURN          = LT_RETURN.
  CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
ENDFORM.                    "UPDATE_BP
Edited by: PANKAJ ARORA on Apr 22, 2008 4:15 AM

Hello Sourabh,
Thanx for your reply. The return is empty. All the changes are carried out perfectly except the updates in CRM. and only when the program does the deletion of the address usage, the BODC to CRM doesnot delete the address. It seems middleware buffering issue to me but not sure.
Did you try to run this report and reproduce the problem in your system?
Regards,
Pankaj

Similar Messages

  • When replicating customer from ERP, the address is not replicated to CRM.

    Hello.
    I'm facing the problem which the address data of customers is not replicated to CRM.
    I've checked the business object BUPA_MAIN on t-cd SMW01, so I found that the task of addresses is "S" and it doesn't get GUID.
    I'm not sure, but I doubt the error is caused by creating a new client in CRM.
    In other words, I doubt that the setting of replicating the address data of customer is not active.
    Does anyone have the knowledge of this problem?
    BestRegards.
    Miki

    Hi Hedy,
    Please go through this following note
    Note 1511835 - Incomplete addr sent to CRM causing failed duplicate check
    Hope it answers your Query
    All the Best
    Regards,
    Srikanth.Naga

  • Some Sales Orders are not replicating into CRM

    Hi guys,
    when I check SMQ2 in CRM,  I find that some sales orders are not replicating into CRM, then check the error, its says check SMW01..
    when I check the SMW01 it says validation error and BDOC status is F05 (information no processing). I tried to search the sales order in CRMD_Order transaction could not find the sales order...
    *Error in SMW01*
         Processing of document with Guid E01D11C71856C4F1AEBF0024E84DD0CE is canceled     CRM_ORDER
         Validation error occurred: Module CRM_DOWNLOAD_BTMBDOC_VAL, BDoc type BUS_TRANS_MSG.     SMW3
    It's not giving much clue what's the error is...
    I tried to setup a request to replicate those sales orders.. those request also end up in the same error...
    any help on this?
    thanks,
    Ken

    Hello Ken,
    When reprocessing a BDoc(via SMW01) you might need to set a flag.
    Goto trxn. SMW01. Start the debugger using command '/h' and reprocess the BDoc. After going into the debug mode press SHIFT+F7 and put a breakpoint at 2nd Tab in : class:cl_smw_flow and method 'restart_processing'. Keep debugging(F5 or F6 accordingly) until you find the requisite flag l_retry_allowed and set it as 'X'. This will allow you to reprocess the Bdoc.
    Thanks,
    Rohit

  • Configuration is not replicated from CRM to ECC for configurable product

    Hi,
    We have some materials in the system for which the configuration is not replicated from CRM to ECC.
    We create a quotation in CRM and configure it. In CRM,  the configuration is complete and components are properly exploded but when we check the same quotation in ECC, configuration is incomplete with respect to some characteristics and product references.
    Please find below finding
    1. If the same material is created in another plant/company code, the configuration is replicated properly.
    2. We have also checked that the BOM is completely maintained for plants for which configuration is replicated. But we dont think so it could be an issue since if we create the quotation in ECC instead of creating in CRM, for the plant (for which the configuration is not replicated from CRM to ECC),  it is properly exploded and complete.
    3. variant prices are replicated properly even though components are not replicated.
    We need to know if we can explode the BOM in the configuration even though complete BOM for the particular plant is not maintained. If its not possible to explode, why it is possible for us to explode the BOM in the configuration in quotation.
    Please  advise.
    Thx.

    the configuration (variant configuration and not customization) that is done in CRM contract is not copied to ECC contract. Is it because that item category in CRM is activated for doing the BOM configuration and the same in ECC is not activated for doing the BOM configuration?
    My question is that if item category in ECC is not activated for BOM configuration then is it like that the BOM configuration in CRM will not be copied to ECC?

  • Payment card details not replicated from CRM to ECC

    Hello
    We are creating BP in CRM which replicates into ECC. In BP, we are maintaining Payment cards. But, while replicating to ECC, this Payment card details are not replicating to ECC.
    The data is present in the BDoc.
    Please help!!
    Regards,
    Debolina

    Hi Debolina,
    Can you please share the solution. I have the similar requirement.
    Regards,
    Vaibhav

  • Customer sales area data not replicated to CRM

    Hello,
    I'm setting up the data replication model for master data based on configuration guide C03.
    We have the following customer master situation:
    existing customers with nr range 500000 - 599999 and account group A are created in ERP and replicated to CRM.
    new customers with nr range 600000 - 699999 and account group B are created in CRM and replicated to ERP.
    PIDE settings are fine.
    The initial download of CUSTOMER_MAIN en CUSTOMER_REL went well. I've set a filter in CUSTOMER_MAIN on field KUNNR: value between 500000 - 699999. Everytime a sold-to business partner is created in CRM or a customer is created in ERP, the data gets replicated to the other system.
    So far so good.
    But here comes the problem: when I assign a sales area to a customer created in CRM (nr range 600000-699999) in ERP, the sales area data is NOT replicated back to CRM. When I assign a sales are to customer created in ERP (nr range 500000-599999) in ERP, the sales area is replicated back to CRM.
    Do I have to run BUPA_MAIN? I don't think so, because sold-to business partner are already replicated to ERP.
    Is the filter in CUSTOMER_MAIN not good? Should I split the nr ranges into 2 rows: 500000-599999 and 600000-699999 instead of 500000-699999
    System environment:
    CRM 7 EnhP2 (CRM RDS)
    ERP 6 EnhP6
    Kind regards,
    Koen

    Hello,
    I found the problem. The PIDE was not set up completely: I only set the account group for ERP customer in the 'R3-->CRM' dialog structure. I've added the account group for CRM customers as well, and now customer data of CRM customers added in ERP, is replicated to CRM.
    Cheers

  • Business Partner with Classification not replicated from CRM to ECC

    Dear CRM gurus,
    We have a problem with the replication of Business Partner from CRM to the ECC system. Here's the story:
    When we create a Business Partner (General) in CRM, it gets replicated to ECC. But when we create a Sold-to-Party Business Partner with Classification Customer, it does not get replicated to ECC. Can anyone of you advice to me what could be the possible error in the configuration? I have already make the neccessary mapping in tcode PIDE.
    In ECC system, do we have to maintain the same number range value for SD customer AND also for Business Partner?
    Desperately need help! Points will be generously rewarded.

    Hi guys,
    most likely your field settings on the ECC side for the different BP role will be different. I assume you will have a mandatory field for the sold-to party role in ECC that yo don't provide during the replication. If you check the BDOC errors in txn SMW01 it will give you an error "fill in all required fields".
    One standard stumbling block is the field "language key" under communication data....
    I hope that's what is causing the problem
    cheers
    Jens

  • Deleting Address Book Notes with Automator

    I imported all my contacts from Yahoo and now there's a bunch of jibberish under all my contacts notes...well most of them. Is there anything I can run from automator to delete all notes from all contacts? I don't need any notes. Thanks!

    paste the following into AppleScript Editor (it's in /Applications/Utilities) and press "run".
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px;
    color: #000000;
    background-color: #ADD8E6;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    tell application "Address Book"
    repeat with per in people
    set note of per to ""
    save
    end repeat
    end tell</pre>
    Note: it might take a while for it to finish working if you have a lot of contacts.

  • Applescript to delete Address Book note

    I have quite a few Address Book entries with a specific parenthetical note in the Notes field: (Priority).
    I'd like to remove "(Priority)" from all the Notes while not removing anything else in Note fields. Is there an easy Applescript to do this?
    Thanks in advance.
    /rb

    It appears my issue has been resolved with the help of thread you posted:
    http://discussions.apple.com/thread.jspa?threadID=2132340
    I did end up calling Apple Support to clarify the procedure so in case anyone else is having the problem, here is my version of the fix:
    As always, create a backup of your current Address Book in case something goes awry.
    1. Sign out of MobileMe in your Home account.
    2. Sign in to your Guest account or create a Test account.
    3. Sign in to MobileMe in the MobileMe preference pane in the Test/Guest account.
    4. Go to the Sync pane in the MobileMe preference pane and Sync. You will receive a question as to what you want to do. I chose to Replace contacts on the computer with contacts from MobileMe.
    5. After syncing you should have an address book without the contacts that were merged from the address book you had been subscribing to.
    6. Export an address book archive (extension .abbu). Copy the resulting file to a flash drive or an external hard drive that is available.
    7. Return to your home account and Import that file to your address book. You will get a message asking you if you want to replace all the contacts with the ones you are importing. Answer yes.
    8. Quit address book and re-launch. At this point you should see all your groups and contacts without the subscription contacts that were merged and couldn't be deleted.
    9. Sign in to MobileMe and re-enable syncing.

  • Customer created in R3 is not replicating to CRM

    Dear All,
    I created a customer in R3 (PRD) with 12345 Customer No. and the same customer is not available in connected CRM system.  When i checked with the CRM system (BP trn) it shows msg "BP 12345 doesnot exist"
    Please suggest the required settings in this issue.
    Regards,
    Ramana Rao

    Hi Ramana,
    You need to set up CRM middleware for Initial and delta load of Business Partners from R3 to CRM.
    This link may help you ->
    http://help.sap.com/saphelp_crm40/helpdata/en/1c/924555855849ba896b0af806cd343c/frameset.htm
    Cheers,
    Ashish

  • Sales Orders Not Replicating from CRM 2007 to ECC 6.0

    I have been able to successfully replicate my Customers from ECC to CRM. When attempting to replicate a Sales Order from CRM into ECC, the BDoc shows as "Confirmed (fully processed)" in SMW01. When I look at the list of receivers, it shows my ECC system, with a state of "Processed". However, when I look at the Error Segments on the BDoc, I have two events:
    1. No Upload into R/3
    2. R/3 Adapter is Called
    Any thoughts on what I am missing?
    Thanks!

    MCG,
    Thanks for the quick reply. Yes, I have a publication of "All Business Transactions (MESG)" with a subscription of my ECC system. The BDocs never make it into the Outbound queue. I purposely stopped the outbound queue to see if it would show-up ... it never comes in.
    Thanks!

  • Customer Address Not getting replicated to CRM

    Hi,
    In CRM system we had created on BP and replicated to ECC system. Replication was done successfully. In ECC now we had modified some of the details like Name, Address, contact details. From this updated details only address is not getting replicated to CRM system.
    While all the other data which are modified are getting replicated to CRM system. In case if some one has encountered this issue then please me know the solution step.
    Does SAP support the modification and replication of business partner address from the third system (System in which it is not created)
    With Regards
    Ankush Rai

    Hi Rai
    Please check the following thread , It may helpful your query
    Re: When replicating customer from ERP, the address is not replicated to CRM.
    Hope it solved your issue
    Regards,
    Naga.Srikanth

  • CRM 7.0 Contact person in order not replicated to R/3

    Hello all,
    I am currently facing issue with contact persons in CRM orders. There are several partners in the CRM order. Standard ones like ship-to party is replicated to R/3; employee roles are also replicated into R/3 within an order; contact persons (no matter if standard or Z) are not replicated from CRM order to R/3. There is neither no error message in BDOC nor in order.
    Partners are set correctly for mapping between R/3 and CRM (including Z partners) -
    tables CRMPARNR (R/3) and table CRMM_BUT_CONTNO (CRM) checked; GUIDs are there
    Users do change these contact persons manually sometimes.
    If order changed in ERP - including contact persons adding/changing - all partner roles are transfered to CRM for an order correctly.
    Any ideas??
    Thanks for your help
    Radim

    Hello,
    there is an important GUID that need to be determine, the contact persons in my case need to selected via partner determination otherwise the partner gets deleted in R/3. The determination is creating the relation to the partner which is transfered to R/3 and can be checked in the BDoc. This has solved the issue

  • Business partner(employee) is not replicated from ECC to CRM

    The Business partner Not replicated in CRM.Two Sales organization have been maintained for the employee for the different time lines in ECC.Checked the BDOCs and the validation error occur in FM CRM_BUPA_MAIN_VAL .The BDOCs message was saying the BPGUID was missing .Could anyone please suggest what could be the root cause of the data not replicated from ECC to CRM.

    Hi Pragnya,
    This is the case where at the time of creation of BP there was some issue with replication.
    The BP itself is not there in CRM or only the changes are not reflected?
    In such scenarios, perform following steps for successful replication:
    1. Go to TCode: CRMM_BUPA_MAP
    2. Enter the BP no. {initially it says it does not exist}
    3. Enter ERP customer no. and press enter, the BP GUID gets filled
    4. Click on "Gather Information about customer" [you can see the status of the object]
    5. Now again enter the BP no. -> The customer is available in CRM now.
    Regards,
    Swagi

  • CRM material description not replicated

    Hi All.
    We are facing a issue.
    A new material was created in R/3 and was replicated in CRM but the material discription is not replicated in CRM when we see in commpr01.
    How to solve this issue.
    We are using CRM 4.0 and R/3 4.7

    Hi Rajat,
    Please check the procedures during replication process. Generally entire header information will be replicated when standard material is being replicated. if any routines exist, then please check those.
    Thanks,
    sksingh

Maybe you are looking for

  • What is the proper procedure to merge different appln's into a single appln

    Hi, My question is to Frank and Shay. We are having 2 different applications being developed at 2 different locations. Now I need to merge them, I have noted the following steps which are to be taken care of, for the procedure to work. However is the

  • User exit message problem

    hi all i am giving an error message in a user exit the error message comes as a pop up and moving ahead takes me out of the transaction i seriously donot want this. even worning messages are coming as success ones is there a way out for giving error

  • Similar to struct, union or hashtable in c++

    dear experts, this is similar to struct in c++ or union in C++ or hashtable, but can we can create an array in c# and store in it, various variable name and their type. if so, how do we do so. for further explanation...see example below. I want to be

  • Tabs show up / Firefox "activates" when anything changes on an open tab (e.g. when new email arrives)

    I've recently updated to FF 18.01 When I have my email tab open (Gmail) and I'm working in another tab (or even a different program) and a new email arrives (or chat) my email tabs "opens"/"activates" whilst I'm working in Excel for example. It seems

  • How do i get rid of this error message?

    Secure Connection Failed An error occurred during a connection to addons.cdn.mozilla.net. The OCSP response is not yet valid (contains a date in the future). (Error code: sec_error_ocsp_future_response) The page you are trying to view cannot be shown