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

Append

Former Member
0 Likes
545

Hi,

How to append below words,

2004 and 12 and 12

i want output should be like this 2004/12/12

Please anyone help me on this

Thanks,

GAl

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
522

You can use

C_slash = '/'.

CONCATENATE var1 var2 var3 INTO var4 SEPERATED BY C_slash.

3 REPLIES 3
Read only

Former Member
0 Likes
523

You can use

C_slash = '/'.

CONCATENATE var1 var2 var3 INTO var4 SEPERATED BY C_slash.

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
522

Like this...



data: lv_value(10) type c.
concatenate '2004' '/' '12' '/' '12'  into lv_value.

Write:/ lv_value.

but I would assume that you want to do this with some date field? if so..



data: lv_value(10) type c.
data: lv_date type sy-datum value '20041212'.

concatenate lv_date(4) '/'  lv_date+4(2)  '/'' lv_date+6(2) into lv_value.

Write:/ lv_value.

Regards.

Rich Heilman

Read only

Former Member
0 Likes
522

thanks