cancel
Showing results for 
Search instead for 
Did you mean: 

Webdynpro makes a lot of connections on SM04

Former Member
0 Kudos

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
  }

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

After the execution check isAlive and disconnect it.


wdContext.current<BAPI>InputElement().modelObject().modelInstance().disconnectIfAlive();

Kind Regards,

Mukesh.