cancel
Showing results for 
Search instead for 
Did you mean: 

Is DD/MM/YYYY supported in webdynpro for abap application

Former Member
0 Kudos

Hi All,

We are using 2 different time statements one developed in webdynpro for java and other in webdynpro for abap.date format in java is DD/MM/YYYY but in webdynpro for abap is DD.MM.YYYY.

is DD/MM/YYYY supported in webdynpro for ABAP application or even if user enters DD.MM.YYYY can we convert that to DD/MM/YYYY so that we will maintain uniformity in both the applications

Thanks

Bala Duvvuri

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Bala,

We can convert the date before saving ,even if the user enters the date as dd.mm.yyyy as mentioned below.

DATA: lv_indicator type XUDATFM .

CALL FUNCTION 'ISH_GET_USER_DATE'

EXPORTING

USER_NAME = SY-UNAME

IMPORTING

DATE_FORMAT = lv_indicator .

CASE lv_indicator.

WHEN '1'. " DD.MM.YYYY

CONCATENATE p_date6(2) '.' p_date4(2) '.'

p_date(4)

INTO p_result.

WHEN '2'. " MM/DD/YYYY.

CONCATENATE p_date4(2) '/' p_date6(2) '/'

p_date(4)

INTO p_result.

WHEN '3'. " MM-DD-YYYY.

CONCATENATE p_date4(2) '-' p_date6(2) '-'

p_date(4)

INTO p_result.

WHEN '4'. " YYYY.MM.DD

CONCATENATE p_date(4) '.' p_date+4(2) '.'

p_date+6(2)

INTO p_result.

WHEN '5'. "YYYY/MM/DD

CONCATENATE p_date(4) '/' p_date+4(2) '/'

p_date+6(2)

INTO p_result.

WHEN '6'. "YYYY-MM-DD

CONCATENATE p_date(4) '-' p_date+4(2) '-'

p_date+6(2)

INTO p_result.

ENDCASE.

Regards,

Lakshmi.

Answers (3)

Answers (3)

Former Member
0 Kudos

conclusion is Valid date formats in Webdypro for ABAP are DD.MM.YYYY and MM/DD/YYYY

Thanks

Bala Duvvuri

Edited by: Bala Duvvuri on Oct 15, 2009 4:11 AM

Former Member
0 Kudos
Former Member
0 Kudos

Valid formats supported in WD ABAP are :

DD.MM.YYYY and MM/DD/YYYY.

When you will enter date as 01/07/2009 it converts it into 07.01.2009 because the system will read it as MM/DD/YYYY .

If you want to change the display pattern of Date , then you can change the settings for a particular User in SU3 transaction.

Any Valid date entered by the use will be converted into that format.

But when you enter the date in an input field then only two formats are supported : DD.MM.YYYY and MM/DD/YYYY.

I hope it would help you.

Edited by: Saurav Mago on Oct 15, 2009 3:23 PM