Currently i am working on a project where the users create Invoices and Credit Memo's in front end. The accounting documents created with reference to these either invoice or credit memo are cleared in SAP. We are building up a tracker to update every event that is created in SAP. Right now we are capturing the events but not able to differentiate between the clearing documents whether they are cleared against payment or credit memo. I would need your help to let me know what logic i can use to clearly differentiate the clearing documents cleared against payment or credit memo. Based on this i will either add or subtract the value from clearing document. Thanks your help.