2006 Mar 29 3:38 PM
Hi All,
Is output type anyway related to date format.
As there is a case when we are trying to assign 2 output types at the same time, and try to save it, we get an update termination error.
On debugging the code we found that date formats it was chosing for 2 output types were different. ( Ex - DD.MM.YYYY and YYYY.MM.DD )
Regards,
Harish
2006 Mar 29 4:21 PM
Hello Harish,
Date format is determined by the global settings such as Country or more specifically the User Master. It is not based on output type.
Thanks,
Venu
2006 Mar 29 6:45 PM
hi,
Date format is always depends on user settings. to check those settings use the Tcode SU01-> DEFAULTS tab you will get your date format.
if you are trying it in ABAP code always wuse command "WRITE source date to taget date". then ABAP itself take care of formates
2006 Mar 29 7:30 PM
Hi Harish,
Date formats will may differ from user to user, this is depends on the User date format, if you want to use the Generic format then use the beloe code
Data: Date like SY-DATUM,
date1(10),
Move: SY_DATUM to DATE.
WRITE DATE to DATE1.
in this onw DATE1 will have the USER Format, whatever the user format, it will convert the DATE to that user, but in this case the year should come first i mean the format of SY_DATUM.
Thanks
Sudheer
2006 Mar 29 7:40 PM
Hi Harish,
You may take a look at this FM <b>CONVERT_DATE_TO_INTERNAL</b>.
Hope this will help.
Regards,
Ferry Lianto