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

Error in converting spool to HTML

Former Member
0 Likes
322

Hi Gurus,

I am converting Spool to HTML format and then i am sending the same as attachment in email.

My problem is when i conver the Spool to Html the lines are coming ups and downs.

Where the lines has to appear in HTM as box, i am not getting those boxes.

For eg: box should appear as line has(_____________________)

but for me it is appearing it has dotted lines has(----


) and end vertical lines | is coming in next line.

How can get box in terms of lines.

I am using following code.

  • Submit report to convert the spool to HTML format

SUBMIT rspolst2 EXPORTING LIST TO MEMORY AND RETURN

WITH rqident = p_spoolno.

CALL FUNCTION 'LIST_FROM_MEMORY'

TABLES

listobject = gt_listobj

EXCEPTIONS

not_found = 1

OTHERS = 2.

IF sy-subrc <> 0.

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

  • Convert the spool to HTML format

CALL FUNCTION 'WWW_HTML_FROM_LISTOBJECT'

EXPORTING

template_name = text-t01

TABLES

html = p_html_tab

listobject = gt_listobj.

1 REPLY 1
Read only

Former Member
0 Likes
289

answered myself