‎2009 Jul 07 2:07 PM
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
‎2009 Jul 07 2:10 PM
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
‎2009 Jul 07 2:11 PM
Try
SOURCE-LINE = 'BIKE EQ '' BAJAJ'' AND BIKE SPECIFIED.'.
Regards,
George
‎2009 Jul 07 2:12 PM
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
‎2009 Jul 07 2:12 PM
Hello
Try this:
SOURCE-LINE = 'BIKE EQ '' BAJAJ '' AND BIKE SPECIFIED.'.
‎2009 Jul 07 6:36 PM
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
‎2009 Jul 07 6:47 PM
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