Skip to Content
0
Former Member
Dec 28, 2005 at 03:13 AM

No data from a RFC imported in a Web Dynpro project

24 Views

Hi all,

I'm experimentig an issue in an app that calls a RFC, the RFC is returning nothing, no message, no error, no data. I tested the RFC in R3 and is doing what is supposed to do, it was tested also in the SLD content manager and it responses well to the ping and test command.

This is what am i doing in the component controller called Rgsm_Reload_Comp

this in the wdDoInit:

//@@begin javadoc:wdDoInit()

/** Hook method called to initialize controller. */

//@@end

public void wdDoInit()

{

//@@begin wdDoInit()

try {

Z_Ep_Ess_Gral_Get_Empl_Data_Input input = new Z_Ep_Ess_Gral_Get_Empl_Data_Input();

input.setP_Usrid("GRAMIREZ");

wdContext.nodeEmpl_Data_Input().bind(input);

wdContext.currentEmpl_Data_InputElement().setP_Usrid("GRAMIREZ");

//input.setP_Usrid(wdContext.currentEmpl_Data_InputElement().getP_Usrid().trim());

} catch (Exception e) {

IWDMessageManager msgMgr = wdComponentAPI.getMessageManager();

msgMgr.reportException("Error al inicializar la RFC de datos personales " + e.getMessage(), true);

}

//@@end

}

This in the execute Bapi method called from the view:

//@@begin javadoc:executeBapGetDataEmpl()

/** Declared method. */

//@@end

public void executeBapGetDataEmpl( )

{

//@@begin executeBapGetDataEmpl()

//Traemos los datos del empleado comunicandonos con la RFC Z_Ep_Ess_Gral_Get_Empl_Data

try {

wdContext.currentEmpl_Data_InputElement().modelObject().execute();

wdContext.nodeEmpl_Data_Output().nodeHr_Personal_Out().invalidate();

} catch (Exception e1) {

msgMgr = wdComponentAPI.getMessageManager();

msgMgr.reportException("Error al inicializar la RFC de datos personales " + e1.getMessage(), true);

}

//@@end

}

And last this in the Rgsm_Reload_ComView the view controller, the action to call the execute method in the component controller:

//@@begin javadoc:onActionfindEmployee(ServerEvent)

/** Declared validating event handler. */

//@@end

public void onActionfindEmployee(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )

{

//@@begin onActionfindEmployee(ServerEvent)

wdThis.wdGetRgsm_Reload_CompController().executeBapGetDataEmpl();

//@@end

}

I've followed all steps in online tutorials I found, but I don't know what is wrong, if somebody can help me on this I'll really appreciate it.

Best regards,

Ramien.-

Message was edited by: Ramien Rosillo