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

iSSUE in date validations.

Former Member
0 Likes
568

Hi Guys,

I am dooing some date validations,my input date from file should be in always 20090130 ie YEARMONTHDAY , which ever format iam reciving i should always convert to above formart .I search in SCN but my requirement does not suit them.

Regards,

SRI

3 REPLIES 3
Read only

Sm1tje
Active Contributor
0 Likes
547

If the incoming format is NOT fixed (say for example is always DDMMYYYY, or YYYYDDMM or whatever), there is no way of reformatting to internal SAP date format. You will need to know the format of the inbound message (file, IDoc, ....).

Read only

Former Member
0 Likes
547

Hi Mickey,

Thanks for your quick respond .If my input format is fixed to YYYYMMDD , and iam reciving invalid format like DDMMYYYY or seperated by '.' or '/' .How can i validate to my required format YYYYMMDD.

Regards,

SRI

Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
547

use FM : SLS_MISC_CONVERT_TO_DATE