<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Alternative for function SAVE_LIST in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-for-function-save-list/m-p/8541439#M1657371</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used function SAVE_LIST to get the current list object with all WRITE output of my program. Then I use FUNCTION 'WWW_HTML_FROM_LISTOBJECT' and send the content as mail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now we observed that in background processing only the last page is sent. OK, the documentation of SAVE_LIST states clearly that it is not suitable for background processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any Alternative? I am looking for something that always works - regardless of background or online processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for any qualified help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Feb 2012 10:36:03 GMT</pubDate>
    <dc:creator>Clemenss</dc:creator>
    <dc:date>2012-02-22T10:36:03Z</dc:date>
    <item>
      <title>Alternative for function SAVE_LIST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-for-function-save-list/m-p/8541439#M1657371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used function SAVE_LIST to get the current list object with all WRITE output of my program. Then I use FUNCTION 'WWW_HTML_FROM_LISTOBJECT' and send the content as mail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now we observed that in background processing only the last page is sent. OK, the documentation of SAVE_LIST states clearly that it is not suitable for background processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any Alternative? I am looking for something that always works - regardless of background or online processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for any qualified help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 10:36:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-for-function-save-list/m-p/8541439#M1657371</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2012-02-22T10:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative for function SAVE_LIST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-for-function-save-list/m-p/8541440#M1657372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use FM &lt;STRONG&gt;LIST_FROM_MEMORY&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 10:54:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-for-function-save-list/m-p/8541440#M1657372</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2012-02-22T10:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative for function SAVE_LIST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-for-function-save-list/m-p/8541441#M1657373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gautham Vangaveti,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you give a few code lines?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried without success (SY-SUBRC = 1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 11:04:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-for-function-save-list/m-p/8541441#M1657373</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2012-02-22T11:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative for function SAVE_LIST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-for-function-save-list/m-p/8541442#M1657374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Clemens,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to use the FM 'LIST_FROM_MEMORY' in conjunction with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i. SUBMIT ... EXPORTING LIST TO MEMORY statement&lt;/P&gt;&lt;P&gt;ii. Function module 'LIST_TO_MEMORY' - But this FM uses SAVE_LIST, which might cause a problem!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using this FM individually will raise the exception &lt;EM&gt;NOT_FOUND&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do you mean by "background" processing - schedule the program as a job in SM36 or SUBMIT it as a BG job?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 11:14:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-for-function-save-list/m-p/8541442#M1657374</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2012-02-22T11:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative for function SAVE_LIST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-for-function-save-list/m-p/8541443#M1657375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As Suhas mentioned this can be used along with submit statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
      SUBMIT  MBMISSFI
      WITH MATERIAL IN MATERIAL
      WITH R_PLANT IN r_plant
      WITH MK_DOC IN mk_doc
      WITH YEAR IN YEAR
      WITH f_reuse = f_reuse
      WITH p_key = p_key
      exporting LIST TO MEMORY
                AND RETURN.
      CALL FUNCTION 'LIST_FROM_MEMORY'
        TABLES
          listobject = list_tab
        EXCEPTIONS
          not_found  = 1
          OTHERS     = 2.

      IF sy-subrc = 0.
        CALL FUNCTION 'WRITE_LIST'
          TABLES
            listobject = list_tab.
        CLEAR : LIST_TAB.
        REFRESH : LIST_TAB.
      ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 11:21:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-for-function-save-list/m-p/8541443#M1657375</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2012-02-22T11:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative for function SAVE_LIST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-for-function-save-list/m-p/8541444#M1657376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;really disappointing. If I want to send the list output of a report from within the report, I can not submit the report that already created the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have an answer to my question, then please give it. If not, please remain silent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All given answers are available using easy forum find or Google. Please do not to assume that I am not able to do this. No answer matches the question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 14:49:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-for-function-save-list/m-p/8541444#M1657376</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2012-02-22T14:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative for function SAVE_LIST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-for-function-save-list/m-p/8541445#M1657377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since the FM SAVE_LIST doesn't work in the Background, you don't have many choices.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You generate the Spool of the list and convert the spool data to HTML. You can use NEW-PAGE PRINT ON and PRINT OFF to generate the Spool. Once the Spool is created, you can get the spool number from SY-SPONO. Use the FM RSPO_RETURN_ABAP_SPOOLJOB to get the data in the List. You may need to find a technique to convert the List to type ABAPLIST type which you can supply to WWW_HTML_FROM_LISTOBJECT.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you don't find the way to convert the List to List type, check the FM RSPO_RETURN_ABAP_SPOOLJOB. It uses the SUBMIT RSPOLIST EXPORTING to MEMORY and get back the List using the FM LIST_FROM_MEMORY. Once you get the list, use the FM WWW_HTML_FROM_LISTOBJECT to convert to HTML.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 19:59:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-for-function-save-list/m-p/8541445#M1657377</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2012-02-22T19:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative for function SAVE_LIST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-for-function-save-list/m-p/8541446#M1657378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;-&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2012 05:17:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-for-function-save-list/m-p/8541446#M1657378</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2012-02-23T05:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative for function SAVE_LIST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-for-function-save-list/m-p/8541447#M1657379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Naimesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;It uses the SUBMIT RSPOLIST EXPORTING to MEMORY and get back the List using the FM LIST_FROM_MEMORY.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Just a small problem in this approach. The programmer has refreshed the memory after importing it, see the use of &lt;EM&gt;LIST_FREE_MEMORY&lt;/EM&gt; &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Clemens:&lt;/P&gt;&lt;P&gt;You can create a custom FM based on similar lines by SUBMIT'ting &lt;EM&gt;RSPOLIST&lt;/EM&gt; &amp;amp; getting the exporting structure as ABAPLIST instead of ASCII format. In this way you can use &lt;EM&gt;WWW_HTML_FROM_LISTOBJECT&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: You can use the FM &lt;EM&gt;WWW_ITAB_TO_HTML&lt;/EM&gt;, but this FM is obsolete(ABAP Release 711).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Suhas Saha on Feb 23, 2012 11:28 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2012 05:31:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-for-function-save-list/m-p/8541447#M1657379</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2012-02-23T05:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative for function SAVE_LIST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-for-function-save-list/m-p/8541448#M1657380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Suhas mentioned:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just a small problem in this approach. The programmer has refreshed the memory after importing it, see the use of LIST_FREE_MEMORY &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Correct. That's the reason I mentioned to find a way to convert the List to List Object which can be supplied to WWW_HTML_FROM_LISTOBJECT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to capture the technique in the post [Alternative to SAVE_LIST|http://help-abap.zevolving.com/2012/02/alternative-to-save_list/]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2012 15:15:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-for-function-save-list/m-p/8541448#M1657380</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2012-02-23T15:15:44Z</dc:date>
    </item>
  </channel>
</rss>

