‎2006 May 31 2:27 PM
Hi,
I'm working in ECC 6.0. The Function Module CONVERT_DATE_INPUT is obsolete in ECC 6.0. Please suggest me the correct function module.
Thanks,
Ramya Reddy.
‎2006 Jun 02 11:05 AM
Hai Ramya Reddy
use 'CONVERT_DATE_TO_INTERNAL' and check the OSS Note.375393
go through the following Code
Data : V_output like sy-datum.
parameters : P_input(8) default '05052006'.
CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'
EXPORTING
DATE_EXTERNAL = P_INPUT
IMPORTING
DATE_INTERNAL = V_OUTPUT
EXCEPTIONS
DATE_EXTERNAL_IS_INVALID = 1
OTHERS = 2.
write 😕 P_INPUT.
write 😕 V_OUTPUT.
Thanks & regards
Sreenivasulu P
‎2006 May 31 2:35 PM
Try these FMs..
CONVERT_DATE_TO_INTERN_FORMAT
CONVERT_DATE_TO_INTERNAL
‎2006 May 31 2:36 PM
Hi
check this out
<b>CONVERSION_EXIT_DATEX_INPUT
CONVERSION_EXIT_DATEX_OUTPUT</b>
‎2006 May 31 2:58 PM
hii
use this
<b>CONVERT_DATE_INPUT
CONVERT_DATE_TO_INTERNAL
CONVERT_DATE_TO_INTERN_FORMAT</b>
To get the Format of the Date: <b>SLS_MISC_GET_USER_DATE_FORMAT</b>
Otherwise use this simple logic
<b>data: date_1 (8).
write date to date_1 yy/mm/dd.
WRITE LIKP-LFDAT MM/DD/YY.</b>
or using concatenation .
data : date_time(20) value '060102125033'.
data : date(8) , time(8) , count type i.
date = date_time+(6).
time = date_time+6(6).
concatenate date(2) '/' date2(2) '/' date+4(2) into date.
concatenate time(2) ':' time2(2) ':' time+4(2) into time.
write : time , date .
Reward points if helpful
Regards
Naresh
‎2006 Jun 02 11:05 AM
Hai Ramya Reddy
use 'CONVERT_DATE_TO_INTERNAL' and check the OSS Note.375393
go through the following Code
Data : V_output like sy-datum.
parameters : P_input(8) default '05052006'.
CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'
EXPORTING
DATE_EXTERNAL = P_INPUT
IMPORTING
DATE_INTERNAL = V_OUTPUT
EXCEPTIONS
DATE_EXTERNAL_IS_INVALID = 1
OTHERS = 2.
write 😕 P_INPUT.
write 😕 V_OUTPUT.
Thanks & regards
Sreenivasulu P