SAP has a limited provision for retrieving deleted programs. Let us have a look into the steps for the retrieval.
1. Check in table VRSD if there is an entry with OBJTYPE = ‘REPS’ and OBJNAME = name of the deleted program.
2. If yes, then create a new program in SE80 / SE38 with the exact same name as the deleted one.
3. Click on Utilities – > Version – > Version Management.
4. Click on the earlier version of your program and click display.
Your earlier program will get displayed, just copy – paste to the existing program.
You can check with TRDIR table. If your program is there then basis guys can get that, if not then no chance to get it.