1 Reply Latest reply: Jun 10, 2010 5:21 PM by Marcus Wass RSS

7.1 ehp1, Problems using datatype date, WebDynpro to CAF

Marcus Wass
Currently Being Moderated

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

  • Re: 7.1 ehp1, Problems using datatype date, WebDynpro to CAF
    Marcus Wass
    Currently Being Moderated

    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

Actions