on 09-24-2004 12:16 PM
Hi,
I would like to convert an ABAP Spool Job (compare RSPO_RETURN_ABAP_SPOOLJOB) back to a Listobject (Structure ABAPLIST, see function Module LIST_FROM_MEMORY).
Has anyone an idea or know an appropriate function module ?
thanks 4 your help.
Johann
Hai,
Please suggest me how to convert the HTML to TEXT format
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Johann,
I am not that clear on your question. Are you trying to convert back the list object from memory into a Abap list screen? If this is the case, have you check function module WRITE_LIST?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
thanks for your reply.
What I finally would like to do is to convert an existing abap spool list from sap spool into html format and write it to a file. I found the function WWW_HTML_FROM_LISTOBJECT to convert to html on one hand and on the other hand there is RSPO_RETURN_ABAP_SPOOLJOB.
WWW_HTML_FROM_LISTOBJECT needs the spoollist as "listobject" type on its interface.
I would appreciate any help or other idea to convert a spoollist into html but prefer use of SAP internal functions.
Thanks, Johann.
I don't see a function module that convert a text into listobject. How about using WWW_LIST_TO_HTML but you need to write the spool text you get from RSPO_RETURN_ABAP_SPOOLJOB on the list screen. Or the spool text is actually an internal table of text. Why not using function module WWW_ITAB_TO_HTML.
Hi, thanks for your input.
In both cases the list formatting gets lost (colors, bold, etc.) rspo_return_abap_spooljob returns ascii text only and rspo_return_abap_spooljob_rw returns spooljob including formatting characters. Writing a raw format of a spoolist to the list screen would need too much effort.
Any other idea ?
I think something like this should work:
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.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.