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: 

FPG1 (Transfer of FI-CA to Gen.Ledger) / Customization of CODCMT Msg Type

Former Member
0 Kudos

Hi,

When we execute 'FPG1' Transaction, 2 outbound IDOCs are generated:

- FI document (FIDCC2/FIDCCP02)

- Controlling Document (CODCMT/CODCMT02)

Requirement is to change the control-record of the above 2 Idocs.

For FIDCC2, we could find FM 'FI_IDOC_CREATE_FIDCC2' which is hit during FPG1. Identified the

Customer-Exit in this FM and was able to change the control record.

But we are unable to find a User-Exit/Customer-Exit, where we can change the control record

for 'CODCMT'. During analysis, came over a FM 'K_DOCUMENT_SEND' which seems to be used for

CODCMT. But in the debug mode of Txn 'FPG1', it never hit this FM.

Any inputs as to how we can change the control record for CODCMT (during FPG1) would be appreciated.

2 REPLIES 2

Former Member
0 Kudos

Hi All,

I researched a bit more and was able to get to the solution.

The FM 'K_DOCUMENT_SEND' is called in UPDATE TASK by Standard SAP.

The FM ''K_DOCUMENT_SEND' can be enhanced by using the new Enhancement Framework option.

We were able to apply our custom code via Implicit Enhancement option and was able to modify the control record

for CODCMT, for our specific scenarios.

Regards,

Prathap

0 Kudos

Hi Prathap,

Finally could you debug FM 'K_DOCUMENT_SEND' through transaction FPG1? It seems that FPG1 never goes to this FM..

Thanks,

Gergo