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

date and time in correct format ??

Former Member
0 Likes
663

hi,

I have a date field FD1 in one of my custom table say X.

I created a dialog screen in which i inserted that field from the dictionary, and when it was displayed the value was displayed as 20080807 and not as 08/07/2008.

why so ??

so in the screen field attribute, i unchecked "from dict" and changed the format to DATS.

so now the value was displayed as 08/07/2008.

But then now when i insert this in another custom table , this value is stored as 20080807.

how to deal with this ?? i need the value to be as 08/07/2008 everywhere !! any suggestions.

thks

1 ACCEPTED SOLUTION
Read only

valter_oliveira
Active Contributor
0 Likes
612

Hello.

A DATE field will always be stored internaly as AAAAMMDD format inside internal or database tables. However, when you display it, it appears with user definitions format, like DD/MM/YYYY, or MM/DD/YYYY, and so on ...

Regards.

Valter Oliveira.

hi,

I have a date field FD1 in one of my custom table say X.

I created a dialog screen in which i inserted that field from the dictionary, and when it was displayed the value was displayed as 20080807 and not as 08/07/2008.

why so ??

so in the screen field attribute, i unchecked "from dict" and changed the format to DATS.

so now the value was displayed as 08/07/2008.

But then now when i insert this in another custom table , this value is stored as 20080807.

how to deal with this ?? i need the value to be as 08/07/2008 everywhere !! any suggestions.

thks

3 REPLIES 3
Read only

valter_oliveira
Active Contributor
0 Likes
613

Hello.

A DATE field will always be stored internaly as AAAAMMDD format inside internal or database tables. However, when you display it, it appears with user definitions format, like DD/MM/YYYY, or MM/DD/YYYY, and so on ...

Regards.

Valter Oliveira.

Read only

Former Member
0 Likes
612

Hi,

use the FM "CONVERSION_EXIT_IDATE_OUTPUT"

Regards,

Syf

Read only

Former Member
0 Likes
612

Hi ,

This is because DATS type is always stored in SAP as YYYYMMDD and displayed to user as per user setting.

you can check this setting in System -> User Profile -> Own data -> Defaults -> Date Format.

Regards,

Mohaiyuddin