Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Invalidate()

Hi,

I have an assignment where I have to pass employee number to the BAPI and get information regarding employee and display at front end.

There is a input field where User enters emp number and press enter. In the onEnter event I wrote code for executing the model and passing emp number as input to the BAPI.

It is working fine for the first time. When User enters another number in the input field and press enter, then the values are not changing. I use the Invalidate() function for refreshing the node. but ! even though I could not get the reslut.

see the below my code.

public void onActionimplementGO(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
  {
    //@@begin onActionimplementGO(ServerEvent)
       
        
        String emp = wdContext.currentContextElement().getEmpNumber();
        wdContext.currentZhr_Empdata_Get_InputElement().setPernr(emp);
        wdContext.clearSelection();
        wdContext.invalidate();
         
		 wdThis.wdGetPersonalComponentController().executeZhr_Empdata_Get_Input();
		
		 
		 wdComponentAPI.getMessageManager().reportSuccess(wdContext.currentOutputElement().getFname());
		 
		
	    
    //@@end
  }

please help

thanks

Jyothi

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question