<?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 Re: Problem with EXPORT LIST TO MEMORY in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-export-list-to-memory/m-p/1586590#M264449</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is the subrc u r getting ?&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;prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 09 Sep 2006 20:23:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-09T20:23:39Z</dc:date>
    <item>
      <title>Problem with EXPORT LIST TO MEMORY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-export-list-to-memory/m-p/1586588#M264447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   I need to know the way of using EXPORT LIST TO MEMORY in SUBMIT Statement. Coz its not working for me. I am trying to create a BAPI out of a standard FI report(RFBILA00) so that i can get the result back in a Java program. I dont want to take a Z Version out of the program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Server: ECC 5.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I came across this addition and i tried to use it as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT RFBILA00&lt;/P&gt;&lt;P&gt;       WITH SELECTION-TABLE seltab&lt;/P&gt;&lt;P&gt;       WITH BILAVERS = 'BABE'&lt;/P&gt;&lt;P&gt;       WITH BILBJAHR = '2006'&lt;/P&gt;&lt;P&gt;       WITH BILVJAHR = '2005'&lt;/P&gt;&lt;P&gt;       WITH BILASPRA = BILASPRA&lt;/P&gt;&lt;P&gt;       WITH BILABKON = 1&lt;/P&gt;&lt;P&gt;       WITH BILAGKON = 2&lt;/P&gt;&lt;P&gt;       EXPORTING LIST TO MEMORY AND RETURN .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'LIST_FROM_MEMORY'&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    listobject = itab_list&lt;/P&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;    not_found  = 4&lt;/P&gt;&lt;P&gt;    OTHERS     = 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The list gets generated and displayed on the screen(?) which is against the explanation given for this addition. Moreover nothing gets exported and itab_list is empty. What could be wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prompt replies will be awarded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Sep 2006 19:16:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-export-list-to-memory/m-p/1586588#M264447</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-09T19:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with EXPORT LIST TO MEMORY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-export-list-to-memory/m-p/1586589#M264448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;See the example program below, you need to use &amp;lt;b&amp;gt;'LIST_TO_ASCI'&amp;lt;/b&amp;gt; function module after List_from_memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA  BEGIN OF itab_list OCCURS 0.
        INCLUDE STRUCTURE abaplist.
DATA  END OF itab_list.

DATA: BEGIN OF vlist OCCURS 0,
        filler1(01)   TYPE c,
        field1(06)    TYPE c,
        filler(08)    TYPE c,
        field2(10)    TYPE c,
        filler3(01)   TYPE c,
        field3(10)    TYPE c,
        filler4(01)   TYPE c,
        field4(3)     TYPE c,
        filler5(02)   TYPE c,
        field5(15)    TYPE c,
        filler6(02)   TYPE c,
        field6(30)    TYPE c,
        filler7(43)   TYPE c,
        field7(10)    TYPE c,
      END OF vlist.

SUBMIT zreport EXPORTING LIST TO MEMORY.

CALL FUNCTION 'LIST_FROM_MEMORY'
  TABLES
    listobject = itab_list
  EXCEPTIONS
    not_found  = 4
    OTHERS     = 8.

CALL FUNCTION 'LIST_TO_ASCI'
  EXPORTING
    list_index         = -1
  TABLES
    listasci           = vlist
    listobject         = itab_list
  EXCEPTIONS
    empty_list         = 1
    list_index_invalid = 2
    OTHERS             = 3.

IF sy-subrc NE '0'.
  WRITE:/ 'LIST_TO_ASCI error !! ', sy-subrc.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Sep 2006 20:16:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-export-list-to-memory/m-p/1586589#M264448</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-09T20:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with EXPORT LIST TO MEMORY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-export-list-to-memory/m-p/1586590#M264449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is the subrc u r getting ?&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;prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Sep 2006 20:23:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-export-list-to-memory/m-p/1586590#M264449</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-09T20:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with EXPORT LIST TO MEMORY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-export-list-to-memory/m-p/1586591#M264450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Tamilarasan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On our ECC 5.0 the default selection-screen setting for list output is ALV grid control. Perhaps this could be the problem.&lt;/P&gt;&lt;P&gt;Try to add the following parameters to your SUBMIT statement:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SUBMIT RFBILA00
...
WITH BILALIST = 'X'  " with classical list
WITH BILAGRID = ' '  " no ALV grid
WITH BILATREE = ' '  " no ALV tree
...&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;   Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Sep 2006 20:25:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-export-list-to-memory/m-p/1586591#M264450</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2006-09-09T20:25:44Z</dc:date>
    </item>
  </channel>
</rss>

