on 09-23-2005 9:56 PM
Hi all.
I'm having a problem with DATES when execute a 'Z' bapi from webdynpro.
I develop a bapi that calls the 'BAPI_CATIMESHEETMGR_INSERT' and 'DATE_GET_WEEK' standard bapis. When i execute the 'Z' bapi in R/3 works perfect, but when i do a remote call from webdynpro occurs an exception: 'com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCExecuteException: Exception condition "DATE_INVALID" raised., error key: RFC_ERROR_SYSTEM_FAILURE' i dont know why this excption its happening.
I already try reimporting the model, restarting the J2EE engine, undeploy, redeploy, and nothing.
I hope somebody can help me. Please its URGENT!
Thx
Best Regards.
Gregory.
Hi Gregory,
Please pass default value for the DATE column. Please check the mandatory input fields and pass the info.
Ex:
InputModelcass modelclass=new InputModelClass();
modelcass.setDate();
wdContext.ModelClass().bind(modelclass);
Regards, Anilkumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi gregory,
In Sap date will be taken as String.if u pass String from WebDynpro then ur problem will be solved.try to pass the string.
i hope that it will work.
if it is not working let me know
regards
balu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Gregory,
What value are you specifying to execute your RFC from web dynpro? Check the format of date in webdynpro as well as in RFC.
Both should be same.
Regards,
Bhavik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok, thx a lot to all.
I guess that the problem is by the format. In the webdynpro i receive a date of type java.sql.Date and i'm doing something like:
java.sql.Date wd = wdContext.<>.getDate();
ModelClass mc = new ModelClass();
mc.setWorkdate(wd);
I dont know if this is the correct form to do that. If not please tell me how to do it. And i dont know how to check the rfc, i execute the bapi in R/3 to test it.
I hope somebody helps me.
Gregory.
Hi,
As the RFC is getting executed in the SAP GUI do check the way you are setting the input to RFC from Web Dynpro because as the error says the RFC is not being executed.
Do check whether you are providing input for all the mandatory fields.
Hope this helps.
Regards,
Vijith
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.