cancel
Showing results for 
Search instead for 
Did you mean: 

com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCExecuteException

Former Member
0 Kudos

HI,

While i,m executing the my model it is showing this error plz help me

com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCExecuteException

This is my code:

input = new Yepf_Visitingcard_Input();

wdContext.nodeYepf_Visitingcard_Input().bind(input);

vcdetail = new Yept_Viscard();

input.setEps_Visit(vcdetail);

java.text.SimpleDateFormat sdf;

sdf =new java.text.SimpleDateFormat("dd-MMM-yyyy");

input.setProcessid(wdContext.currentContextElement().getProcessID());

input.setFcode(s);

input.setPernr(wdContext.currentContextElement().getEmpCode());

wdContext.currentYepf_Visitingcard_InputElement().modelObject().execute();

wdContext.currentContextElement().setProcessID(wdContext.nodeYepf_Visitingcard_Input().nodeOutput().currentOutputElement().getProcess_Id());

wdComponentAPI.getMessageManager().reportSuccess("Process ID "+wdContext.currentContextElement().getProcessID());

wdContext.nodeOutput().invalidate();

Accepted Solutions (1)

Accepted Solutions (1)

suresh_krishnamoorthy
Active Contributor
0 Kudos

Hi Vanama,

Execute BAPI through SAP GUI. if its execute properly do the following steps.

1. Do you have any mandatory input parameters?.

- (check are you setting mandatory input parameters properly)

2. If they changed BAPI structure(data type) after model generation you have to model re-import model again.

Kindly update the status.

Regards, Suresh KB

Answers (3)

Answers (3)

Former Member
0 Kudos

if you are executing RFC method in WdDoInit(), you will get this exception. So my suggestion is to call RFC in Inbound Plug.

Former Member
0 Kudos

Hi Vanama,

Check the return message from bapi,what's it showing??Before executing the bapi,put a breakpoint in r/3 system & check what values r getting passed to bapi..

U can check this in transaction se37,go to ur function module & put external break point over there.

regards

Sumit

former_member365727
Active Contributor
0 Kudos

Hi Santosh,

Your function module is throwing this exception (your code seems to be ok)......try to run the function module from SAP GUI , it will give some error. Take help from ABAPer's and check the function module.

Regards

Srikanth