Application Development 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: 

FM to validate date

Former Member
0 Kudos
598

Hi all,

I am receiving date (day,month,year) from the file.Now i want to validate this date .

Please let me know if any function module available for this.

Regards,

Shoban

4 REPLIES 4

amit_khare
Active Contributor
0 Kudos
90

You can check this FM - DATE_CHECK_PLAUSIBILITY

But if you are using variable as type SY-DATUM then it will automatically gets validated to your system settings.

Refer this link also -

Regards,

Amit

jayakummar
Active Participant
0 Kudos
90

hai,

do you want to conver the date as like in database format?

please reply me....

for help

regards,

jai.m

Former Member
0 Kudos
90

HI Shoban,

u can check the date with the FM K_POSTING_DATE_CHECK

or else if u didnt get means just search in se37 by typing DATE or CHECK k u can fine lot of FM so check there k

or else individual fields u can check i mean date between 1 to 31 and month in between 1 to 12 like year also

THX

Former Member
0 Kudos
90

hi,

if ur not finding any fm's u can easily validate the date by spltting the same and the validate along with ur requiement by year month or date wise. this is much simpler.

Reward points if helpful,

Regards,

Sumanjeet.