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 issue

Former Member
0 Likes
689

Hi i want to Concatenate ' ' ' to material no. it's giving syntax error. pls help me

loop at it_material.
CONCATENATE '''  it_material-matnr into it_material-matnr.
modify it_material.
endloop.

error is

Literals that take up more than one line not permitted

.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
660

Hi,

loop at it_material.

CONCATENATE '''' it_material-matnr into it_material-matnr.

modify it_material.

endloop.

Thanks,

Arunprasad.P

Hi i want to Concatenate ' ' ' to material no. it's giving syntax error. pls help me

loop at it_material.
CONCATENATE '''  it_material-matnr into it_material-matnr.
modify it_material.
endloop.

error is

Literals that take up more than one line not permitted

.

4 REPLIES 4
Read only

Former Member
0 Likes
660

loop at it_material.

CONCATENATE ' ' ' into it_material-matnr .

modify it_material.

endloop.

Read only

Former Member
0 Likes
660

If you want to concatenate a single quote to your field, then use this syntax:

CONCATENATE '''' <field> into <field> .

Inside a single quote bracket '' you have to use two single quotes to get one single quote added to the field.

Read only

Former Member
0 Likes
661

Hi,

loop at it_material.

CONCATENATE '''' it_material-matnr into it_material-matnr.

modify it_material.

endloop.

Thanks,

Arunprasad.P

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
660

data:wk type string.


concatenate `'` 'ABC' into wk.

write wk.