Hi ,
Y do you want to write a program for that ? You want to check all the TR's for a particular date range ,is it? Then go the the table - E070.. there u can give a date range or user and many more .
simple give your date range and get the results .
Thanks & Regards ,
Shiv