<?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: How to work with Function Module Write_List in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-work-with-function-module-write-list/m-p/5967222#M1338669</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ayal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt; itab_list  type abaplist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;w_string = itab-field1.&lt;/P&gt;&lt;P&gt;concatenate itab_list-rfcrecord w_string into  itab_list-rfcrecord.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w_string  = itab-field2.&lt;/P&gt;&lt;P&gt;concatenate itab_list-rfcrecord w_string into  itab_list-rfcrecord.&lt;/P&gt;&lt;P&gt;.... till the last field is appended.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab_list can be passed to the tables parameter LISTOBJECT of the function module WRITE_LIST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Jul 2009 13:01:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-07-30T13:01:38Z</dc:date>
    <item>
      <title>How to work with Function Module Write_List</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-work-with-function-module-write-list/m-p/5967218#M1338665</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 searched the forum and the web but I didn't get an answer to my question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a Z program which is called by another Z program.&lt;/P&gt;&lt;P&gt;I would like to use the Function-modules "WRITE_LIST" and "LIST_FROM_MEMORY" but the problem I have is how to work the ABAPLIST type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table that includes numerous fields and I don't understand how to transfer such a table to ABAPLIST type table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help will be appreciated.&lt;/P&gt;&lt;P&gt;Ayal Telem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 11:32:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-work-with-function-module-write-list/m-p/5967218#M1338665</guid>
      <dc:creator>yes_sapteam</dc:creator>
      <dc:date>2009-07-30T11:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to work with Function Module Write_List</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-work-with-function-module-write-list/m-p/5967219#M1338666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please find the sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: list_tab type standard table of ABAPLIST with header line.

SUBMIT Zprg
WITH ...
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.
    ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 11:52:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-work-with-function-module-write-list/m-p/5967219#M1338666</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-30T11:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to work with Function Module Write_List</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-work-with-function-module-write-list/m-p/5967220#M1338667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai, &lt;/P&gt;&lt;P&gt;Refer to the given below code:&lt;/P&gt;&lt;P&gt;report zlist_to_memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of t_listout occurs 0,&lt;/P&gt;&lt;P&gt;line(1024) type c,&lt;/P&gt;&lt;P&gt;end of t_listout.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Submit the report and export list to memory&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;submit z_reqd_report exporting list to memory&lt;/P&gt;&lt;P&gt;and return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get list from memory and convert to ascii&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;perform retrieve_list_from_memory tables t_listout.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at t_listout.&lt;/P&gt;&lt;P&gt;write:/ t_listout.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Procedure to retrieve list from memory&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;form retrieve_list_from_memory tables t_reportop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: t_list like abaplist occurs 0 with header line.&lt;/P&gt;&lt;P&gt;data: textlines(1024) type c occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear t_list. refresh t_list.&lt;/P&gt;&lt;P&gt;clear t_reportop. refresh t_reportop.&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 = t_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;check sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'LIST_TO_ASCI'&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;listobject = t_list&lt;/P&gt;&lt;P&gt;listasci = textlines&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;check sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t_reportop[] = txtlines[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'LIST_FREE_MEMORY'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 12:07:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-work-with-function-module-write-list/m-p/5967220#M1338667</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-30T12:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to work with Function Module Write_List</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-work-with-function-module-write-list/m-p/5967221#M1338668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai, &lt;/P&gt;&lt;P&gt;Refer to the given below code:&lt;/P&gt;&lt;P&gt;report zlist_to_memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of t_listout occurs 0,&lt;/P&gt;&lt;P&gt;line(1024) type c,&lt;/P&gt;&lt;P&gt;end of t_listout.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Submit the report and export list to memory&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;submit z_reqd_report exporting list to memory&lt;/P&gt;&lt;P&gt;and return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get list from memory and convert to ascii&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;perform retrieve_list_from_memory tables t_listout.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at t_listout.&lt;/P&gt;&lt;P&gt;write:/ t_listout.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Procedure to retrieve list from memory&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;form retrieve_list_from_memory tables t_reportop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: t_list like abaplist occurs 0 with header line.&lt;/P&gt;&lt;P&gt;data: textlines(1024) type c occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear t_list. refresh t_list.&lt;/P&gt;&lt;P&gt;clear t_reportop. refresh t_reportop.&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 = t_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;check sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'LIST_TO_ASCI'&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;listobject = t_list&lt;/P&gt;&lt;P&gt;listasci = textlines&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;check sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t_reportop[] = txtlines[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'LIST_FREE_MEMORY'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 12:07:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-work-with-function-module-write-list/m-p/5967221#M1338668</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-30T12:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to work with Function Module Write_List</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-work-with-function-module-write-list/m-p/5967222#M1338669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ayal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt; itab_list  type abaplist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;w_string = itab-field1.&lt;/P&gt;&lt;P&gt;concatenate itab_list-rfcrecord w_string into  itab_list-rfcrecord.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w_string  = itab-field2.&lt;/P&gt;&lt;P&gt;concatenate itab_list-rfcrecord w_string into  itab_list-rfcrecord.&lt;/P&gt;&lt;P&gt;.... till the last field is appended.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab_list can be passed to the tables parameter LISTOBJECT of the function module WRITE_LIST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 13:01:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-work-with-function-module-write-list/m-p/5967222#M1338669</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-30T13:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to work with Function Module Write_List</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-work-with-function-module-write-list/m-p/5967223#M1338670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot to all who have replied to this thread, but I'm afraid the point was missed - maybe I didn't explained well enough.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is how to map a table with various fields of various types and length, to the ABAPLIST structure.&lt;/P&gt;&lt;P&gt;Should I do a concatenation to the ABAPLIST and than split from it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Ayal Telem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Aug 2009 07:33:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-work-with-function-module-write-list/m-p/5967223#M1338670</guid>
      <dc:creator>yes_sapteam</dc:creator>
      <dc:date>2009-08-02T07:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to work with Function Module Write_List</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-work-with-function-module-write-list/m-p/5967224#M1338671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Mdi.Deeba.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to follow your code snippet but it looks like nothing is added the the ABAPLIST structure.&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;Ayal Telem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Aug 2009 09:28:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-work-with-function-module-write-list/m-p/5967224#M1338671</guid>
      <dc:creator>yes_sapteam</dc:creator>
      <dc:date>2009-08-02T09:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to work with Function Module Write_List</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-work-with-function-module-write-list/m-p/5967225#M1338672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to specify that this thread was not answered, but it shouldn't be.&lt;/P&gt;&lt;P&gt;It looks like I took a wrong approach here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I tried to replicate the issue I had and caused me to open this thread I could not, so I have to wait until the issue will re-surface and than I will be able to handle it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you all.&lt;/P&gt;&lt;P&gt;Ayal Telem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2009 07:46:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-work-with-function-module-write-list/m-p/5967225#M1338672</guid>
      <dc:creator>yes_sapteam</dc:creator>
      <dc:date>2009-08-04T07:46:42Z</dc:date>
    </item>
  </channel>
</rss>

