on 05-29-2008 10:18 AM
Hi experts!!
I am trying to implement a WD view with the following attributes:
1.Before the view is dispalyed an RFC fonction module is called with the portal's logon id as import parameter
2. The RFC's output is then displayed in the WD view within a form template where the user can edit the results and then proceed.
Below is the code i have written, but i do not get any results.
Please help!!!
try{
IWDClientUser wdClientUser = WDClientUser.getCurrentUser();
com.sap.security.api.IUser sapUser = wdClientUser.getSAPUser();
IUserAccount[] acct = sapUser.getUserAccounts();
if (acct != null)
{
String user = acct[0].getLogonUid();
wdComponentAPI.getMessageManager().reportSuccess(
"user" + user );
IPrivateFormaAitisisView.IZpt_Pistop_Epim_Enimer_InputNode node = wdContext.nodeZpt_Pistop_Epim_Enimer_Input();
IPrivateFormaAitisisView.IZpt_Pistop_Epim_Enimer_InputElement el = node.currentZpt_Pistop_Epim_Enimer_InputElement();
el.setMember(user);
wdContext.nodeZpt_Pistop_Epim_Enimer_Input().bind((Collection) el);
wdThis.wdGetEnimerotitaController().executeZpt_Pistop_Epim_Enimer_Input();
}
}
catch (Exception e){
Hi Iria,
Comment the code line
wdContext.nodeZpt_Pistop_Epim_Enimer_Input().bind((Collection) el);
Regards,
Gopal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Gopal!!
Thanx for you answer.That was it!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
1. Does RFC Zpt_Pistop_Epim_Enimer needs only one parameter?
2. Check in executeZpt_Pistop_Epim_Enimer_Input() method that you are invalidating the output node to reflect the changes
nikhilL
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Is it coming to this part ?
wdComponentAPI.getMessageManager().reportSuccess(
"user" + user );
Try out these steps
1.Create an object of this class
nodeZpt_Pistop_Epim_Enimer_Input Pistop_input = new nodeZpt_Pistop_Epim_Enimer_Input();
2.and then bind it
wdContext.nodeZpt_Pistop_Epim_Enimer_Input().bind(Pistop_input);
3.and then execute it
wdThis.wdGetEnimerotitaController().executeZpt_Pistop_Epim_Enimer_Input();
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.