Hi Kinyanjui Kamau....
You may try this:
Select T0.DocNum, T0.Duedate, To.Status
From dbo.owor T0
where DateDiff(DD,T0.duedate,GetDate()) = 0 AND T0.OriginType='R'
Also check with the Link
http://scn.sap.com/thread/1729318
Hope Helpful
Regards
Kennedy