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

Error To passing a Value

Former Member
0 Likes
626

Hi Can any one solve my Issue iam passing a value like this but it is showing a error

SOURCE-LINE = 'BIKE EQ ' BAJAJ ' AND BIKE SPECIFIED.'.

Thanks

Surendra Reddy

6 REPLIES 6
Read only

Former Member
0 Likes
596

Hi,

I'm guessing the aim is to concatenate the literals 'BIKE EQ ', ' AND BIKE SPECIFIED.' and the varialbe BAJAJ. If so, take a look at the ABAP statement CONCATENATE.

But as you haven't explained too much it is largely a guess.

Regards,

Nick

Read only

Former Member
0 Likes
596

Try

SOURCE-LINE = 'BIKE EQ '' BAJAJ'' AND BIKE SPECIFIED.'.

Regards,

George

Read only

Former Member
0 Likes
596

Hi,

create 3 text elements for each one 'BIKE EQ ' BAJAJ ' AND BIKE SPECIFIED.'.

and use CONCATENATE t1 t2 t3 INTO source-line.

Thanks

raja

Read only

Former Member
0 Likes
596

Hello

Try this:

SOURCE-LINE = 'BIKE EQ '' BAJAJ '' AND BIKE SPECIFIED.'.

Read only

Former Member
0 Likes
596

if you want to concatenate that three string then try this--

http://help.sap.com/saphelp_nw70/helpdata/en/9f/db998835c111d1829f0000e829fbfe/content.htm

Edited by: mayank jain on Jul 7, 2009 7:38 PM

Read only

guilherme_frisoni
Contributor
0 Likes
596

I guess you are trying to do some dynamic WHERE condition.

So, in ABAP, the escape character is single quote ( ' ). The same character used to write strings.

So, as mentioned above, your statement should be:

SOURCE-LINE = 'BIKE EQ '' BAJAJ '' AND BIKE SPECIFIED.'.

With two quotes before and after BAJAJ.

The first quote is the escape character, and the second is the desired quote.

Regards,

Frisoni