on 01-13-2008 11:21 AM
Hi all,
I am new to webdynpro. I am calling a RFC from R/3/.the code is like this.
Zhr_Fm_Loan_Input input = new Zhr_Fm_Loan_Input();
wdContext.nodeZhr_Fm_Loan_Input().bind(input);
input.setUsrid(wdContext.currentContextElement().getEmpnoa());
try
{
wdContext.nodeZhr_Fm_Loan_Input().currentZhr_Fm_Loan_InputElement().modelObject().execute();
}
catch(Exception e)
{
wdComponentAPI.getMessageManager().reportException("Exception "+e,true);
}.
In the output i am getting an eror Exception com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCExecuteException.
Can anybody explain the error.
Regards,
Rajesh
Hi,
Thax for the inputs.Got the solution.There is a case sensitive problem while passing the user from portal to backend.
Regards,
Rajesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rajesh
Kindly check ur BAPI once from Backend, i hope there is no other mandatory field required apart from Usrid.
I hope BAPI doesnot have any mandatory Structure in it. in case it has , u have to pass that also..
Try printing this context also ..wdContext.currentContextElement().getEmpnoa().. i hope it is not returning a null.
wdContext.nodeZfm_Input().nodeOutput().invalidate(); // Add this line after execute statement
Regards
Puneet
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
sorry rajesh
stmt is
wdcontext.nodeOutput().invalidate();
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
As part of try block u can write the following stmt also.
wdcontext.nodeInvalidate()
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rajesh,
Are you able to execute the RFC from backend with same inputs, if yes then try to debug the application from frontend, and change the catch code to below you may get some more imformation about the error:
wdComponentAPI.getMessageManager().reportException("Exception "e" and "+e.getMessage(), true);
Regards
Sid
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
9 | |
9 | |
9 | |
6 | |
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.