SAP for Utilities Discussions
Connect with fellow SAP users to share best practices, troubleshoot challenges, and collaborate on building a sustainable energy future. Join the discussion.
cancel
Showing results for 
Search instead for 
Did you mean: 

Event 1022 is not triggered while replicating Contract Account from ECC to CRM

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

View solution in original post

2 REPLIES 2

AmlanBanerjee
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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