cancel
Showing results for 
Search instead for 
Did you mean: 

Error for making a call to RFC

Former Member
0 Kudos

Hi

I need to display a message"Contact admin". If an error occurs when making a call to function module.Any problem in function module.

Thanks

Lohi.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

Try this

In the Model node execute method

try{

wdContext.current<BapiInput>Element().modelObject().execute();

}catch(Exception e){

wdComponentAPI.getMessageManager().reportWarning("Contact admin");

}

Kind Regards

Mukesh

Former Member
0 Kudos

Hi

Thanks for your immediate reply.

I am not asking about that. Before executing the function module any problem to be happend.

R/3 system failure like that.

Thanks

Lohi.

Former Member
0 Kudos

Hi

Try this

IWDJCOClientConnection clientCon = WDSystemLandscape.getJCOClientConnection("<WD_MODELDATA_DEST_JCO>");

JCO.Client client= clientCon.getClient();

if(client.isAlive()){

}else{

//Error message

}

Kind Regards

Mukesh