Skip to Content
avatar image
Former Member

RFC data not getting to form

I am trying to do a trivial Web DynPro app that displays data from the R/3 RFC_SYSTEM_INFO. I am able to fetch the data from the model successfully, but the data is not showing up in the form.

My action method looks like:

  public void onPlugIn(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
  {
    //@@begin onPlugIn(ServerEvent)
    msgMgr.reportSuccess("hit plug in " + (new java.util.Date()).toString());

    try {
      getSystemInput.execute();
    } catch (WDDynamicRFCExecuteException e) {
      msgMgr.reportException(e.toString(), true);
    }

    wdContext.nodeOutput().invalidate();
    wdContext.nodeRfc_System_Info_Input().invalidate();
    wdContext.nodeRfcsi_Export().invalidate();

    msgMgr.reportSuccess(getSystemInput.getOutput().getRfcsi_Export().getRfcdest());
    //@@end
  }

Any ideas where to look?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Jun 07, 2005 at 03:02 PM

    Hi Douglas

    Seems that you are invalidating the nodes after you execute the RFC. comment the following statements and check.

    wdContext.nodeOutput().invalidate();

    wdContext.nodeRfc_System_Info_Input().invalidate();

    wdContext.nodeRfcsi_Export().invalidate();

    Kishore

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Was calling the wrong execute!

          try {
            wdContext.currentRfc_System_Info_InputElement().modelObject().execute();
          } catch (Exception e) {
            msgMgr.reportWarning(e.toString());
          }
      
          wdContext.nodeOutput().invalidate();