<?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 LIST_FROM_MEMORY error NOT_FOUND?? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/list-from-memory-error-not-found/m-p/1683239#M301036</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;i wonder why the &amp;lt;b&amp;gt;FM 'LIST_FROM_MEMORY' &amp;lt;/b&amp;gt; raise error NOT_FOUND.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
function LIST_FROM_MEMORY.
  import LISTOBJECT from memory id '%_LIST'.
    if SY-SUBRC &amp;lt;&amp;gt; 0.
 -&amp;gt;    raise NOT_FOUND.
    endif.
endfunction.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my code to convert abap report to excel file is as below. It works fine when execute on frontend, but error exist when execute as background job.&lt;/P&gt;&lt;P&gt;pls help...&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
* get all variants entered in the selection screen and store in seltab
  CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'
    EXPORTING
      CURR_REPORT     = 'ZTEST'
    TABLES
      SELECTION_TABLE = seltab.

* submit this report with seltab and export to memory
    SUBMIT ZTEST with SELECTION-TABLE seltab
                        EXPORTING LIST TO MEMORY
                        AND RETURN.

    CALL FUNCTION 'LIST_FROM_MEMORY'
      TABLES
        listobject = abaplist.      " &amp;lt;- Error above exists when execute this FM

* convert abap report to ASCII and later convert to excel file
    CALL FUNCTION 'LIST_TO_ASCI'
      EXPORTING
        LIST_INDEX = -1
      TABLES
        LISTASCI   = record
        LISTOBJECT = abaplist.        
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Nov 2006 06:15:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-21T06:15:50Z</dc:date>
    <item>
      <title>LIST_FROM_MEMORY error NOT_FOUND??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/list-from-memory-error-not-found/m-p/1683239#M301036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;i wonder why the &amp;lt;b&amp;gt;FM 'LIST_FROM_MEMORY' &amp;lt;/b&amp;gt; raise error NOT_FOUND.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
function LIST_FROM_MEMORY.
  import LISTOBJECT from memory id '%_LIST'.
    if SY-SUBRC &amp;lt;&amp;gt; 0.
 -&amp;gt;    raise NOT_FOUND.
    endif.
endfunction.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my code to convert abap report to excel file is as below. It works fine when execute on frontend, but error exist when execute as background job.&lt;/P&gt;&lt;P&gt;pls help...&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
* get all variants entered in the selection screen and store in seltab
  CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'
    EXPORTING
      CURR_REPORT     = 'ZTEST'
    TABLES
      SELECTION_TABLE = seltab.

* submit this report with seltab and export to memory
    SUBMIT ZTEST with SELECTION-TABLE seltab
                        EXPORTING LIST TO MEMORY
                        AND RETURN.

    CALL FUNCTION 'LIST_FROM_MEMORY'
      TABLES
        listobject = abaplist.      " &amp;lt;- Error above exists when execute this FM

* convert abap report to ASCII and later convert to excel file
    CALL FUNCTION 'LIST_TO_ASCI'
      EXPORTING
        LIST_INDEX = -1
      TABLES
        LISTASCI   = record
        LISTOBJECT = abaplist.        
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2006 06:15:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/list-from-memory-error-not-found/m-p/1683239#M301036</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-21T06:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: LIST_FROM_MEMORY error NOT_FOUND??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/list-from-memory-error-not-found/m-p/1683240#M301037</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;&lt;/P&gt;&lt;P&gt;try to submit your report "normal" &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ..with bukrs = p_bukrs ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) how do you defined "abaplist" ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2006 10:51:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/list-from-memory-error-not-found/m-p/1683240#M301037</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2006-11-21T10:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: LIST_FROM_MEMORY error NOT_FOUND??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/list-from-memory-error-not-found/m-p/1683241#M301038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi huai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I tried just now&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. this error will come if &lt;/P&gt;&lt;P&gt;   the program (which was submitted)&lt;/P&gt;&lt;P&gt;   did not print/display anything in the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. so in your program, ZTEST ,&lt;/P&gt;&lt;P&gt;    first, for testing purpose,&lt;/P&gt;&lt;P&gt;   just print a test matter 'HELLO'&lt;/P&gt;&lt;P&gt;   (without any if condition)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Then check this FM. it will work fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2006 10:58:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/list-from-memory-error-not-found/m-p/1683241#M301038</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-21T10:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: LIST_FROM_MEMORY error NOT_FOUND??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/list-from-memory-error-not-found/m-p/1683242#M301039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Huai Ying Tan ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if your submit program didn't give any report then obviously it will give the same error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the problem with your submit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SUBMIT ZTEST with SELECTION-TABLE seltab&lt;/P&gt;&lt;P&gt;                        EXPORTING LIST TO MEMORY&lt;/P&gt;&lt;P&gt;                        AND RETURN.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;check the seltab values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2006 11:05:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/list-from-memory-error-not-found/m-p/1683242#M301039</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-21T11:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: LIST_FROM_MEMORY error NOT_FOUND??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/list-from-memory-error-not-found/m-p/1683243#M301040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go through these links, i hope these ll give you good idea abou the 'LIST_FROM_MEMORY' &lt;/P&gt;&lt;P&gt;&lt;A href="http://www.synactive.com/docu_e/specials/webreport.html" target="test_blank"&gt;http://www.synactive.com/docu_e/specials/webreport.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3090http" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3090http&lt;/A&gt; &lt;B&gt;[original link is broken]&lt;/B&gt; &lt;B&gt;[original link is broken]&lt;/B&gt; &lt;B&gt;[original link is broken]&lt;/B&gt; &lt;B&gt;[original link is broken]&lt;/B&gt;://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/submit.htm&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2006 11:12:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/list-from-memory-error-not-found/m-p/1683243#M301040</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-21T11:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: LIST_FROM_MEMORY error NOT_FOUND??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/list-from-memory-error-not-found/m-p/1683244#M301041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You aren't catching the error. Call the FM like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL FUNCTION 'LIST_FROM_MEMORY'
  TABLES
    listobject = abaplist
  &amp;lt;b&amp;gt;EXCEPTIONS
    not_found  = 1.&amp;lt;/b&amp;gt;

IF sy-subrc &amp;lt;&amp;gt; 0.
*No list to process.
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2006 15:18:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/list-from-memory-error-not-found/m-p/1683244#M301041</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-21T15:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: LIST_FROM_MEMORY error NOT_FOUND??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/list-from-memory-error-not-found/m-p/1683245#M301042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there!&lt;/P&gt;&lt;P&gt;I solved my problem! I am working on ZTEST program, and try to export list to memory using submit ZTEST. And finally I found that i get the NOT FOUND error if i am submitting the same program, if I separate it into 2 program, such as SUBMIT ZTEST_2 EXPORT...., it works well no matter in frontend or as background job. &lt;/P&gt;&lt;P&gt;Thanks a lot for your help.. You guys do let me learn a lot about ABAP!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;huai ying..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2006 01:24:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/list-from-memory-error-not-found/m-p/1683245#M301042</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-22T01:24:04Z</dc:date>
    </item>
  </channel>
</rss>

