‎2007 Aug 14 11:56 AM
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
‎2007 Aug 14 12:00 PM
hI Patil
declare u r select option as
select-option: s_date for sy-datum.
reward points to all helpful answers
kiran.M
‎2007 Aug 14 12:02 PM
Hi..
Call the FM CONVERT_DATE_TO_INTERNAL.
<b>Reward if Helpful</b>
‎2007 Aug 14 12:15 PM
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
‎2007 Aug 14 12:25 PM
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