Skip to Content
0
Former Member
May 29, 2008 at 09:18 AM

Web Dynpro & RFC

24 Views

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){