2008 Jun 03 9:51 AM
Hi,
I want to have character apostrophe in a character data type variable. How can we do this??? Is there any escape sequence for character apostrophe???
Regards,
Niranjan
2008 Jun 03 10:16 AM
Hi,
DATA:
apostr TYPE c VALUE ''''.
P.S.: Escape is apostrophe itself!
regards
Walter Habich
Edited by: Walter Habich on Jun 3, 2008 11:17 AM
Hi,
I want to have character apostrophe in a character data type variable. How can we do this??? Is there any escape sequence for character apostrophe???
Regards,
Niranjan
2008 Jun 03 10:16 AM
Hi,
DATA:
apostr TYPE c VALUE ''''.
P.S.: Escape is apostrophe itself!
regards
Walter Habich
Edited by: Walter Habich on Jun 3, 2008 11:17 AM
2008 Jun 10 10:54 AM
2011 Dec 09 4:31 AM
Hey,
Even i am facing the problem of escaping a apostrophe . Can you please provide a solution?
Thanks & Regards,
Lata
2013 Feb 12 3:51 AM
2013 Feb 12 3:51 AM
2013 Feb 12 3:50 AM
Hi.
To escape an apostrophe, just put an additional apostrophe.
Example:
Output
THIS LINE HAS AN APOSTROPHE ' IN IT!
2020 May 26 10:55 AM
Hi ,
Use | | instead. like below.
DATA(lv_new_searchstring) = |*002*|.
DATA(l_stmt) = |SELECT * | &&
|FROM factory | &&
|WHERE upper(factory_name) LIKE '{ lv_new_searchstring }' | &&
|OR upper(factory_id) LIKE '{ lv_new_searchstring }'|.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |