on 10-02-2009 1:15 PM
Hi friends.
I am facing a problem with a webdynpro application made in NWDS 7.1.
When I access a RFC with the following code, a lot of connections are shown on SM04 transaction:
Custom Controller: *
public void wdDoInit()
{
//@@begin wdDoInit()
//$$begin Service Controller(-674804765)
ModelTeste5 modelTeste5Model = new ModelTeste5();
Z_Teste2_Input z_Teste2_Input = new Z_Teste2_Input(modelTeste5Model);
wdContext.nodeZ_Teste2_Input().bind(z_Teste2_Input);
//$$end
//@@end
}
public void executeZ_Teste2_Input( ) {
//@@begin executeZ_Teste2_Input()
//$$begin Service Controller(-1586521670)
try
{
wdContext.currentZ_Teste2_InputElement().modelObject().execute();
wdContext.nodeOutput().invalidate();
}
catch(ARFC2ModelExecuteException e)
{
wdComponentAPI.getMessageManager().reportException(e.getMessage());
}
//$$end
//@@end
}
View: *
public void onActionLerEnviar(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
{
//@@begin onActionLerEnviar(ServerEvent)
wdThis.wdGetModelTeste5ControllerController().executeZ_Teste2_Input();
//@@end
}
Hi
After the execution check isAlive and disconnect it.
wdContext.current<BAPI>InputElement().modelObject().modelInstance().disconnectIfAlive();
Kind Regards,
Mukesh.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
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.