Quantcast
Channel: SCN: Message List - SAP CRM: Webclient UI - Framework
Viewing all articles
Browse latest Browse all 7775

Re: AET new table - replicate to ECC

$
0
0

Hi Julius,

 

the BDoc structure should have been enhanced automatically as long as you checked the box for ERP within creation of AET table enhancement.

 

Nevertheless you have to create a corresponding table also in ERP. Afterwards you have to fill / read the BDoc.

 

Therefore you have to create two function modules in ERP. First one for reading the incoming crm data within ERP and a second one for transferring the ERP changes from ERP to CRM. The CRM will automatically fill and read the BDoc.

 

ERP Inbound

1 .Create FM Z_CRM_MW_AET_IN

  *"  IMPORTING
 
*"     REFERENCE(IT_TRANSFER_DATA) TYPE  ANY
 
*"  EXPORTING
 
*"     REFERENCE(EV_STATUS) TYPE  UPLOADSTAT
 
*"  TABLES
 
*"      IT_BAPIMTCS STRUCTURE  BAPIMTCS
 
*"      IT_BAPIPAREX STRUCTURE  BAPIPAREX
 
*"      ET_BAPIMTCS STRUCTURE  BAPIMTCS
 
*"      ET_MESSAGES STRUCTURE  BAPICRMMSG


The FM has to read the incoming information within BSC_PARENT (tabname of it_bapimtcs), depending on the line attribute relkey. After a type cast the values can be entered in the corresponding table on ERP.


2. Create entry in COM_BUPA_CALL_FU

COM_BUPA_CALL_FU

      R3OBI R/3 Objekt Eingang      BUPA Geschäftspartner   9000000      Z_CRM_MW_AET_IN


ERP Outbound

1. Create FM Z_CRM_MW_AET_OUT

*"  CHANGING
 
*"     REFERENCE(C_BP_STRUCT) TYPE  BUS_EI_COM_EXTERN_T
 
*"     REFERENCE(CT_BAPIMTCS) TYPE  COM_BUPA_BAPIMTCS_T OPTIONAL


Add a new entry to ct_bapimtcs with attribute value 'BSC_PARENT' for attribute tabname. In addition the value of attribute relkey should be the CRM table name. Afterwards you'll have to do a cast operation.


2. Create entry in COM_BUPA_CALL_FU

COM_BUPA_CALL_FU

R3OUT Mapping Ausgang             BUPA Geschäftspartner  900000          Z_CRM_MW_AET_OUT 


Best regards,

Daniel


Viewing all articles
Browse latest Browse all 7775

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>