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 for reversing the write off document

former_member215295
Contributor
0 Kudos

Hi All,

Can anyone suggest me the event that I should enhance for our requirement which is when a incoming payment comes in system should first check whether there is any write off document and if there is then write off document should be reversed and the incoming payment should be assigned to that particular item.

thanks in advance.

1 ACCEPTED SOLUTION

AmlanBanerjee
Active Contributor
0 Kudos

Moreover, the event 0020 also get triggered when payment will be posted to the account from payment CWL.

Thanks,

Amlan

Edited by: Amlan B on Jun 9, 2010 8:17 AM

View solution in original post

8 REPLIES 8

AmlanBanerjee
Active Contributor
0 Kudos

You can go for Event 0020.

This event gets triggered, and enable additional action to be initiated where a document is posted in Contract Accounts Receivable, and open items are cleared at the same time.

You can add a custom FM for your requirement in this event.

Thanks,

Amlan

0 Kudos

HI Amlan,

thanks for the reply, I was actually thinking at using event 110 ?

AmlanBanerjee
Active Contributor
0 Kudos

Moreover, the event 0020 also get triggered when payment will be posted to the account from payment CWL.

Thanks,

Amlan

Edited by: Amlan B on Jun 9, 2010 8:17 AM

0 Kudos

Thanks for the confirmation

0 Kudos

Thanks for the confirmation

0 Kudos

I Have a similar requirement that I need to reverse write-off before payment posting, I was looking at events 0061,1320,0010...please advice if event 0020 was succesfully implemented by you so that I can also use the same.

Also please let me know if you used bapi_ctradocument_reverse or others?

Thanks,

D. Immanuel

Edited by: Immanuel Dhanasingh on Aug 2, 2010 7:49 PM

0 Kudos

Hi Immanuel,

We haven't yet developed it but thinking it will be event 0200 because it gets trigger during payment program, if you develop please let us know as well.

thanks,

VR

0 Kudos

Thanks for Reply, event 0020 gets triggered but when i use BAPI_CTRACDOCUMENT_REVERSE it throws a short dump or gets into an endless loop.

MESSAGE_TYPE_X

Diagnosis

The message previously issued was sent at a time that is not

permitted. Changes to the database that belong together logical

must not be interrupted through dialogs because otherwise

inconsistent data may be created. In this case, you attempted t

output message >3 137.

The text of the message was

No interest information exists for document 81000050960

System Response

The system stops the posting.

Procedure

Contact your system administrator.

Procedure for System Administration

If the program error occurred during a:

o Standard SAP program, create an OSS message.

o Customer-developed program, correct the program.

Please respond if any ideas.

Thanks,

Immanuel