<?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: moving data from structure to internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-from-structure-to-internal-table/m-p/4015638#M959495</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data: location_data type  temp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION funcname &lt;/P&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;P&gt;     location_data         = ls_location_data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to move this location_data to one internal table so i can fetch data .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Jun 2008 06:26:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-12T06:26:41Z</dc:date>
    <item>
      <title>moving data from structure to internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-from-structure-to-internal-table/m-p/4015634#M959491</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'm having data in one structure inside one function module .&lt;/P&gt;&lt;P&gt;I want to move that data to one internal table so i can retrieve it .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz tell me how to do it .?? &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>Thu, 12 Jun 2008 06:14:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-from-structure-to-internal-table/m-p/4015634#M959491</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-12T06:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: moving data from structure to internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-from-structure-to-internal-table/m-p/4015635#M959492</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;Your question is not very clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I the structure of workarea and internal table are same , then you can write&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND WA_DATA TO I_DATA.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2008 06:16:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-from-structure-to-internal-table/m-p/4015635#M959492</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-12T06:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: moving data from structure to internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-from-structure-to-internal-table/m-p/4015636#M959493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   You can write as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append &amp;lt;str data&amp;gt; to &amp;lt;int table&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mention this internal table name in &lt;STRONG&gt;Tables&lt;/STRONG&gt; tab in function module.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2008 06:16:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-from-structure-to-internal-table/m-p/4015636#M959493</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-12T06:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: moving data from structure to internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-from-structure-to-internal-table/m-p/4015637#M959494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the resultant structure is not there as an exporting parameter from the function module. You can use field symbols.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first declare your internal table type structure with the same name as your FM structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delcare two fields symbols of the structure type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After calling the FM, assign the FM structure to your field symbol1 &amp;lt;fs1&amp;gt;.you can do this by giving the main program name of FM as reference ie &lt;/P&gt;&lt;P&gt;ASSIGN ((SAP***)structurename) TO &amp;lt;fs1&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;assign local internal table type also in the same way. For this pgm name is not required, as this is in your local program. &amp;lt;fs2&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then swap this field symbol values&lt;/P&gt;&lt;P&gt;&amp;lt;fs2&amp;gt; = &amp;lt;fs1&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This much steps if you do, you can get the values in your local internal table type.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2008 06:24:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-from-structure-to-internal-table/m-p/4015637#M959494</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-12T06:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: moving data from structure to internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-from-structure-to-internal-table/m-p/4015638#M959495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data: location_data type  temp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION funcname &lt;/P&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;P&gt;     location_data         = ls_location_data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to move this location_data to one internal table so i can fetch data .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2008 06:26:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-from-structure-to-internal-table/m-p/4015638#M959495</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-12T06:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: moving data from structure to internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-from-structure-to-internal-table/m-p/4015639#M959496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;U are using the structure inside the FM..means...u are importing it from some place..suppose ur structutre is s and internal table is itab..then declare a work area wa_itab of type same as itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then  wa_itab1-field1 = s-field1 .&lt;/P&gt;&lt;P&gt;        wa_itab1-field2 = s-field2 .&lt;/P&gt;&lt;P&gt;               :&lt;/P&gt;&lt;P&gt;               :&lt;/P&gt;&lt;P&gt;then append wa_itab1 to itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it works...reward if useful...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Rudra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2008 06:28:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-from-structure-to-internal-table/m-p/4015639#M959496</guid>
      <dc:creator>former_member195383</dc:creator>
      <dc:date>2008-06-12T06:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: moving data from structure to internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-from-structure-to-internal-table/m-p/4015640#M959497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if the structure of the FM is in the tables part of the FM &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u can use  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
read table &amp;lt;table_name&amp;gt; into work_area sy-index = 1.
if sy-subrc eq 0.

append work_area to itab.

endif. &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2008 06:28:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-from-structure-to-internal-table/m-p/4015640#M959497</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-06-12T06:28:54Z</dc:date>
    </item>
  </channel>
</rss>

