‎2006 Sep 27 5:58 PM
Hello all,
It is OK to use double quotes in a DEFINE statement so an apostrophe will print?
<u>Example:</u>
:/Define &TITLE& = "That's all there is"
which will then print <i>That's all there is</i>
It worked in a test I created, but is this the best approach? Is there a better solution?
Thank you
Bill Lomeli
‎2006 Sep 27 9:55 PM
Hi Bill,
To put a single quote within a text string, you use two single quotes in a row.
E.g.
:/Define &TITLE& = 'That''s all there is'
This will be interpretted as:
That's all there is
Hope this helps,
Kylie
‎2006 Sep 27 6:09 PM
Hi,
In the Script, Normally we define the varialbes using DEFINE and assign the text to it with Single codes ...
Syntax: /: DEFINE &symbol_name& = 'value'
/: DEFINE &subject& = 'Your letter of 7/3/95'
The value assigned can have a maximal length of 60 characters. It may itself contain other symbols. A symbol contained within the value assigned to another symbol is not replaced with its own value at the point at which the DEFINE command is executed. Rather, this replacement is made when the symbol defined in the DEFINE command is called in the text.
/: DEFINE &symbol1& = 'mail'
/: DEFINE &symbol2& = 'SAP&symbol1&'
Regards
Sudheer
‎2006 Sep 27 6:12 PM
Hi,
use single quotes in sap script as standard practice
DEFINE &NEW_PG& = 'X'
Regards
Amole
‎2006 Sep 27 6:14 PM
HI,
Better to create a standard text in SO10 like <b>That's all there</b> and use the text id in ur sapscript.
define variable with double quotes is not good practice in scripts.
Regards
‎2006 Sep 27 9:55 PM
Hi Bill,
To put a single quote within a text string, you use two single quotes in a row.
E.g.
:/Define &TITLE& = 'That''s all there is'
This will be interpretted as:
That's all there is
Hope this helps,
Kylie
‎2006 Oct 06 9:06 PM