Skip to Content
author's profile photo Former Member
Former Member

Convert ABAP Spoollist back to a Listobject

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Sep 24, 2004 at 01:36 PM

    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?

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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.

  • author's profile photo Former Member
    Former Member
    Posted on Nov 30, 2007 at 05:27 AM

    Hai,

    Please suggest me how to convert the HTML to TEXT format

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.