on 09-11-2008 3:08 PM
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
w
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
put a log statement after wdContext.nodeOutput_pltctr().invalidate();
and in catch block and see whether it is getting executed or not
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Ask your ABAPer to do the required for you by making the FM remote enabled.
PradeeP
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.