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

CONVERT_DATE_TO_INTERNAL

Former Member
0 Likes
529

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

1 REPLY 1
Read only

RaymondGiuseppi
Active Contributor
0 Likes
388

(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