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

how to write date.........

Former Member
0 Likes
667

how to write the code for the o/p for the date in a format like 10/10/2006.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
633

Hi Satish,

DATA V_DATE TYPE SY-DATUM.

V_DATE = SY-DATUM.

CONCATENATE V_DATE6(2) V_DATE4(2) V_DATE+0(4) SEPARATED BY '/'.

WRITE V_DATE.

Thanks,

Vinay

5 REPLIES 5
Read only

Former Member
0 Likes
633

write sy-datum DD/MM/YYYY.

Regards

Anurag

Read only

Former Member
0 Likes
634

Hi Satish,

DATA V_DATE TYPE SY-DATUM.

V_DATE = SY-DATUM.

CONCATENATE V_DATE6(2) V_DATE4(2) V_DATE+0(4) SEPARATED BY '/'.

WRITE V_DATE.

Thanks,

Vinay

Read only

Former Member
0 Likes
633

Hi,

<b>write:/ sy-datum using edit mask '__/__/____'.</b>(give the no. of underscores to replace as many digits)

Regards,

Sowjanya.

Read only

Former Member
0 Likes
633

HI

Check out this code.

Data: v_date type sy-datum.

v_date = sy-datum.

write:/(10) v_date using edit mask '__/__/____'.

use underscores not hyphens.

Regards

Haritha

Read only

Former Member
0 Likes
633

try this

write:/ sy-datum+6(2) no-gap, '/' no-gap,

sy-datum+4(2) no-gap,'/' no-gap,

sy-datum(4) no-gap.