on 11-02-2011 7:36 AM
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.
Please launch the Leave Request WebDynpro application directly and add these URL parameters to it "sap.xss.debug=t"
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can get the pernr from the FcEmployeeService used DC
String pernr;
pernr = wdThis.wdGetFcEmployeeServicesInterface().getEmployeenumber();
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
102 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.