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
632

Hi guys,

final is a string type.

And final should be inserted with value

CALL FUNCTION 'GUI_DOWNLOAD'

This is how I tried to code it as

{

call = 'CALL FUNCTION '.

apos = '''.

gui = 'GUI_DOWNLOAD'.

concatenate call apos gui apos into var.

}

but it was pointing the error at the stmt

-


>apos = '''.

so how can i do it.

*Points will be rewarded if needful.

Regards,

Sreekanth.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
607

Hi Sreekanth,

you must write 4 apostrophes:


apos = ''''.

This should work. Best regards,

Alvaro

Hi guys,

final is a string type.

And final should be inserted with value

CALL FUNCTION 'GUI_DOWNLOAD'

This is how I tried to code it as

{

call = 'CALL FUNCTION '.

apos = '''.

gui = 'GUI_DOWNLOAD'.

concatenate call apos gui apos into var.

}

but it was pointing the error at the stmt

-


>apos = '''.

so how can i do it.

*Points will be rewarded if needful.

Regards,

Sreekanth.

5 REPLIES 5
Read only

Former Member
0 Likes
608

Hi Sreekanth,

you must write 4 apostrophes:


apos = ''''.

This should work. Best regards,

Alvaro

Read only

Former Member
0 Likes
607

give apos as

apos = ''''. should be 4 single quotes ...

Read only

Former Member
0 Likes
607

Use

apos = ''''.

' needs an escape character

Read only

Former Member
0 Likes
607

Hello,

Four Appastraphy will give one '.

Try like this.


DATA: OUT TYPE STRING.
CONCATENATE '''' 'a' '''' INTO OUT.
WRITE OUT.

Cheers,

Vasanth

Read only

Former Member
0 Likes
607

Hi,

Check the following code:

data: cal(20) type c,

apos(4) type c,

gui(50) type c,

stm(100) type c.

cal = 'call function'.

apos = ''''.

gui = 'gui_download'.

concatenate cal apos gui apos into stm.

write:/ stm.

Regards,

Bhaskar