Hi Bharath,
Now you are taking P0002 table for name pick up. But at the same time you have to check the length on it of employee's name. It's keep varying employee to employee.
Suppose one name is Gopalkrishnan Murthi
and another Sourav Kumar
So length is differing on that time it's difficult to use P0002 table as per my knowledge so far we are generally taking ENAME from IT0001 which is coming from the table P0002.
Best of luck.
Check this path would be helpful to you regarding changing the name format of IT2 which will be reflecting in IT1.
PM--> Personal Administration-->>Personal data--> Name Format.
Regards,
Sankarsan