on 06-03-2009 10:14 AM
Hi all,
I have created a function module and while using the function module in my application i am getting the error like as follows
com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCExecuteException
can anyone help me how to solve this issue
thanks,
Viswa
This error can occur due to many reasons.Few of them could be:
1.Bapi might not be imported properly
2.A new structure or parameter might have been added and the bapi might have been not reimported.
If it is not due to above reasons then try deleting the model and create a new rfc model
Regards,
Pradeep
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
There could me many chances of getting this exception. Print the stacktrace, exception cause and exception message. And post the same here.
Regards,
Charan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
exception:com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCExecuteException
wdContext.currentZentity_Mstr_InputElement().modelObject().execute();
this line is not executing in my source code.
this exception i am getting while deploying the application......
and the data which i am giving in frontend is not getting effected in backend r3 table.
can anyone help me to solve this issue.
thanks,
viswa
Hi,
Have you given all the madatory inputs to the request object and executing the model.
If you are giving all the mandatory inputs and executing the model then check there might be some problem with bapi execution.
And print the exception by keeping the statements in exception block
e.getMessage()
e.getCause()
Regards,
Saleem
Hi,
In the catch block of model execution code.
try
{
wdContext.currentZentity_Mstr_InputElement().modelObject().execute();
}
catch(Exception e)
{
wdComponentAPI.getMessageManager().reportException("Error Message "+e.getMessage,true);
wdComponentAPI.getMessageManager().reportException("Error Cause "+e.getCause,true);
}
Regards,
Charan
Hi,
You need to create the object for the proxy class ZENTITY_MSTR and set the value for COUNTRY field
try
{
Zentity_Mstr_Input objZentity_Mstr_Input=new Zentity_Mstr_Input();
//Create the object for proxy class ZENTITY_MSTR
ZENTITY_MSTR objZENTITY_MSTR=new ZENTITY_MSTR();
//Set the country value
objZENTITY_MSTR.setZCountry("Country");
objZentity_Mstr_Input.set/addZENTITY_MSTR(objZENTITY_MSTR);
wdContext.nodeZentity_Mstr_Input().bind(objZentity_Mstr_Input);
wdContext.currentZentity_Mstr_InputElement().modelObject().execute();
}
catch(Exception e)
{
wdComponentAPI.getMessageManager().reportException("Error Message "+e.getMessage,true);
wdComponentAPI.getMessageManager().reportException("Error Cause "+e.getCause,true);
}
Regards,
Charan
Hi,
I have not created the BAPI ,
I am using the function module directly....
there is no errors in function module....it's working perfectly....
But I am getting the error as
Error Message Mandatory parameter ZCOUNTRY of method ZENTITY_MSTR missing
Error Cause com.sap.aii.proxy.framework.core.DataAccessException: Mandatory parameter ZCOUNTRY of method ZENTITY_MSTR missing
Can anyone help me in this,....
thanks,
viswa
Hi,
In ABAP workbench check transaction ST22 for any errors for BAPI/RFC side.
If there are no errors from BAPI side, check from your code side by setting external breakpoint in BAPI
regards,
ganga
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.