2013 Feb 13 7:33 AM
Hi Friends
This FM CONVERT_DATE_TO_INTERNAL converting date from DDMMYYYY to YYYYMMDD
eg if i give 31.01.2013 ddmmyyyy it will return 20130131 yyyymmdd
but while resolving one issue in program i find that date is already converted to 20130131 before passing to this FM and as a output its
giving error specify valid date
from selection screen date is coming in 31.01.2013 format as per requirement that is correct.
now before passing to this FM how can we check that date is already conveted or not ?
Regards
Meeta
Hi Friends
This FM CONVERT_DATE_TO_INTERNAL converting date from DDMMYYYY to YYYYMMDD
eg if i give 31.01.2013 ddmmyyyy it will return 20130131 yyyymmdd
but while resolving one issue in program i find that date is already converted to 20130131 before passing to this FM and as a output its
giving error specify valid date
from selection screen date is coming in 31.01.2013 format as per requirement that is correct.
now before passing to this FM how can we check that date is already conveted or not ?
Regards
Meeta
2013 Feb 13 7:40 AM
(Considering this question as a conversion-exit question and not a forbidden date question...)
Look on documentation on external and internal format of date. As your select-options field is defined as a date, it appears at screen with user/country format, but internally can be considered as YYYYMMDD format always.
Look at FM like DATE_CHECK_PLAUSIBILITY, but first use search tool on date format at scn, there are already many, many threads, and everything should have been solved since Y2K.
Regards,
Raymond
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |