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

date conversion

Former Member
0 Likes
425

Hi all,

Is there any fm to check the is there any spaces in the date, need to convert mm/dd/yyyy to yyyymmdd and it should validate with date is less than or equal to 31 and month is less than or equal to 12.

please let me know?

3 REPLIES 3
Read only

Former Member
0 Likes
401

Hi,

You can use the function module CONVERT_DATE_TO_INTERNAL to convert it to internal format...

For checking the date DATE_CHECK_PLAUSIBILITY..It will check day and the month..

Thanks,

Naren

Read only

Former Member
0 Likes
401

USE FM 'DATE_CHECK_PLAUSIBILITY'

Thanks,

SKJ

Read only

Former Member
0 Likes
401

Priya,

You can simply use WRITE statement, lots of additions avaiable to on this like

WRITE SY-DATUM YYYYMMDD.

So Plz check help on WRITE statement.

Regards,

Amey