06-09-2010 6:03 AM
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.
06-09-2010 7:16 AM
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
06-09-2010 6:43 AM
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
06-09-2010 2:53 PM
HI Amlan,
thanks for the reply, I was actually thinking at using event 110 ?
06-09-2010 7:16 AM
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
06-09-2010 3:04 PM
06-09-2010 3:06 PM
08-02-2010 6:46 PM
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
08-03-2010 8:40 PM
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
08-03-2010 9:25 PM
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