on 05-05-2010 7:54 AM
Hi,
I'm trying to use a EJB model created in WebDynpro where the provider is a CAF component (7.1 ehp1), with an operation which takes a String and a Date. The problem is when I try to execute the model in WebDynpro. When only the String is filled out it works perfectly fine, but when I also set a date i receive an EJBModelExecuteException.
On the WebDynpro side the java type is java.sql.Date, but the CAF operation expect a javax.xml.datatype.XMLGregorianCalendar.
One workaround is to simply pass a string instead and convert it where needed, but do anyone have a prettier solution to the problem?
Appreciate all help I could get.
Best regards
//Marcus
Hi all,
I solved it with a workaround cause it's a bug.
7.1 ehp1 Ce
Problem:
It doesn't work to pass a flat date in a the CAF operation as a inputparam when using an EJB model from WebDynpro. When the date is set I receive Exception,getOrders: com.sap.tc.webdynpro.model.ejb.exception.EJBModelExecuteException at...
Solution:
Create a complex structure (a wrapper) and then add your date as the input param in the CAF operation, then it works!!! Easy solution, but took a while to figure out...
Cheers
Edited by: Marcus Wass on Jun 10, 2010 5:21 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
96 | |
11 | |
11 | |
10 | |
9 | |
7 | |
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.