<?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: Submit with EXPORTING LIST TO MEMORY in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-with-exporting-list-to-memory/m-p/2275583#M494816</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Refer the following programs: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;report  z_82235_test1                           .

types: begin of tab1,
         a(1),
         b(1),
       end of tab1.

types: begin of tab2,
         c(1),
         d(1),
       end of tab2.

data: itab1 type table of tab1,
      wa1 like line of itab1,
      itab2 type table of tab2,
      wa2 like line of itab2.

wa1-a = '1'.
wa1-b = '2'.
append wa1 to itab1.
clear wa1.

wa1-a = '3'.
wa1-b = '4'.
append wa1 to itab1.
clear wa1.


export itab1 to memory id '001'.
export itab2 to memory id '002'.

submit z_82235_test2 and return exporting list to memory .


import itab1 from memory id '003'.
import itab2 from memory id '004'.

write:/ 'ITAB1'.
loop at itab1 into wa1.
write : / wa1-a, wa1-b.
clear: wa1.
endloop.

write:/ 'ITAB2'.
loop at itab2 into wa2.
write : / wa2-c, wa2-d.
clear: wa2.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;report  z_82235_test2                           .

types: begin of tab1,
         a(1),
         b(1),
       end of tab1.

types: begin of tab2,
         c(1),
         d(1),
       end of tab2.

data: itab1 type table of tab1,
      wa1 like line of itab1,
      itab2 type table of tab2,
      wa2 like line of itab2.

import itab1 from memory id '001'.
import itab2 from memory id '002'.

itab2[] = itab1[].

wa1-a = 'a'.
wa1-b = 'b'.
append wa1 to itab1.
clear wa1.




export itab1 to memory id '003'.
export itab2 to memory id '004'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 26 May 2007 07:06:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-26T07:06:06Z</dc:date>
    <item>
      <title>Submit with EXPORTING LIST TO MEMORY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-with-exporting-list-to-memory/m-p/2275581#M494814</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;I am trying to run below statement in my code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT RKPEP003&lt;/P&gt;&lt;P&gt;WITH CN_PROJN IN s_PSPID&lt;/P&gt;&lt;P&gt;WITH R_BUDAT IN S_BUDAt&lt;/P&gt;&lt;P&gt;with P_DISVAR EQ P_DISVAR&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;CALL FUNCTION 'LIST_FROM_MEMORY'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;LISTOBJECT = LISTOBJECT&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;NOT_FOUND = 1&lt;/P&gt;&lt;P&gt;OTHERS = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i am executing this statement, i am getting a report output of RKPEP003 and LISTOBJECT internal table is empty. Any one have idea why it is happening.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 May 2007 06:38:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-with-exporting-list-to-memory/m-p/2275581#M494814</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-26T06:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: Submit with EXPORTING LIST TO MEMORY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-with-exporting-list-to-memory/m-p/2275582#M494815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi you can check this code... you should be definitely getting some values after u execute the standard program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to implement the code below... please award points if found helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;submit rhrhaz00 exporting list to memory&lt;/P&gt;&lt;P&gt;                  and return&lt;/P&gt;&lt;P&gt;                  with pchplvar = pchplvar&lt;/P&gt;&lt;P&gt;                  with pchotype = pchotype&lt;/P&gt;&lt;P&gt;                  with pchobjid in pchobjid&lt;/P&gt;&lt;P&gt;                  with pchsobid in pchsobid&lt;/P&gt;&lt;P&gt;                  with pchseark = pchseark&lt;/P&gt;&lt;P&gt;                  with pchostat = pchostat&lt;/P&gt;&lt;P&gt;                  with pchistat = pchistat&lt;/P&gt;&lt;P&gt;                  with pchztr_d = pchztr_d&lt;/P&gt;&lt;P&gt;                  with pchztr_a = pchztr_a&lt;/P&gt;&lt;P&gt;                  with pchztr_z = pchztr_z&lt;/P&gt;&lt;P&gt;                  with pchztr_m = pchztr_m&lt;/P&gt;&lt;P&gt;                  with pchztr_p = pchztr_p&lt;/P&gt;&lt;P&gt;                  with pchztr_y = pchztr_y&lt;/P&gt;&lt;P&gt;                  with pchztr_f = pchztr_f&lt;/P&gt;&lt;P&gt;                  with pchobeg  = pchobeg&lt;/P&gt;&lt;P&gt;                  with pchoend  = pchoend&lt;/P&gt;&lt;P&gt;                  with info     = info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data: list like abaplist occurs 0 with header line.&lt;/P&gt;&lt;P&gt;  data: txtlines(1024) type c occurs 0 with header line.&lt;/P&gt;&lt;P&gt;  data: reportlines(1024) type c occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  clear list.&lt;/P&gt;&lt;P&gt;  refresh list.&lt;/P&gt;&lt;P&gt;  clear reportlines.&lt;/P&gt;&lt;P&gt;  refresh reportlines.&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 = list&lt;/P&gt;&lt;P&gt;    exceptions&lt;/P&gt;&lt;P&gt;      not_found  = 1&lt;/P&gt;&lt;P&gt;      others     = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    message id sy-msgid type sy-msgty number sy-msgno&lt;/P&gt;&lt;P&gt;            with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call function 'LIST_TO_ASCI'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  LIST_INDEX               = -1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  WITH_LINE_BREAK          = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  LIST_STRING_ASCII        =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  LIST_DYN_ASCII           =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   tables&lt;/P&gt;&lt;P&gt;     listasci                 = txtlines&lt;/P&gt;&lt;P&gt;     listobject               = list&lt;/P&gt;&lt;P&gt;   exceptions&lt;/P&gt;&lt;P&gt;     empty_list               = 1&lt;/P&gt;&lt;P&gt;     list_index_invalid       = 2&lt;/P&gt;&lt;P&gt;     others                   = 3&lt;/P&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    message id sy-msgid type sy-msgty number sy-msgno&lt;/P&gt;&lt;P&gt;            with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;    reportlines[] = txtlines[].&lt;/P&gt;&lt;P&gt;    call function 'LIST_FREE_MEMORY'.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 May 2007 06:41:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-with-exporting-list-to-memory/m-p/2275582#M494815</guid>
      <dc:creator>rahulkavuri</dc:creator>
      <dc:date>2007-05-26T06:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: Submit with EXPORTING LIST TO MEMORY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-with-exporting-list-to-memory/m-p/2275583#M494816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Refer the following programs: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;report  z_82235_test1                           .

types: begin of tab1,
         a(1),
         b(1),
       end of tab1.

types: begin of tab2,
         c(1),
         d(1),
       end of tab2.

data: itab1 type table of tab1,
      wa1 like line of itab1,
      itab2 type table of tab2,
      wa2 like line of itab2.

wa1-a = '1'.
wa1-b = '2'.
append wa1 to itab1.
clear wa1.

wa1-a = '3'.
wa1-b = '4'.
append wa1 to itab1.
clear wa1.


export itab1 to memory id '001'.
export itab2 to memory id '002'.

submit z_82235_test2 and return exporting list to memory .


import itab1 from memory id '003'.
import itab2 from memory id '004'.

write:/ 'ITAB1'.
loop at itab1 into wa1.
write : / wa1-a, wa1-b.
clear: wa1.
endloop.

write:/ 'ITAB2'.
loop at itab2 into wa2.
write : / wa2-c, wa2-d.
clear: wa2.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;report  z_82235_test2                           .

types: begin of tab1,
         a(1),
         b(1),
       end of tab1.

types: begin of tab2,
         c(1),
         d(1),
       end of tab2.

data: itab1 type table of tab1,
      wa1 like line of itab1,
      itab2 type table of tab2,
      wa2 like line of itab2.

import itab1 from memory id '001'.
import itab2 from memory id '002'.

itab2[] = itab1[].

wa1-a = 'a'.
wa1-b = 'b'.
append wa1 to itab1.
clear wa1.




export itab1 to memory id '003'.
export itab2 to memory id '004'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 May 2007 07:06:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-with-exporting-list-to-memory/m-p/2275583#M494816</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-26T07:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: Submit with EXPORTING LIST TO MEMORY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-with-exporting-list-to-memory/m-p/2275584#M494817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to all for your reply,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found a solution for this ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have copy RKPEP003 to zRKPEP003&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then i have copy FM PS05_PROJECT_LINE_ITEM to ZPS05_PROJECT_LINE_ITEM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then i have copy FM K_LINE_ITEMS_SELECT_AND_LIST to ZK_LINE_ITEMS_SELECT_AND_LIST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is import parameter with name I_USE_GRID, which should be SPACE in FM K_LINE_ITEMS_SELECT_AND_LIST. so i called ZK_LINE_ITEMS_SELECT_AND_LIST with SPACE as import parameter, it solve my problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 May 2007 04:13:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-with-exporting-list-to-memory/m-p/2275584#M494817</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-27T04:13:03Z</dc:date>
    </item>
  </channel>
</rss>

