How to identify the payment is Over/Short/Exact Payment in AR

Hi Team,

I have a scenario in AR, I need to derive a new activity in AR, which should tell us the payment made by the customer is Over/Short/Exact Payment.

I’m checking in BSEG table, by taking BELNR and the corresponding WRBTR but not sure how to match the Invoice amount to paid amount.

Suggest me a possible way to match the Invoice & Paid amount.