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 Convertion

Former Member
0 Likes
439

Hi,

I am getting wa_input-invdt as 060719, I want this to be as 07/19/2006. Can you please help me to convert this.

Thanks

Veni.

5 REPLIES 5
Read only

ferry_lianto
Active Contributor
0 Likes
414

Hi,

Please try this FM CONVERT_DATE_TO_INTERN_FORMAT.

Regards,

Ferry Lianto

Read only

Former Member
0 Likes
414

Hi!

CONCATENATE wa_input-invdt2(2) '/' wa_input-invdt4(2) '/20' wa_input-invdt(2) INTO lv_datum.

Regards

Tamá

Read only

amit_khare
Active Contributor
0 Likes
414

check this FM -CONVERT_DATE_FORMAT

it will do the same.

Regards,

Amit

Read only

RaymondGiuseppi
Active Contributor
0 Likes
414

Use

WRITE wa_input-invdt TO <your field>.

Before, use

SET COUNTRY f.

to choose the format and separator of the country.

Regards.

Read only

Former Member
0 Likes
414

Hi Veni,

DATA V_DATE(10).

DATA V_YEAR(4).

CONCATENATE '20' WA_INPUT-INVDT+0(2) INTO V_YEAR.

CONCATENATE WA_INPUT-INVDT2(2) WA_INPUT-INVDT4(2) V_YEAR INTO V_DATE SEPARATED BY '/'.

WRITE V_DATE.

Thanks,

Vinay