Skip to Content
0
Jan 14, 2008 at 11:46 AM

Wrong output while executing same RFC with different values

26 Views

Hi All

i am executing rfc using following method.But the prob is that the data it returns first time doesn't change even when i invoke same method with different input values.

public void callPDPFunction( java.lang.String status )

{

//@@begin callPDPFunction()

try{

custCode = wdContext.currentStatusTableElement().getCustomerCode();

pdpFunctionInput.setStatus(status);

Zpdp_Entry inputStructure = new Zpdp_Entry();

inputStructure.setKunnr(addZeroes(custCode,10));

inputStructure.setPlan_Mm(getMm());

inputStructure.setPlan_Yyyy(getYear());

pdpFunctionInput.addIo_Table(inputStructure);

wdContext.currentZpdp_Function_InputElement().modelObject().execute();

wdContext.nodePDPFunctOutput().invalidate();

}catch(Exception e)

{

msgMngr.reportSuccess("Error while executing ZPDP_FUNCTION"+e);

}

//@@end

}