‎2006 Sep 22 9:56 AM
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.
‎2006 Sep 22 10:13 AM
‎2006 Sep 22 10:13 AM
‎2006 Sep 22 10:31 AM
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>
‎2006 Sep 22 12:13 PM
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.
‎2006 Sep 22 10:20 AM
Hi,
See the below link for program which is uploading the XML file in to SAP, this will work in 4.6C
use this XML file for the above program:
See the below link for one more program
http://wiki.ittoolbox.com/index.php/Code:Download_and_upload_OO_ABAP_class_in_XML_format
Regards
Sudheer