‎2005 Oct 24 1:19 PM
Hi All,
I want to display the contents of internal table in HTML format, i'm using FM www_itab_to_html. but i'm getting html code after this execution rather than displaying the contents in HTML format is there any other FM i have to use after this conversion to display the contents in html format.
Thanks&Regards
Raghavendra
‎2005 Oct 25 7:48 PM
You can use Class CL_GUI_HTML_VIEWER for displaying the ITAB with HTML on SAP screen.
You will have to work with a CONTAINER and the Class (just like ALV with Class).
‎2005 Oct 24 1:23 PM
Hi,
there is sample of code for displaying HTML in container in the transaction : DWDM.
Regards
Frédéric
‎2005 Oct 24 1:31 PM
also check out the package SDYNAMICDOCUMENTS for advanced use of HTML within SAPGUI
Regards
Raja
‎2005 Oct 24 5:29 PM
Hi,
Please Try this out. After converting itab data
to HTML, do the below.
1) First donwload the itab to some file like below.
CALL FUNCTION 'WS_DOWNLOAD'
EXPORTING
FILENAME = 'C:\TABLEVIEW.HTM'
TABLES
DATA_TAB = HTMLVIEW.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
2) Then call the function module
CALL FUNCTION 'WS_EXECUTE'
EXPORTING
COMMANDLINE = 'c:\tableview.htm'
PROGRAM = 'C:\PROGRA1\INTERN1\IEXPLORE.EXE'.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
This opens in a Explorer. Hope this will help you.
Thanks & Regards,
Siri.
‎2005 Oct 25 4:38 AM
‎2005 Oct 25 1:04 PM
Hi Raghavendra,
I forgot to mention, after coming out of the program.
If you want, you can delete the file using below
function module programitically.
CALL FUNCTION 'WS_FILE_DELETE'
EXPORTING
FILE = V_FNAME
IMPORTING
RETURN =
.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
If you feel it is helpful kindly award some points.
Thanks & Regards,
Siri.
‎2005 Oct 25 7:48 PM
You can use Class CL_GUI_HTML_VIEWER for displaying the ITAB with HTML on SAP screen.
You will have to work with a CONTAINER and the Class (just like ALV with Class).
‎2005 Dec 22 4:28 PM
Cyril,
Do you have an example of how to display an ITAB using CL_GUI_HTML_VIEWER? I am guessing it is through method LOAD_DATA, but I am unsure the parameters.
Just as a side note, I am trying to develop a standard header for our ALV reports using the HTML header functionality. So if you have any experience with that, it woudl be much appreciated.
‎2007 Feb 19 9:15 AM
Hi Raghavendra,
i guess you can use the "Call transformatin ID" command to convert internal table data into HTML format .
Regards,
Kali Pramod