on 01-20-2014 10:42 AM
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
Hi,
What structures needs to be appended in ECC for Business partner..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.