Skip to Content

Date field Length in Java Webdynpro

Hi Experts,

I have a strange case.

I created a new filed in the infotype 0175: ZZDAT like the standard field AUSGD (type DATS length 8)

I modified the ESS view and added the new fields.

The view is working perfectly, the data is transfered between the databse and the webdynpro, the only problem is, that the user can't enter the date manually, because last point after the day can't be entered: e.g.: 2010.01.01 instead of 2010.01.01.

If the user uses the search help, and selects the date form the popup calendar, then the date format is correct: 2010.01.01.

(there is a point after the DAY ) I tried to change the field length manually but still, the last point after the day can't be entered.

Can you please help me to find out what is the problem?



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Oct 19, 2010 at 09:02 AM


    In Java, the sql date is in the form yyyy.MM.dd without any dot at the end.

    Why dont you use the Data Type DATUM to correct the Date type for the infotype or else manually append the dot.

    The Date picker doesnt provide you with any dots at the end of the Date.



    Add comment
    10|10000 characters needed characters exceeded

    • Unfortunatelly this doesn'T help at all. 😔

      I reimported the data element, and restarted the server, but the result is the same. I can'T enter the date manually..

      To be honest, i'm fed up with this stupid java webdynpro. I hope there is a special place in hell, for the people who invented this....

      Anyway, I think the only solution here is to limit the field, capabilities. I'll try to set the Date picker as the only input way... I hope this is possible... it's easy in ABAP I just hope that java can do this the same "non-somplicated" way.

      If you have any idea how to do this I'll be very greatfull for any kind of help.



  • Oct 20, 2010 at 07:04 AM

    The solution is in the component controller:

    Date is a standard SAP filed with length = 10, so we have tom extend it:

    Comp Controller-wdDoInit()


    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 15, 2012 at 07:36 PM


    I have included database table attribute which is declared as DATS in my node attribute. In my layout view the calender corresponding to this field is showing beside the field but when i run the application that calender option is not coming. Can anyone suggest the solution....!!!!



    Add comment
    10|10000 characters needed characters exceeded