cancel
Showing results for 
Search instead for 
Did you mean: 

Text in internal table with HTML tags.

Former Member
0 Kudos

Hi ,

I have Text in internal table with HTML tags.

The text has to be shown in output of smartform as formatted text.

That is the smartform should READ the HTML TAGS , convert the text accordingly and show in the output as formatted text.

I dont want to make a webform . This is for NORMAL SPOOL output and NOT for WEB OUTPUT.

IN SHORT

:- the text in the internal table is like this ( please ignore the dot in the HTML TAG )--

<html><.U>this is heading</.U>Line with no break<.br>some content text</.br>

</html>

OUTPUT

<U>this is heading</U>Line with no break<br>some content text</br>

-


1) Can I can get the output and store it as text in a string variable and show in the smartform ?

In this case I want to know how to convert and store in a variable in sap .

OR

2) Can the text element convert the text with HTML TAGS to html formatted output and show it ?

Regards,

Jagat

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

no chance to do this automatic.

there is no such FM in SAP which reacts on HTML tags. You need to program this by yourself.

Read the text, remove the tags and format the text accordingly with paragraph formats and character formats.

Then save your built text and INCLUDE it in your form.

your form consists after all just of this one include statement then.

Former Member
0 Kudos

It seems true to me that it will not work automatically.

Thanks Florian and Prabhu

Regards,

Jagat

Former Member
0 Kudos

Hi,

Use the FM SCP_REPLACE_STRANGE_CHARS and check

See the

Former Member
0 Kudos

Hi Prabhu,

I checked it and looks like that it will remove the tags . It will not understand it and format the text.

I do not want to just remove the text but to format the text according to the Tags.

Will this be possible with this function module or the report ?

Regards

Jagat