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: 
Read only

Reversal of Statistical document during reversal of write-off document

Former Member
0 Kudos
556

Hi Experts,

When we write-off some outstanding balance on the customer account, we post one statistical document equivalent to the amount to be written off. Now the requirement is when we reverse the write off document I need to reverse the corresponding statistical document as well. For reference purpose we are populating the write off doc number in reference field of statistical document.

Please help me with some event or process to reverse both the documents at same time.

Thanks,

Suresh

2 REPLIES 2
Read only

AmlanBanerjee
Active Contributor
0 Kudos
303

Hi Suresh,

What I could gather from your post is when you are reversing the write-off document it will automatically reverse the statistical document that you have posted during the write-off.

You can use event 0020 for your requirement.

Event 0020 enables additional action to be initiated where a document is posted in Contract Accounts Receivable, and open items are cleared at the same time.

So in this event, first you can check whether a revesersal entry is geting posted or not for a document. If yes, you can check whether the document is a write-off document of not. and reference no field is populated or not.   

If yes, then retrieve the document# and other parameters and pass it to FM FKK_REVERSE_DOC.

The statistical document will also get reversed.

Hope iit helps..

Thanks,

Amlan

Read only

0 Kudos
303

Hi Amlan,

Thanks for the details, but I am facing problem with FKK_REVERSE_DOC function module. When we try to reverse the write-off doc using FP08 which internally calls FKK_REVERSE_DOC and all events like 60,62,70,20 and 150 will be called. So if I use FKK_REVERSE_DOC to reverse statistical fica doc I am getting short dump because we are trying to call the same function module when we are already in same function module. I tried several ways like ON COMMIT, and in event 150 but no use.