01-30-2008 10:57 AM
Hi
I have to include an inverted comma in text literal.
How to do this.
The text is 'MSD Int' l Services B.V.'
Note the comma after "int" in above text
if i declare like this
constants:c_1048_text TYPE char40 VALUE 'MSD Int' l Services B.V.'.
this is giving error.
01-30-2008 11:06 AM
Hi,
constants:c_1048_text TYPE char40 VALUE `MSD Int' l Services B.V.`.
note write ur text within ` ` not ' ' if u have to use ' in ur text
now it won't give error
Cheers,
Will.
01-30-2008 11:02 AM
HI,
write like this.
constants:c_1048_text TYPE char40 VALUE 'MSD Int'' l Services B.V.'.
immediate single quotation in abap is treated as inverted comma
rgds,
bharat.
01-30-2008 11:04 AM
Hi Ajay,
You can write (so 2 inverted commas):
constants:c_1048_text TYPE char40 VALUE 'MSD Int'' l Services B.V.'.
Regards,
John.
01-30-2008 11:06 AM
Hi,
constants:c_1048_text TYPE char40 VALUE `MSD Int' l Services B.V.`.
note write ur text within ` ` not ' ' if u have to use ' in ur text
now it won't give error
Cheers,
Will.
01-30-2008 11:14 AM
Yes Will it worked.
Thanks a lot to all and specially WILL.
Full marks