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

Convert HTML to internal table

Former Member
0 Likes
2,658

Dear All,

I have a requirement where I need to convert a HTML file to an internal table.

Does any one have any example code which covert HTML format to an internal table?

Regards,

Abhishek.

1 ACCEPTED SOLUTION
Read only

guillaume-hrc
Active Contributor
0 Likes
1,447

Hi,

Try this FM : DSVAS_HTML_2TABLE2

Best regards,

Guillaume

4 REPLIES 4
Read only

guillaume-hrc
Active Contributor
0 Likes
1,448

Hi,

Try this FM : DSVAS_HTML_2TABLE2

Best regards,

Guillaume

Read only

0 Likes
1,447

DATA: l_temp_str TYPE string.

l_temp_str = html_string.

  • Add everything to HTML table:

CALL FUNCTION 'DSVAS_HTML_2TABLE'

TABLES

html_table = html_table

CHANGING

html_string = l_temp_str.

ENDFUNCTION.

regards

vivek

<b> reward points for all the useful answers </b>

Read only

0 Likes
1,447

Hi all,

Thanks for the reply,

Some of my issues have been addressed.

Now my problem is how to remove the HTML tags from the internal table. So that only the text inside the HTML is displayed in the report and tags is removed e.g <BODY> <HTMl> etc.

Thanks in advance,

Regards,

Abhishek.

Read only

Former Member
0 Likes
1,447