‎2007 Jan 20 5:57 AM
Dear Friends,
In one of my dialogs (screens) I have incorporated a text-field for Date. When I make an entry in this field it gets displayed correctly in the desired format e.g. 20.01.2007, but when I call the value of date from the table it gets displayed as 20.07.20. (displaying in yyyymmdd, with periods).
Pls provide me a clue for solving this.
Regards,
Alok.
‎2007 Jan 25 5:18 AM
Hi Alok,
You can use following code to get the date in proper format.
DATA: VA_FINAL(10), VA_DATE(8).
VA_DATE = 20072001.
concatenate va_date6(2) va_date4(2) va_date(4) into VA_FINAL separated by '.'.
Hope this will work.
Darshan
‎2007 Jan 20 6:03 AM
use this conversion routine.
CONVERSION_EXIT_PDATE_INPUT.
test this function module in se37 & see whether it solves ur problem.
‎2007 Jan 22 7:52 PM
Hi,
You should use the table reference for the dialog screen field, that should solve your problem.
Thanks,
Ketan
‎2007 Jan 23 4:21 AM
make type of field as sy-datum.
u will also get calender on pressing f4 and it will take and display date in proper format
see if this information is userful
*reward pouints if info is useful
‎2007 Jan 23 9:07 AM
hi alok,
the internal format of the date is some what different than wt ever u enter and refer the field to db date field or ref with sy-datum.and here the system intenal format will be 20071031
thanks
mahe
‎2007 Jan 25 5:18 AM
Hi Alok,
You can use following code to get the date in proper format.
DATA: VA_FINAL(10), VA_DATE(8).
VA_DATE = 20072001.
concatenate va_date6(2) va_date4(2) va_date(4) into VA_FINAL separated by '.'.
Hope this will work.
Darshan