cancel
Showing results for 
Search instead for 
Did you mean: 

how to get personnel number of the user in the wd java code in Leave reques

Former Member
0 Kudos

Hi all,

we are using the standard Leave Request Applicatin ESS.

can any one please tell me how to get the personnel number of the user in the WD java code?

cause i have pass the pernr number to a bapi and get the details.

please help me its urgent.

thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Please launch the Leave Request WebDynpro application directly and add these URL parameters to it "sap.xss.debug=t"

As described in this blog:

Once u launch the app in debug mode, see the context debug meesages, see if ur able to see the perner any where.

If we are able to see it we should be able to get the pernr.

Answers (2)

Answers (2)

Former Member
0 Kudos

You can get the pernr from the FcEmployeeService used DC

String pernr;

pernr = wdThis.wdGetFcEmployeeServicesInterface().getEmployeenumber();

Former Member
0 Kudos

hi yugandhar.

the code u have given is not getting the pernr number.

it showing null.

i have added the FcEmployeeService under used WD components of component FcFormEditButtons.

and created a data link between used and the view.

and tried to know pernr by using msg pool.

it is showing null.

plz help me.

Former Member
0 Kudos

Dear madhu1011

You have 2 alternatives.

Use this function module

RP_GET_PERNR_FROM_USERID

Or read infotype 105, by going to table PA0105 with the user ID (you can also read the infotype with a FM).

But to access any of the above you will need to implement a model to call this FM from your WD4J.

Hope this helps you.

Kind Regards

/Ricardo Quintas