Application Development 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: 

sap script raw line

phoenixming0912
Product and Topic Expert
Product and Topic Expert
0 Kudos

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

horst_keller
Product and Topic Expert
Product and Topic Expert

Don't use the destroy editor.

Only the awkward WYTISWYS editor is reliable.

raymond_giuseppi
Active Contributor
0 Kudos

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...

0 Kudos

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

0 Kudos

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.

0 Kudos

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.

0 Kudos

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