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

adding Special Character

Former Member
0 Likes
1,021

Hi...

i have generated one program in web (asp) in which SMS string will be dynamic generated in that to show message in next line we are putting char(10) so data will come in new line.

example :

string1 = chintan & char(10) & contractor

then output will be

chintan

contractor

in sms...same thing i want to do in abap program.. then what is solution for same. means two string i want to concatenate in one string with special character which later will turn in enter key in sms

regards,

Chintan.

5 REPLIES 5
Read only

Former Member
0 Likes
845

Hi Chintan,

Try to use Concatenate Keyword.

Hope this will help you.

Thanks & Regards,

Gaurav

Read only

Former Member
0 Likes
845

Hi,

use the statement

data: string1 type string.
concatenate 'chintan' 'contractor' into string1.

Regards,

Siddarth

Read only

Former Member
0 Likes
845

hi..

i know concatenate but i want some special character in place of char(10) in abap.

but it solved.

Read only

0 Likes
845

Hi,

it is not possible directly in ABAP... but you can use internal table to do the same thing...

each record consist of a new line....

Regards,

Siddarth

Read only

0 Likes
845

Hi,

For that you can pass the special chracter in a variable & use like this

Data: var(10) type c,

string2(20) type c.

concatenate 'chintan' var 'contractor' into string2.

Hope this will help you.

Thanks & Regards,

Gaurav.