Skip to Content
0
Former Member
Apr 15, 2013 at 02:51 PM

ARFC2ModelExecuteException: Typed model execution failed; see nested exception for details

247 Views

hi all,

my goal is to import and execute the rfc functional modules from sap back-end system. so below are steps configured:

1. created a DC (local) project > imported an rfc from back-end system using the below destinations > import was successfull

a. WD_MODELDATA_DEST

b. WD_RFC_METADATA_DEST

the above destinations were created in nwa > destinations > rfc destinations by basis!

2. mapped the model context with component controller & to view contexts

3. in component controller excecuteBAPI() method i've written below code:

Z_SYSTEM_ALERTS usModel = new Z_SYSTEM_ALERTS();

Z_System_Alerts_Input input = null;

try

{

input = new Z_System_Alerts_Input(usModel);

input.setSystemID("234567");

input.setPeriod(100);

wdContext.nodeZ_System_Alerts_Input().bind(input);

wdContext.currentZ_System_Alerts_InputElement().modelObject().execute();

// wdContext.nodeOutput().invalidate();

} catch(ARFC2ModelExecuteException e){

msgMgr.reportException( e.getLocalizedMessage());

msgMgr.reportException(e.getStackTraceString());

}

4. in view init() i called below line:

wdThis.wdGetZSACompController().executeBAPI();

The program runs, but throws the below exception:

ARFC2ModelExecuteException: Typed model execution failed; see nested exception for details

i've tried to chk in sdn, but no useful:

- are there any missing dependencies like dc, jars, libraries ?

- is it important to import this HM-WDUIDMKTCNT sc?

- any code change required?

Any hint\help would be great to resolve this issue!

-Tnx,JB

Attachments

arfc2exception.png (20.0 kB)