Hi Hari,
I think you can achive the first one by a enhancement but for next one I am afraid I don't think so it would be possible by SAP standards. Obviously you can do everything by ABAP, however I don't recommend doing anything non-standard.
Which kind of WT is 4001? Maybe we find another solution for your requirement. Please share your original requirement which you have found this solution for.
Regards,
Omid