Sie sind auf Seite 1von 9

Replication of Company Code data from CRM to ECC.

Creation of Recon Account number in ECC using CRM BP Number and Sales org. We need to stop the BDoc for Debug, the below steps are explaining how to stop the BDoc and how to debug the BDoc. We need check the RFC user using SM59. We need to change the RFC user from Communication mode to Dialog mode using SU01 Transaction in ECC and CRM servers. In Our current scenario RFC user name is RFCUSER.
Need to Implement middleware Exits for this.

To find the RFC user name from both servers. /nSM59

Change the RFC user name (RFCUSER) from Communication to Dialog mode using SU01 its required in Both the servers.

Steps for getting Middleware Exit

Copy function module SAMPLE_INTERFACE_DE_BALE to your own function module say Z_INTERFACE_DE_BALE and save under Z_BUPA function Group We need to write our Logic in the new copied function module Z_INTERFACE_DE_BALE. Activate this FM Go to SM30 at ECC End. Enter the table name as TBE24 and click on Maintain . Enter following Entry there Product = Z_BUPA ( function Group) Text = User Exits In Middleware Adapter Active = 'X' (Select the check box there) Save the above Entry. Again go to SM30 and Enter the table name as TBE34 and click on Maintain. Enter following Entry there: EVENT = DE_BALE Product = Z_BUPA (our new Function group) Function module = Z_INTERFACE_DE_BALE(Copied function module) SAVE. In our function module we need to add logic and break point. Break RFCUSER. ( Logic available in the last page of this document.)

We need to put Break Point in the function module CRM_UPLOAD_AFTER_MAP_HANDLER

We needs to follow the below steps for STOP the BDOC , then it will be ready for testing. Step 1 : Go to SE37 and open the following Function Module CRM_UPLOAD_BTMBDOC_START_FLOW in CRM Server.

Now click on CALL METHOD cl_smw_mflow=>process_outbound

Enter the BP transaction and create a new BP in CRM server. While creating BP we need to enter Sales area data also. Save BP in CRM now the Break Point will get trigger. here we need change the ls_header-dbgmode from Initial to 'X'

Change the value initial to 'X'

Press F8

Now go to transaction smw01 and notice that the Bdoc is ready for debugging. Now the BDOC is ready for testing, State icon showing as a execute mode. Now we need to reprocess this BDoc.

Pls change LV_SYNCHRON into 'X'

Press F8.

We need to write the below code in this function module,


LOOP AT ct_idoc_data into WA_idoc_data_S WHERE segnam = 'E1KNVVM'. WA_idoc_data_D = WA_idoc_data_S. ls_e1knvvm = WA_idoc_data_s-sdata. ls_e1knb1m-bukrs = ls_e1knvvm-vkorg. "tvko-bukrs. * ls_e1knb1m-akont = w_recacc. WA_idoc_data_D-segnam = 'E1KNB1M'. WA_idoc_data_D-sdata = ls_e1knb1m. Append WA_idoc_data_D TO ct_idoc_data. ENDLOOP.

Das könnte Ihnen auch gefallen