cancel
Showing results for 
Search instead for 
Did you mean: 

AET new table - replicate to ECC

Former Member
0 Kudos

Hi,

I've created a new customized table as part of BUT000 table with AET. So far so good.

How do i replicate this new table data to ECC, eg, Structure to create in ECC, etc?

I've read the following blog, but it's for customized field and NOT for customized table.

Thanks in advance.

- julius

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Daniel,

Thanks for the reply. I have a doubt:

On ERP outbound:

In COM_BUPA_BAPIMTCS_T -> BAPIMTCS, i dont see attribute 'BSC_parent'.

cheers,

julius

Former Member
0 Kudos

Hi Julius,

Were you able to solve the problem? I have a similar issue.

When I add a table, I do not see the any check box for R/3 adapter. It is present for indiviual fields. That also is not needed as per note 1287948 - R3 adapter flag for account enhancements

Also I have a typical problem, when you add a table using AET, for BDoc mapping some FM are generated locally. These may start with names /1CRMGC/*. In our system, some AET added tables are present in these tables, some are not(these are the ones I created). AET generation was successful. Do we need to add code manually here? I seriously do not think so. It should get generated.

Also had a look at Txn AXTREG. Did not find anything suitable there. You could be helpful to me.

Thanks,

Niraj

rb
Active Participant
0 Kudos

Hi,

you found some solution? I have the data in crm bdoc but in ERP event function call the data is not present .

best regards

Richard

Answers (1)

Answers (1)

0 Kudos

Hi,

What structures needs to be appended in ECC for Business partner..