2010 Mar 16 9:26 AM
Hi SapAll.
i had created one function module with field tare date of DATS format.
when iam testing this by putting the tare date as 12.02.2010 ,it is accepting the same value as 20100212.
but i want the field to be accpeted same as the input value i.e 12.02.2010.
can any body help me in this.
regards.
Varma
Hi SapAll.
i had created one function module with field tare date of DATS format.
when iam testing this by putting the tare date as 12.02.2010 ,it is accepting the same value as 20100212.
but i want the field to be accpeted same as the input value i.e 12.02.2010.
can any body help me in this.
regards.
Varma
2010 Mar 16 9:30 AM
What are you doing if a user chooses date format 2 in his settings? Relying on a special date format is bad. A function module should be generic, so the format D or DATS is ok as type.
2010 Mar 16 9:34 AM
20100212 in YYYYMMDD is sap internal format when you declare the data type as d . generally this wil be used for calculation and validations no harm done :).
you can use convdateinternal and convdateexternal Fm's to modify the date in ur user settings .
'12.02.2010' if u want to validate this date in this format then it should be handled with character format in ur datatype.
Br,
Vijay
2010 Mar 16 10:13 AM
Date formatting questions not allowed (all FAQ and answered before), see forum rules, thread locked.
Thomas
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |