Application Development 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: 

Regarding Convert the Text to HTML Viewer

Former Member
0 Kudos

Hi ,

Please can you the suggestion me how to convert the Text format to HTML Viewer format in ABAP.

example also if you have.

Thanks,

Hari.

3 REPLIES 3

Former Member
0 Kudos

parameters: p_rqid type TSP01-RQIDENT.

DATA: MEM_TAB LIKE ABAPLIST OCCURS 10.

DATA: HTML_TAB LIKE w3html OCCURS 10.

SUBMIT RSPOLIST EXPORTING LIST TO MEMORY AND RETURN

WITH RQIDENT = p_RQID

WITH FIRST = '1'

WITH LAST = '0'.

CALL FUNCTION 'LIST_FROM_MEMORY'

TABLES

LISTOBJECT = MEM_TAB

EXCEPTIONS

NOT_FOUND = 1

OTHERS = 2.

CALL FUNCTION 'WWW_HTML_FROM_LISTOBJECT'

TABLES

HTML = HTML_TAB

LISTOBJECT = mem_tab.

Basically, run RSPOLIST to get the list to memory, extract the list, and then call the function to generate HTML.

refer this link.

former_member194669
Active Contributor
0 Kudos

Hi,

Use


  call function 'WWW_HTML_FROM_LISTOBJECT'
   exporting
     template_name       = 'WEBREPORTING_REPORT'
    tables
      html                = html_tab
      listobject          = itab.

Former Member
0 Kudos

Hi,

Try with this:

CALL FUNCTION 'GUI_RUN'

EXPORTING

command ='IEXPLORE.EXE'

PARAMETER ='C:\Documents and Settings\bhaskarch\Desktop\abc.doc'.

<b>Note:</b>In parameter you give the text file path.

Regards,

Bhaskar