2005 Aug 09 3:32 AM
Hi!
Would it be possible to convert print spool to html file in ABAP?
Need your help.
Thanks,
Cherrie
Hi!
Would it be possible to convert print spool to html file in ABAP?
Need your help.
Thanks,
Cherrie
2005 Aug 09 8:44 AM
2005 Aug 09 1:08 PM
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
2005 Sep 14 8:13 PM
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
2006 Sep 28 8:18 AM
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.
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |