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

concatenate

Former Member
0 Likes
876

i have to concatenate 2 fields from table DRAW.

my statement is

DATA: ztdline TYPE c.

CONCATENATE t_draw-doknr t_draw-dokar INTO ztdline.

but i dont see the correct results in ztdline.

Any suggestions,

Madhu.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
843

Either give ztdline a length or make it a string.

DATA: ztdline(28) TYPE C.

Or.

DATA: ztdline TYPE STRING.

6 REPLIES 6
Read only

Former Member
0 Likes
843

the syntax of concatenate is correct. if you can post your results where its wrong, may be we can help u more.

and is ztdline only one character in length ?

award points if it helps.

Read only

Former Member
0 Likes
844

Either give ztdline a length or make it a string.

DATA: ztdline(28) TYPE C.

Or.

DATA: ztdline TYPE STRING.

Read only

Former Member
0 Likes
843

Hi Madhu,

Please try this.


DATA: ztdline(28) TYPE c.

CONCATENATE t_draw-doknr t_draw-dokar INTO ztdline.

Regards,

Ferry Lianto

Read only

Former Member
0 Likes
843

Hi Madhu,

  • DATA: ztdline TYPE c.

    • HERE ztdline is of 1 character. So give some length to ztdline.

<b>DATA: ztdline(35) TYPE c.</b>
CONCATENATE t_draw-doknr t_draw-dokar INTO ztdline.

I guess this works

Regards

Naresh

Read only

0 Likes
843

hey pls close this thread if you got the answer.

Read only

0 Likes
843

tHANKS ALL.

mADHU