Rohit,
You don't have to write a SELECT here. The BADI has the object through which you can read the infotype record.
![Capture.JPG]()
MO_INFOTYPE will now have different methods through which you can read the first or last record for the infotype read.
Regards,
Arun