Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problem With DATE format.

Former Member
0 Likes
526

Hi Frineds,

I have created ztable which will have the fileds like :

MANDT type MANDT

REPORT_ID type ZREPORTID,

SELNAME type RSSCR_NAME,

SIGN type TVARV_SIGN,

OPTION1 type TVARV_OPTI

LOW type TVARV_VAL

HIGH type TVARV_VAL.

in this table I am stroing all the default values for selection-screen in webdynpro-abap.

but for the selection-screen filed Begda( For any date filed ), I am Unable to set the Value as it is.

It is stored as 02/02/2009, but when it comes to screen it is getting displayed as 2//20/02/0.

I am sure with data type problem. but I can't change the Low type as it afftects the other fileds which are not date format.

Kindly,Help me.

Regards,

Xavier.P

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
481

Hi,

Actually due to user settings we get the data like 04/03/2009. But actually system processes theses data as 20090304. So give ur data in this format YEAR MONTH DATE .

in ur case give it 20090202.

Cheers,

Rudhir

3 REPLIES 3
Read only

Former Member
0 Likes
481

Hi,

Store the data as 20090202 instead of 02/02/2009. when you moving 02/02/2009 to date field it is again converting the date to user format.

EX..

MANDT = sy-mandt.

REPORT_= sy-repid.

SELNAME = 'P_DATE'

SIGN = 'I'.

OPTION1 = 'EQ'.

LOW = '20090202'.

HIGH = ' '.

Edited by: Avinash Kodarapu on Mar 4, 2009 4:10 PM

Read only

Former Member
0 Likes
482

Hi,

Actually due to user settings we get the data like 04/03/2009. But actually system processes theses data as 20090304. So give ur data in this format YEAR MONTH DATE .

in ur case give it 20090202.

Cheers,

Rudhir

Read only

Former Member
0 Likes
481

Hi,

In your ABAP editor choose SYSTEM >> USER PROFILE >> OWN DATA and in the date format choose the desired conversion... it will be displayed in that order.

Thanks,

Rohan