on 02-11-2007 6:07 PM
In ESS, there are iViews which directly launch a specific Personnel Change Request based on the parameter SCENARIO=<qisr scenario> e.g. SPEG, SPPS etc.
This in turn calls the WebDynpro and passes them as parameters to the WebDynpro, thus only displaying that scenarion defined in the Application Parameter.
I would like to be able to not only send the QISR SCENARIO (SPEG, SPPS), but I would also like to be able to send a PERNR directly to the WebDynpro thus initiating the PCR for a scenario
AND a specific person.
Does anybody know how this can be done? Anyone familiar enough with this webdynpro itself and could describe how to accomplish this?
Thanks,
-Tim
Hi Tim,
This is exactly what I need as well.
Have you figured out how to pass PERNR to the WD applications?
Thanks,
Alex
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Normally the pernr id will get from the SAP Backend system while executing the RFC and the RFC returns pernr as output, Every employee is assigned to a Pernr which we extract in the Web Dynpro application as below:
To do this, create a method with Event and java.lang.String Parameter.
public void onActionExtractPernr(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent, java.lang.String pernrObject )
{
//@@begin onActionExtractPernr(ServerEvent)
if (pernrObject.substring(0,1).equalsIgnoreCase("P")) {
String pernr = pernrObject.substring(6, 14);
// add a debug message to see whether you are getting the pernr
wdComponent API.getmessageManager.reportSuccess("Pernr ID :" + pernr);
// Once you extract the pernr you can set this value where ever you want based on the requirement.
wdContext.currentNodeInputElement().setPernr(pernr);
}
//@@end
}
Thanks
Krishna
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.