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

Replacement for CONVERT_DATE_INPUT in ECC 6.0

Former Member
0 Likes
1,977

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,113

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

4 REPLIES 4
Read only

Former Member
0 Likes
1,113

Try these FMs..

CONVERT_DATE_TO_INTERN_FORMAT

CONVERT_DATE_TO_INTERNAL

Read only

Former Member
0 Likes
1,113

Hi

check this out

<b>CONVERSION_EXIT_DATEX_INPUT

CONVERSION_EXIT_DATEX_OUTPUT</b>

Read only

Former Member
0 Likes
1,113

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

Read only

Former Member
0 Likes
1,114

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