cancel
Showing results for 
Search instead for 
Did you mean: 

RFC Function Module Not getting Executed

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

w

Former Member
0 Kudos

put a log statement after wdContext.nodeOutput_pltctr().invalidate();

and in catch block and see whether it is getting executed or not

Former Member
0 Kudos

Hi ,

Is there any paramter which is needed to be set for the execution for the BAPI ? Have you done that , also can u try priting the model node size.

regards

Pankaj Prasoon

Former Member
0 Kudos

The FM has no imput parameters , all it does is exports the palnts from a table

PradeepBondla
Active Contributor
0 Kudos

Hi,

Ask your ABAPer to do the required for you by making the FM remote enabled.

PradeeP

pramod_gopisetty1
Active Contributor
0 Kudos

Hi Kandaraj,

Go to SE37 and make sure the FM Z_Mm_Part_Plant_Profitcentre is Remote-Enabled Module.

If that is not Remote-Enabled you cannot use in NWDS.

Hope this helps.

Cheers-

Pramod

Former Member
0 Kudos

The FM is a RFC enable FM