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

print spool to html

Former Member
0 Likes
783

Hi!

Would it be possible to convert print spool to html file in ABAP?

Need your help.

Thanks,

Cherrie

4 REPLIES 4
Read only

Vinod_Chandran
Active Contributor
0 Likes
673

Try LIST_DOWNLOAD_HTML

Read only

Former Member
0 Likes
673

Hi,

I think that it's possible anyway.

Use dialog module source 'DISPLAY_OTF' and modify it. The dialog module(SE35) displays the OTF data of a form in abap list format. When you transfer the sapscript form to abap list, use the following functions.

call function 'SAVE_LIST'

  • EXPORTING

  • LIST_INDEX = SY-LSIND

TABLES

LISTOBJECT = ZABAPLIST

EXCEPTIONS

others = 9.

call function 'WWW_HTML_FROM_LISTOBJECT'

TABLES

HTML = ZW3HTML

LISTOBJECT = ZABAPLIST

EXCEPTIONS

others = 9.

call function 'GUI_DOWNLOAD'

EXPORTING

FILENAME = 'C:\myhtml.html'

TABLES

DATA_TAB = ZW3HTML

EXCEPTIONS

OTHERS = 9.

Regards,

Svetlin

Read only

Former Member
0 Likes
673

Hi!

I'm using function module 'RSPO_RETURN_SPOOLJOB' to retrieve the contents of the spool and then I'm using function module 'SX_OBJECT_CONVERT_ALI_HTM' to decompress the contents and converting them to HTML.

My problem is that when I view the HTML file, there are blank lines added in places where I have a carriage return (i.e. instead of just going to the next line, it skips a line). Other than that, the output looks the same as that in the spool. Any idea why that is the case?

Thanks,

Patricia

Read only

0 Likes
673

Did you resolve this issue? Can you post complete code?

I need to figure out how to convert spool (SAPScript) to HTML, or convert PDF to HTML. If anyone has a working code, could you please post it?

Thanks.