on 07-27-2015 1:23 PM
Hi,
Any idea on how to handle special chars
Single Quote '
Double Quote "
I was able to handle < & > signs but could not handle quotes.
Below mentioned mapping is used for description field.
ifthenelse(match_pattern(ABAP_Query.NAME1,'<') > 0,replace_substr(ABAP_Query.NAME1,'<','_') ,ifthenelse(match_pattern(ABAP_Query.NAME1,'>') > 0,replace_substr(ABAP_Query.NAME1,'>','_'),ABAP_Query.NAME1))
We are replacing special chars by underscore symbol.
Thanks,
Purav
Hi Purav,
Below is an example of the transform I have been using in mapping the fields within the target query:
replace_substr(
replace_substr(
replace_substr(
replace_substr(
replace_substr(
replace_substr( <provide field name>, CHR(39), ' '),
CHR(13), ' ' ),
CHR(10), ' ' ),
'"', ' '),
'>', ' '),
'<', ' ')
Regards
Alecsandra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Purav,
In the release note 2037139 there are mentioned some non printable ascii characters. Within DS syntax they are represented as follows:
- carriage return (CHR13)
- empty line (CHR10)
- simple quotes (CHR39)
Regards,
Alecsandra
User | Count |
---|---|
7 | |
4 | |
3 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.