on 10-15-2009 10:49 AM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
refer SAP online help pls
http://help.sap.com/saphelp_nwmobile71/helpdata/en/43/4458be70cc1bcce10000000a1553f7/content.htm
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
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.