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 FM CONVERT_DATE_INPUT

Former Member
0 Likes
602

Hi,

I Need the repalcement for the FM convert_date_input in ECC 6.0 version.

kishore

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
526

Hai Kishore

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

3 REPLIES 3
Read only

Former Member
0 Likes
526

same thread...

Read only

0 Likes
526

Hi,

Thread is same but, i tried those FM 's output...the output is getting differently than i what need.

kishore

Read only

Former Member
0 Likes
527

Hai Kishore

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