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
465

Hi All,

I have a requirement to change the date format.

ls_selopt-low = 2007.1.1 This input date should be converted to 20070101. I need to understand is there any FM to do this.

Thanks a lot in advance.

Rashit

4 REPLIES 4
Read only

Former Member
0 Likes
443

hI Patil

declare u r select option as

select-option: s_date for sy-datum.

reward points to all helpful answers

kiran.M

Read only

varma_narayana
Active Contributor
0 Likes
443

Hi..

Call the FM CONVERT_DATE_TO_INTERNAL.

<b>Reward if Helpful</b>

Read only

0 Likes
443

Hi Narayan & Kiran,

Thank you both for the quick answer.

The input date is coming from web so i cannot declare the selct option the way you suggested.

I have used the FM CONVERT_DATE_TO_INTERNAL does not give me any result if the input is like the one i gave in first message 2007.1.1.

Please suggest

Rashit

Read only

Former Member
0 Likes
443

Hi,

As per ur requirement this function module it wont work,..... i think .... u have split ur date like year , month , date put into one variable,,..

that variable CONCATENATE with dot (.) then u put into one more varaible u display final value then u willl get the ur final result.........

if it is use fulll answer please reward me a points......

praveen