Replicate Custom Table from CRM to ECC

I have a custom table in CRM and I have to transfer the values of the custom table to ECC.I have BADI  which inserts the values into the custom table in CRM. What should i do to replicate the values in a Custom table in ECC.The tables are of same structure.

Hi
Please reffer the C71 : CRM Connectivity document in Best Practices. It will gives you the perfect information for you.
Please follow the following link to find the same.
http://help.sap.com/bp_crmv250/CRM_DE/index.htm
Technical Information>Building Block Library> C71 : CRM Connectivity>Configuration guide.
Generally: You have to enhance the BAPIMTCS structure which is exchanged between CRM and R/3, and the functionality mapping the BDoc to this structure in CRM and in R/3 the functionality of saving the BAPIMTCS structure to the DB.
You should use the Transaction Business Events, see also tables TBE24, TPS34 and you can search for the SMOUTIL2 or SMOUTIL3 functionality esp in the CRM system.
Have a look at note 417906 with some information on used functions.
Reward with points if helpful
Cheers
Manohar

Similar Messages

  • What are the steps to send sales order custom field from CRM to ECC

    Hi Xperts,
      We have created a custom field in sales order [ VBAK] and successfully replicate its value from ECC to CRM. But while doing the enhancement to replicate the field value from CRM to ECC [ When the SO is created in CRM ] we are not able to do so.
    We used a FM in CRM0_300, but while replicating the SO from CRM to R/3 it is not getting called.
    Please help us by providing the steps to do the full enhancement to replicate the custom field of SO from CRM to ECC.
    Thanks in Advance.

    Hi Anjaneyulu,
    We are faced with a similar situation as you.
    Here is our scenario with the steps that we performed so far:
    1.  We have added a few custom fields in CRM 7.0 (Ehp1) using AET.
         The BDoc BUS_TRANS_MSG has been automatically extended with these custom fields.
    2.  On ECC side also, same custom fields have been added to VBAK and VBAP, using APPEND STRUCTURE. Fields were added to ADDITIONAL DATA TAB B in VA01 / VA02 transactions.
    3. Extended BAPI structures BAPISDITM and BAPISDITMX in both CRM and R/3 Side.
    4. As mentioned in the note 1053817, we have implemented BADI CRM_DATAEXCHG_BADI -> Method CRM_DATAEXCH_AFTER_BAPI_FILL in CRM (mapped fields from BDOC to BAPI structures)
    5. In the above note, for R/3 BAPI to R/3 API they have given to implement user exit USEREXIT_MOVE_FIELD_TO_VBAP which we found in MV45AFZZ. But in this we are unable to find BAPI Structure to map.
    Our issue is, when a sales order is created in CRM, it is getting replicated on ECC. But, only standard fields are getting replicated. The custom fields that we have added are remaining empty on ECC side.
    In CRM --> txn SMW01, we can see that the BDOC is populated with custom fields also.
    Could you let us know if your issue is solved completely. Are you able to see the value of custom field, in ECC? Did you use AET to add fields in CRM.
    Could you please give us the steps that you have done.

  • Replicate custom fields from CRM sales order to R/3 sales order

    Hi Michael,
    I have a requirement to replicate custom setype data created for CRM sales order to R/3 sales order.These fields have been created at item level.
    Do you know the set of steps to achieve the same.
    Any help would be appreciated.
    Thanks,
    Chamu

    Hi,
    the CRM sales order cannot be extended using set types. Set types are a functionality that is limited to products.
    You can however enhance the orders by using the easy enhancement workbench (ransaction EEWB). It will allow you to add specific fields to all levels of the sales document and will take care of ALL the objects that are necessary to update and maintain he fields (functions, screens, bdocs, bapi's,...)
    Depending on you system, it will also generate the update modules for R/3 (don't bet on it). Otherwise you'll have to program the extraction and mapping of the new fields in R/3.
    Michael.

  • Replication of custom z fields from CRM to ECC

    Hello,
    I have created custom fields in CRM - Order using EEWB.  Similarly I have created custom fields in ECC - VBAK.  I want to replicate these custom fields from CRM to ECC.  Somebody had suggested to use CRM_DATAEXCHG_BADI and method -  CRM_DATAEXCHG_AFTER_BAPI_FILL.  Can anybody give me a sample code of how to populate table - CT_BAPIPAREX within this method? 
    Process followed was -
    1. ECC - Extend VBAK with zfld1
    2. ECC - Extend BAPE_VBAK, BAPE_VBAKX with zfld1
    3. CRM - Add zdoc1 using EEWB
    4. CRM -  Extend BAPE_VBAK, BAPE_VBAKX with zfld1 (same as ECC?)
    5. CRM -  CRM_DATAEXCHG_BADI and method -  CRM_DATAEXCHG_AFTER_BAPI_FILL. - This is where I need to map zdoc1 of CRM to zfld1 of ECC.  And then populate CT_BAPIIPAREX.  This is where I am stuck. 
    Thanks!

    HI,
    If you have added field in EEWB chosen R/3 Adapter, then it will also enhance the Exchange structures and thus i guess CRM_DATAXCHange_badi shud contain in one of its changing parameters
    The following blogs gives a good idea in the similar lines.
    /people/vikash.krishna/blog/2009/07/21/exchange-ecc-customer-master-standard-field-with-the-crm-z-fields-ecc--crm
    /people/vikash.krishna/blog/2009/07/14/crm-70-how-to--4-adding-custom-fields-with-the-new-application-enhancement-tool-aet
    Revert if you need further help.
    -Satish

  • Replication from CRM to ECC and vice versa

    Hi,
    I am a newbie and would really appreciate any of your advice and help. I was given a task to replicate business partner from CRM to ECC. I was advised to go through a building block in SAP Best practices for CRM called C03:CRM Master and Data Replication. I've read through the materials and found out that there are some prerequisites. Do I need to installed all of the prerequisites before I can proceed with the steps given in the building block. I hope anyone could reply to me as soon as possible.
    Regards,
    Julianna

    Hi,
    Thats right! C03 best practices would be certainly helpful to you.
    Few important steps for BP repllication from CRM to ECC would be
    In CRM , First define your Logical destination in BD54 .
    1) SU01 Transaction to create users : create user in CRM & R/3
    2) Transaction code SM59 : Create RFC DESTINATION .. here u use the users created for reaching into R/3 from CRM
    3) transaction code: SMOEAC: ADMINISTRATION CONSOLE:-
    here define Publication, subscription and site ( OLTP) , and define replication objects ( like BUPA_MAIN, BUPA_REL)
    4) define Queue: SMQR and SMQS - inbound and outbound queue /
    Que registration .
    5) check entry in R/3 side tables:- Make the proper entry into R/3 side tables in SM30
    a)CRMRFCPAR
    b)CRMPAROLTP
    c)CRMSUBTAB
    d) CRMCONSUM
    These are important steps for Middleware settings between CRM & R/3
    In addition to this , you need to correctly define your
    1) in CRM ,BP GROUPINGS with Internal Number range
    2) in R/3 define "Account Group" with "External Number Range" for BUSINESS PARTNER
    3) In R/3 , Mapping of CRM CLASSIFICATION with R/3 account group...e.g. Classification B for customer with ACCOUNT group of R/3
    You need to also map in CRM  correctly the partner functions and R/3 Partner functions.
    regards,
    PD
    Reward points if it helps...

  • Replication of Z table from CRM to R/3 - No mBDoc Created

    I need to transfer the contents of a bespoke customer table from CRM into R/3, off the back of delta changes being made to the CRM table.  To help us to achieve this we have performed the following steps so far:
    1. Created the customer table in both systems.
    2. Created a new messaging BDoc in CRM and linked it to the R/3 Site Type.
    3. Created a new mapping module in CRM that takes the data from the BDoc and maps it to the BAPI structure.
    4. Created a new Adapter Object that links to my BDoc, contains the new customer table as the source table in CRM and contains the mapping Module mentioned above. 
    5. Created a new Replication Object based on my new BDoc.
    6. Created a new Publication and assigned it to the Replication Object.
    7. Created a new Subscription and assigned to the Publication and Replication Object. Also assigned it to my R/3 site.
    On the R/3 side we have created a mapping module to map the data from the BAPI structure into the equivalent R/3 table. We also have an entry in table CRMSUBTAB.
    However when I insert an entry in the customer table in CRM no BDoc is being created. In fact I cannot see anything at all in the system that indicates that it has even tried to capture the change and invoke the Middleware process.
    What am I doing wrong?
    Do I need anything else (some sort of delta program?) that picks up the parameters from the table update and feed them into my process?  The literature that I have found (and it is not much) does not mention anything like this though.
    Any help would be greatly appreciated as this is now a very urgent requirement.
    Regards
    Ian
    Edited by: IAN HAWLEY on Aug 21, 2008 9:42 AM

    Ian,
    I do expected the follow up questions. Check my explanation below and hope it will answer your queries:
    1. I assume all of the activities performed to date are still valid to supplement your solution, e.g. the BDoc, Replication Object, Publication and Subscription details?
    2. The R/3 to CRM Mapping Module. Is this required to allow messages to be sent back from R/3 to update the BDoc, e.g. a sort of validation to prove that the posting has completed ok?
    FM ZMAP_BAPIMTCS_TO_MBDOC in CRM, to map the BAPIMTCS format data and build the BDoc. This BAPIMTCS format is a temporary one and is not the final data format, that is taken to ECC. This function module also takes care of receiving the response message from ECC, once the BDoc data reaches and updates in ECC. If there is any error occured during the updation, it is captured in the error table of the BDoc and the status of BDoc is set to 'Error'. If no error occurs, the status of BDoc is set to 'Confirmed'.
    3. The Extractor Module in CRM. Does this get the data out of the table and will it work for deltas?
    Yes , It should work for Delta too.The delta load makes use of the same program and flow for Initial load (SMOF_DOWNLOAD)
    4. CRMSUBTAB in CRM. I knew that we populated this in R/3, I did not realise we would need it in CRM as I assumed it was R/3 specific.
    5. You list the sequences of FM calls at the end. I was confused in the order. As we are initiating data to be sent from CRM to R/3 should some of these be in the reverse order, e.g. ZMAP_MBDOC_TO BAPIMTCS would be called before ZMAPBAPIMTCS_TO_MBOC as would pass data into the BDoc to send it to R/3 before we then received an update message back?
    Step 1: Z_EXTRACT_MODULE  will be called.( It calles ZPICK_DATA_FROM_CRM). This function module calls the standard function module CRS_SEND_TO_SERVER the one triggers the other function modules
    Setp 2: Creat function module ZDATA_TO_BAPIMTCS(missed to mention earlier) in CRM, to map the data in the final internal table to BAPIMTCS format. This format is temporary and will be used to build the BDoc data.
    Step 3: Created function module ZMAP_BAPIMTCS_TO_MBDOC in CRM, to map the BAPIMTCS format data and build the BDoc. This BAPIMTCS format is a temporary one and is not the final data format, that is taken to ECC. This function module also takes care of receiving the response message from ECC, once the BDoc data reaches and updates in ECC. If there is any error occured during the updation, it is captured in the error table of the BDoc and the status of BDoc is set to 'Error'. If no error occurs, the status of BDoc is set to 'Confirmed'
    Step 4: Created function module ZMAP_MBDOC_TO_BAPIMTCS in CRM, to build the final BAPIMTCS structure from the BDOC. This BAPIMTCS is the final data structure that goes to ECC. The table name, objectkey, relkey that is relevant for the BAPIMTCS, is filled in this function module..
    Step 5: Created function module Z_LOAD_PROXY_FINAL in ECC, to receive the data from CRM. The BAPIMTCS data is received and mapped to local internal tables and then updates to custom tables through the function module Z_UPDATE_ECC. The errors if any are captured in this function module and returned back to CRM using the standard function module CRS_SEND_TO_SERVER.
    To reduce the load on the interface, at the final stage, it was decided to fetch the data completely in ECC. So the incoming  data from CRM is ignored and is fetched completely from ECC tables.
    6. Is there a test FM available for the extract, e.g. is CRM_SAMPLE_EXTRACT_MODULE the one to copy?
        No, You have to develop this Extractor FM say ZPICK_DATA_FROM_CRM and should be called in Z_EXTRACT_MODULE.
    Apologize for any spelling errors, as I too running to meeting.
    Update me the status.
    Bobby
    Edited by: Bobby on Aug 22, 2008 2:13 PM

  • Buisness Iedntification numbers From CRM to ECC

    Hi I want to upload the BUT0ID table from CRM to ECC using middleware..is there any standard adapter object to upload the table.
    And if not is there any standad mapping function module to create a custom object?
    Please reply
    thanks

    can someone reply?

  • Replication of custom-fields in BP from CRM to ECC

    Hello all,
    I have created additonal attributes for a Business Partner in CRM7.0 (ZZKATR1 and ZZKATR2) using the tool AET.
    In ECC I've added these attributes to tabel KNA1 using an append structure.
    The replication of the BP from CRM to ECC is already working fine.
    So when I change a standard field this is replicated succesfully.
    Only now I want to enhance this replication with these additional attributes (custom-fields ZZKATR1 and ZZKATR2).
    So they also appear in ECC in table KNA1.
    Can anyone tell me how this is done? And what steps I have to take?
    Thanks a lot.
    Marco

    Hello Marco,
    Please see note 736595 and also the links below explaining the scenarios.
    http://wiki.sdn.sap.com/wiki/display/CRM/EnhancingtheCRMMiddlewareExample2
    /people/vikash.krishna/blog/2009/07/21/exchange-ecc-customer-master-standard-field-with-the-crm-z-fields-ecc--crm
    I hope this helps.
    Kind regards,
    Vanessa

  • BP Custom Field replication - CRM to ECC

    Hello Developers,
    I have added custom fields to the CRM BUT000 (Business Partner) table, using AET.  Now,  I need to replicate these custom fiields to ECC.  We have configured, and are successfully replicating the standard BP fields from CRM to ECC.  However, the new AET custom fields are not replicating. 
    Can you please help me by identifying BADIs, Enhancements, or User Exits where I can insert the required code in order to accomplish this custom field replication, on both the CRM and ECC sides of this replication?  Is there a document that describes what is required? 
    We are running ECC 6.0, and CRM 7.0. 
    Thanks for your help!
    Duane

    Hi Brian,
    Thanks for your help.  I have resolved this, and the information that you provided was helpfutul.
    I had to create a function module in ECC, modeled after the SAP provided sample FM SAMPLE_INTERFACE_DE_BALE.   In addition to this, I had to configure entries in the standard SAP tables TBE24 and TBE34 (event DE_BALE), so that my new function module  would be  called. 
    Duane.

  • Restrict Contact Person replication from CRM to ECC based on Partner Funct

    Hi Experts
    We are replicating Contacts from CRM to ECC, by assigning them to Accounts. We have a scenario to restrict Contact Person replication to ECC only for specific Partner functions (we have 5 such partner functions), for remaining partner functions the contact Persons should not be replicated to ECC.
    By Partner function I mean, while making this assignment of Contact to an Account in u201Ccontact Person Relationships datau201D under u201CPartner Function Assignment blocku201D (in web UI) we are adding a Partner function E.g. Author, (same can be seen in GUI, under Usage tab of CP Relationship data).
    However we were able to replicate contacts assigned to accounts to ECC in our 5 partner functions, but even the unwanted contacts assigned to other partner functions in CRM are also getting replicated
    How can I restrict CP replication from CRM to ECC based on Partner Functions assigned to the Contact Person
    Your help is highly appriciated.
    Points guaranteed.
    Regards

    Issue resolved using CRMC_BUT_CALL_FU.
    Posing the table name, just in case it might help others.
    Thanks

  • Replication Of Z Partner Functions from CRM to ECC

    HI All,
    We are creating the " Z Partner Functions " in SAP CRM & ECC.in our scenario partner functions flows from CRM to ECC and we want to replicate these partner functions from CRM to ECC.
    So can some onle please tell me how to do this?.
    Thanks in Advance,
    Arun

    1. Create the partner function in ECC
    2.  Assign the partner function to the relevant partner procedure in ECC
    3. Create a partner function in CRM
    4. Map the partner function as follows:
    Customer Relationship Management
    --> Basic Functions
    --> Partner Processing
    --> Data Transfer
    --> Distribution of Partner Functions from R/3 into CRM
    Create the following entry:
    Partner function in R/3         Function
    and also the below:
    Create a mapping entry for data transfer from CRM to R/3 via the
    following IMG activity in CRM:
    Customer Relationship Management
    --> Basic Functions
    --> Partner Processing
    --> Data Transfer
    --> Distribution of Partner Functions from CRM into R/3
    Create the following entry:
    Function     R/3 function    Type in R/3

  • Want to change ACCOUNT GROUP to BP from CRM to ECC

    Hi All,
    We would like to change the Account group of our (Inside/Outside sales persons) when they are replicating from CRM to ECC.  We did change the PIDE setting according to our requirement but surprisingly 10-12 BPs are not getting changed. We opened an OSS and they suggested to write a Z function module and
    registering it in the table CRMC_BUT_CALL_FU for the CRM OUTBOUND which HARDCODES the CLASSIFICATION DATA to the BP in accordance with the PIDE settings so as to get the ACCOUNT GROUP for these BPs.
    I checkede the tcode CRMC_BUT_CALL_FU for the CRM OUTBOUND where we need to place our own FM. I know to write a FM, but not quite sure how to start. Can anyone out there please help me with this.
    Any suggestions are highly appreciated.
    Thanks,
    Karuna.

    I was able to change the account status from EXPIRE(GRACE) to OPEN. The trick as you hint at is to create a temporary profile, assign that profile to the account in question, saving the password from dba_users first, changing the password, logging in with the new password, then alter the user assigning back the original password with the identified by values clause in the later user statement and lastly assigning the original profile, either DEFAULT or custom.
    Here is the temp profile I used which used values less than 1 for the critical limits involved here. Cannot have limit values less than 1 in 9i according to Oracle but you can in 10g.
    CREATE PROFILE "TEMP_PROFILE" LIMIT CPU_PER_SESSION DEFAULT
    CPU_PER_CALL DEFAULT
    CONNECT_TIME DEFAULT
    IDLE_TIME 15
    SESSIONS_PER_USER DEFAULT
    LOGICAL_READS_PER_SESSION DEFAULT
    LOGICAL_READS_PER_CALL DEFAULT
    PRIVATE_SGA DEFAULT
    COMPOSITE_LIMIT DEFAULT
    PASSWORD_LIFE_TIME .0001
    PASSWORD_GRACE_TIME 5
    PASSWORD_REUSE_MAX 1
    PASSWORD_REUSE_TIME .0001
    PASSWORD_LOCK_TIME .0103
    FAILED_LOGIN_ATTEMPTS 3
    PASSWORD_VERIFY_FUNCTION DEFAULT;
    Thanks for your help.

  • CRM BP Identification number entries (Identification tab) from CRM to ECC

    Hi,
    I have a requirement to map the CRM BP Identification number entries (under Identification tab) from CRM to ECC alongwith BP flow from CRM to ECC.
    1. Is it mapped by standard framework and do we have any view in ECC customer master to display the identification numbers?
    2. If not, Is it stored in some table in ECC?
    Please suggest,
    Thanks.

    Hi,
    Were you able to resolve this as I am looking to do the same thing? From my investigation, I can't see anything standard that would transfer this data, although it does look like the Identification number is held within the BDoc.
    I assume the solution would be to map the field into an XD01 field (either a bespoke field or standard - we are planning to use Corporate Group) but i'm not sure how to progress this... I have found some FM's in table CRMSUBTAB which look like the right sort of thing so that is my next area to investigate.
    Please let me know if you have managed to solve this some other way!
    Cara

  • Replicating partner function (VE=sales employee) from CRM to ECC

    Hello, we managed to replicate the ECC customers and contact persons to SAP CRM.
    Now we also want to replicate to CRM the partner functions (VE = sales employee) of ECC that are linked to the customer in the sales view. When I replicate the object customer_rel they are not synchronised to CRM. I have maintainted the 'distribution of partner functions from SAP ECC into CRM and vice versa in SPRO.
    What are the different steps that I need to do? What am I missing?
    Should we be alble to see those relationships on BP in CRM once synchronised? If yes, in which relationship? Since the employee responsible is already filled manually for another function.
    Thanks for your help on replicating partner functions from CRM to ECC?
    Kr, Anouck

    Hi Anouck.
    If I've understood correctly, for that you must pass the employees from ECC to CRM first.
    You can do this by running report RHALEINI at ECC side, but you must configure some things first (like creating a CRM grouping to indicate the number range for employees, and to activate at CRM side this integration)
    Kind regards,
    Garcia

  • Company code data for custom replicated from CRM

    Hi,
    I am trying to default the company code data for a BP replicated from CRM as a customer but it is not working.
    How should this be done in CRM 7.0, ECC 6.
    I am have so far copied function module SAMPLE_INTERFACE_DE_BALE, added my own code and created the entry in table TBE34. But it doesn't work.  Is this correct or is there another method?
    regards
    Tim

    This is what we did wen we had a similar requirement...
    u2022     In the ECC create a FM u2018Z_USER_EXIT_BEFORE_SEND_TO_MWu2019.
    u2022     Register this function module for the CRM0_200 exit user in the ERP system.
    a.     Use Transaction SM30, table TPS34, to go to the maintenance of the modules. Here, enter the Z_USER_EXIT_BEFORE_SEND_TO_MWu2019 module for the CRM0_200 process.
    b.     Use Transaction SM30, table TBE24, to check whether the application you have selected (Product column in TPS34) is active.
    u2022     The FM will be triggered whenever a Sold gets successfully replicated from CRM to ECC system.
    a.     Check for the Object Class u2018BUPAu2019.
    b.     Check for the Object Name u2018CUSTOMER_MAINu2019.
    c.     If yes copy the BP GUID from the BAPIMTCS Structure.
    d.     Now call rfc FM ZLSD_BP_EXTRACT_FRM_GUID in CRM to get the BP number and Acc Group for the respective GUID.
    e.     Check if the ACC GRP is Z001.
    f.     If yes make a BDC call to transaction FD01 and update the Company Code data u2026. Recon. Account     110000
                                 Terms Of Payment ZN30       
                               for the  respective BP
    Note: we have recorded a BDC program to create the company code data.
    regards,
    Sameer Ahamad

Maybe you are looking for

  • Unable to purchase apps

    It wont let me purchase apps on my ipod touch. I try download or install an app and it doesnt do anything just says waiting and does nothing. The only way to clear it is to re start and when i do that i get an unable to purchase messgae. Is ther a fi

  • ITunes cant make a first purchase without going to "review account"

    everytime I go to order I am asked to review my account which then asks me for my credit card and information all over again, again, and again

  • Odd Reconnecting Media Behavior

    Apologies, one more question. When I use the "Reconnect Media" option in the browser to have an image or clip point to a different file, that change is not reflecting in FCP, the Viewer, Canvas and Timeline are all still showing the old file. What is

  • Problem when creating a transport request

    Hello I copied productive BR3 to test BR1 system(it is a BW3.5 system). Test BR1 existed also before(only the main client was 003). Now main client is on both 001(I do not know if this matter). I replicated with transport controller and everything we

  • Can I turn on shutter sound when taking a photo with iPad air 2

    Can I turn on the shutter sound when taking a photo?