Hi Suresh,
If you need to get the the userid of a logged in user , you can either use wd abap or wd java, through system variables, which gives you the logged in user id. Inturn with the help of ID , you can fetch required details.
Its better to go for wd abap since, it requires minimal coding efforts compared to abap.
Regards,
Harsha