2013 Jan 02 8:45 AM
Hi,
I'm trying to create and then replicate Contract Account from ISU to CRM.
In IS-U I had to implement FM FKK_SAMPLE_1022. Just put the business agreement class in the parameter C_BUAG_CLASS. And activate FI-CA event 1022 (tables TFKFBM, TFKFBS, and TFKFBC)
FUNCTION FKK_SAMPLE_1022. *"---------------------------------------------------------------------- *"*"Lokale Schnittstelle: *" IMPORTING *" REFERENCE(I_FKKVK) TYPE FKKVK *" REFERENCE(I_FKKVKP) TYPE FKKVKP *" CHANGING *" REFERENCE(C_BUAG_CLASS) TYPE BUAG_CLASS *"---------------------------------------------------------------------- ENDFUNCTION.
But when I try to create contract account using BAPI test in SE37 or IDoc test tool WE19, the above event 1022 is not getting triggered.
Am I missing anything?
Regards,
Uday
2013 Jan 03 1:15 PM
Hello Uday!
The replication is triggered in form save_account, Include LFKKCF04. The Function-Modules for Events 1020 and 1021 are processed.
In FKK_EVENT_1021 the Function COM_BUAG_MWX_CREATE is called and the active Functions from Table COM_BUPA_CALL_FU (ZTPKT= R3OUT and OBJAP = BUAG) are processed.
In that table there has to be an entry with FNAME = COM_BUAG_MWX_BPS_FILL_CENTRAL. This Function calls FKK_BUAG_MWX_FILL_CENTRAL and FKK_MAP_ACCOUNT_TO_BUAG_CONT and there it is (at line 137 in an EHP5): call of event 1022....
Kind regards
Christoph
2013 Jan 03 12:33 AM
Hi Uday,
Have you manitained the Buisness agreement class in IS-U under the following config node?
IMG->Financial Accounting->Contract Accounts Receivable and Payable->Integration->Customer Relationship Management->Business Agreement->Determine Template for Contract Account for Replication
Also, have you created a reference contract account for these Business agreement in IS-U?
Thanks,
Amlan
2013 Jan 03 1:15 PM
Hello Uday!
The replication is triggered in form save_account, Include LFKKCF04. The Function-Modules for Events 1020 and 1021 are processed.
In FKK_EVENT_1021 the Function COM_BUAG_MWX_CREATE is called and the active Functions from Table COM_BUPA_CALL_FU (ZTPKT= R3OUT and OBJAP = BUAG) are processed.
In that table there has to be an entry with FNAME = COM_BUAG_MWX_BPS_FILL_CENTRAL. This Function calls FKK_BUAG_MWX_FILL_CENTRAL and FKK_MAP_ACCOUNT_TO_BUAG_CONT and there it is (at line 137 in an EHP5): call of event 1022....
Kind regards
Christoph