Hello Expert,
My requirement is that I want to transfer the entries from custom table(ZABC) from ECC to custom table(ZABC) in CRM. Also when ever there is any change in ECC table is should update in CRM table also through DELTA load.
Now for this I did refer some post in SCN like the below one and I was able do the INITIAL load successfully i.e. the data was transfer from ECC to CRM table but there were no BDOC created in SMW01. Also DELTA load is not triggering at all.
Replication of Z table from CRM to R/3 - No mBDoc Created
In brief I did the below steps let me know if I am missing something..
CRM System,:
1) Created Z table "ZABC" in CRM
2) Created Customizing Object in R3AC3
Object Name: Y_ABC
Object Class: CUSTOMIZING
Linked BDoc Type: Y_ZBDOC
R3 to CRM : Y_MAP_BAPIMTCS
3) CREATE BDOC in SBDM -->Y_ZBDOC
4) Execute Report SMOF_FILL_CRMATAB
Source Site Name : OLTP
Objectname : Y_ABC
ECC system:
1) create table ZABC in ECC
2) Create FM YMD_EXT_ABC
3) Customizing entries:
Table: CRMSUBTAB
CONSUMER: CRM
OBJNAME : Y_ABC
UP OR DOWN:D
MOD NAME : Z_EXTRACT_MODULE
OBJCLASS CUSTOMIZING
Now when i do the INITIAL load for Y_ABC in R3AS then it works and data is transfer from ECC-->CRM but i cannot see any BDOC in SMW01 created and hence no DELTA is triggered.
Function: Y_MAP_BAPIMTCS
*"----------------------------------------------------------------------
*"*"Local Interface:
*" IMPORTING
*" REFERENCE(I_BAPICRMDH2) LIKE BAPICRMDH2 STRUCTURE BAPICRMDH2
*" REFERENCE(I_OBJ_CLASS) LIKE SMOFOBJECT-OBJCLASS
*" EXPORTING
*" REFERENCE(E_DO_NOT_CALL_GDH) LIKE SMOF_PARA-XFELD
*" TABLES
*" TI_BAPIMTCS STRUCTURE BAPIMTCS
*" T_MESSAGES STRUCTURE BAPICRMMSG
*" TI_KEY_INFO STRUCTURE BAPICRMKEY
*" TI_OTHER_INFO STRUCTURE BAPIEXTC
*" TO_SMO0GENSB STRUCTURE SMO0GENSB
*" CHANGING
*" REFERENCE(E_OBJ_NAME) LIKE SMOFOBJECT-OBJNAME
***LOGIC****
***** read table BAPIMTCS and UPDATE in ZABC table in CRM
****************************************************************************************************************************************
Function: Z_EXTRACT_MODULE
*"----------------------------------------------------------------------
*"*"Local Interface:
*" IMPORTING
*" REFERENCE(I_OBJ_NAME) TYPE OBJ_NAME
*" REFERENCE(I_BAPICRMDH1) TYPE BAPICRMDH1
*" EXPORTING
*" REFERENCE(E_STATUS) TYPE STATUS_EXT
*" TABLES
*" ET_BAPIMTCS STRUCTURE BAPIMTCS
*"----------------------------------------------------------------------
**LOGIC**
**SELECT from ZABC table
**MAP the Z_ABC entry to BAPIMTCS
**did the below code..
call function 'CRS_FILL_CRMDH2_FROM_DH1'
EXPORTING
i_bapicrmdh1 = ls_bapicrmdh1
i_lastblock = lv_lastblock
i_blockno = lv_blkno
i_recordno = lv_recno
IMPORTING
e_bapicrmdh2 = ls_bapicrmdh2.
ls_bapicrmdh2-dwnloadtyp = 'D'. " Delta Download
ls_bapicrmdh2-delta_op = 'U'. " Update
ls_bapicrmdh2-uploadstat = 'S'. " Success of download
*Transfer data to CRM
CALL FUNCTION 'CRS_SEND_TO_SERVER'
CAN anyone tell if I am missing any steps??// for DELTA.
Regards,
Jan