Skip to Content

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

RFC Function Module Not getting Executed

Hi Everyone,

I made changes to a existing DC where I required to add an RFC model to it, so I imported a FM from backend and appropriate Binding was done with the DATA cutome controller to the model and coded for executing the FM. After executing the method I copied all the output data to a value node and it was always zero.

I put up a external debugger in the backend , the application never reaches the sap . it definitely not exceuting the fm ,

please suggest me where possibly the error could be.

Here is the code written in DATACUSTOMController,

IWDMessageManager manager = wdComponentAPI.getMessageManager();

wdContext.nodeZ_Mm_Part_Plant_Profitcentre_Input()

.bind(new Z_Mm_Part_Plant_Profitcentre_Input());

try {

wdContext.

currentZ_Mm_Part_Plant_Profitcentre_InputElement()

.modelObject().execute();

wdContext.nodeOutput_pltctr().invalidate();

}

catch (WDDynamicRFCExecuteException ce) {

manager.reportException(ce.getMessage(), false);

}

// copy the data from model to node

WDCopyService.copyElements(

wdContext.nodeOutput(),

wdContext.nodeV_Plt_Profitcenter());

//disply the size copied

manager.reportSuccess(" node size is v_plt_profitcenter is "+ wdContext.nodeV_Plt_Profitcenter().size());

//Code where it calls this method in the view is

wdThis.wdGetDataCustControllerController()

.ExecuteZ_Mm_Part_Plant_Profitcentre_Input();

Regards,

Raj

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