cancel
Showing results for 
Search instead for 
Did you mean: 

Type of a filed of a table to store HTML code

Former Member
0 Kudos

Hi

Into my BSP application I use a html javascript wysiswig editor... I would like to store the html code delivered by this editor into a ZTABLE ... I have to create a Ztable, but what is the best type to content this html code ?

Thanks for your help

Jerome Fortias

Accepted Solutions (1)

Accepted Solutions (1)

krishnendu_laha
Active Contributor
0 Kudos

hello,

although the requirement is bit strange...

but it's better to use XSTRING to have more space....

Thanks

Former Member
0 Kudos

...

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello,

you can do this like this:

1) With HTMLB


          <htmlb:tableView id="ITAB" 
                                      table="it_itab">
           </htmlb:tableView>

OR:

2)


        <table>
        <% loop at it_itab into wa_wa. %>
        <tr><td><%= wa_wa-column %></td></tr>
        <% endloop. %>

Hope you´re clear now

Former Member
0 Kudos

Oups ! I had not explained correctly... I know what you wrote ...

Into my BSP page, the user through a wysiwig editor generates a HTML code which is sent to my BSP application.

It means I have a navigation->get_parameters which contents something like ^'<p>Hello World</p><hr />etc...."

And I would like to store this string into a a field of a ztable.... HTML code contents specifics characters as &amp, < or > etc....

What I want ? Just to know what is the best DATATYPE to use when I create my ztable which has to store my html code : e.g : STRING, or XSTRING or an another type ....

Best regards

Jerome

athavanraja
Active Contributor
0 Kudos

In a similar case i have used string (data element HTTPBODY).

Former Member
0 Kudos

XSTRING IS OK

thx both

Edited by: Jerome Fortias on Apr 7, 2010 11:25 AM