I have created an WebDynpro ABAP application which update an infotype. We have also created an Iview for this and integrated it into the ESS portal. How can I map the employee number (PERNR) of the logged in user to this iView/WebDynpro?
Thanks in advance!
Well, you can find the employee number linked to the user ID from infotype 105 subtype 0001 (take a look into table PA0105). Just make a select to the table with sy-uname.
There are also plenty of standard function modules for your purpose. You just give the current user ID to them as import parameter, and they give you the employee information such as the employee number, name etc.. Just take a look in SE37 functions getemployee*, and you should find few useful functions.