2010 Feb 11 7:26 PM
Since Sapscript interprets two commas in a row as a tab, this causes a problem for any form which prints out any text containing two commas. Does anyone know a way to get Sapscript to ignore these commas?
Since Sapscript interprets two commas in a row as a tab, this causes a problem for any form which prints out any text containing two commas. Does anyone know a way to get Sapscript to ignore these commas?
2010 Feb 11 7:34 PM
Hi,
One way could be, create a constant in the print program and use it in script.
eg: CONSTANTS: c_comma(2) TYPE c VALUE ',,'.
Inscript print this variable.
&c_comma&
Other way is use the character format.
eg: <AA>,,</AA>
First method is simple i feel.
Thanks,
Vinod.
2010 Feb 12 2:28 AM
Hello friend,
Welcome to SDN.
The interpretation is different.
Situation 1
Situation 2.
/: Do,,not,,interpret,,two,,commas,,in,,text,,as,,tab
"the output will look like below text with tabs in between each word.
Do not interpret two commas in text as tab
I think that you will understand.
Thanks
Venkat.O
"Define two variables in script editor like below and display.
/: DEFINE text1 = 'Do not interpret two,,commas in text as tab'
/: DEFINE text2 = ',,Text will be displayed like this'
/: &text1&,,&text2&
"The output will be like below
Do not interpret two,,commas in text as tab ,,Text will be displayed like this
"It does not care what is there inside program symbols &text1& and &text2&
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |