Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

sap script raw line

EricYu0912
Product and Topic Expert
Product and Topic Expert
0 Kudos
687

Hi all,

I have a question about SAP script raw line.

In a nutshell, text like '<p>' was formatted to ''<)><<)>p>".

I got ''<)><<)>p>" in my code and can I recover it to '<p>'.

How can I do that? Thank you

6 REPLIES 6
Read only

retired_member
Product and Topic Expert
Product and Topic Expert
393

Don't use the destroy editor.

Only the awkward WYTISWYS editor is reliable.

Read only

RaymondGiuseppi
Active Contributor
0 Kudos
393

To convert an ITF text to a 'flat text' version, you can use FM CONVERT_ITF_TO_ASCII. But don't save the result back to database as it would clear every formatting...

Read only

EricYu0912
Product and Topic Expert
Product and Topic Expert
0 Kudos
393

Do you mean db doesn't accept "<p>" in my case?

Read only

EricYu0912
Product and Topic Expert
Product and Topic Expert
0 Kudos
393

I am also curiosity about how <p> was formatted to <)><<)>p> by using FM CONVERT_ASCII_TO_ITF.

I have tried format '(' as document said, but it didin't work.

Read only

0 Kudos
393

The text like '<)><<)>p>' is generated in SapScript editor when user input some reserved character, characters used to manage format or variables (Here the "<" character which is the begining of a SapScript command/format).

If FM doesn't work yu have to convert the "<)>one character<)>" string back to the single character using search/replace statements/tools. But then the text won't be compliant any longer with SapScript syntax.

Read only

EricYu0912
Product and Topic Expert
Product and Topic Expert
0 Kudos
393

Thank you, I am going to have another try on the FM mentioned.