<?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: Internal Table to Structure in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-structure/m-p/1669276#M295973</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;loop at itab into workarea.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where workarea is the struc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;read table itab into workarea index idx.&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;read table itab into workarea with key f1 = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;santhosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Nov 2006 14:39:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-27T14:39:07Z</dc:date>
    <item>
      <title>Internal Table to Structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-structure/m-p/1669275#M295972</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 was doing a FM .I brought some data into an Internal Table.&lt;/P&gt;&lt;P&gt;I need to put all the data from the ITAB to a structure .Please tell me the syntax to move all the data from ITAB to a Structure.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2006 14:36:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-structure/m-p/1669275#M295972</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-27T14:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table to Structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-structure/m-p/1669276#M295973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;loop at itab into workarea.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where workarea is the struc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;read table itab into workarea index idx.&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;read table itab into workarea with key f1 = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;santhosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2006 14:39:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-structure/m-p/1669276#M295973</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-27T14:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table to Structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-structure/m-p/1669277#M295974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bharat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Just Define a table in your FM and pass the internal table to the same.&lt;/P&gt;&lt;P&gt;  But for that You need to define a structure on the same type as ur internal table&lt;/P&gt;&lt;P&gt;  in SE11 and use in SE37 -&amp;gt; Tables which assigning the type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way you transfer Internal table into FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Manish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Manish Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2006 14:40:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-structure/m-p/1669277#M295974</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-27T14:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table to Structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-structure/m-p/1669278#M295975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi if all the data is in ITAB and ur ITAB and output structure are both of same data type then u can do like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;outputitab[] = itab[]&lt;/P&gt;&lt;P&gt;where u declare in the tables parameter as outputitab type &amp;lt;structure name&amp;gt;&lt;/P&gt;&lt;P&gt;and itab also of same type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regs&lt;/P&gt;&lt;P&gt;Manas Ranjan Panda&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2006 14:40:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-structure/m-p/1669278#M295975</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-27T14:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table to Structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-structure/m-p/1669279#M295976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can only move one line of your ITAB to the structure at one time.  Lets say that WA is a structure with the same structure as ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Loop at ITAB.

   move itab to wa.

endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you can.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Loop at itab into wa.

endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you can.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;read table itab into wa index 1.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can not move the entire contents of your ITAB into a structure, unless you are working with deep structures.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2006 14:40:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-structure/m-p/1669279#M295976</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-11-27T14:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table to Structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-structure/m-p/1669280#M295977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;If the Internal table structure and the Structure is same then move directly form itab to Structure,&lt;/P&gt;&lt;P&gt;if these both are not same, then loop that Internal table and move field by field to that structure.&lt;/P&gt;&lt;P&gt;before end loop use insert command.&lt;/P&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>Mon, 27 Nov 2006 14:40:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-structure/m-p/1669280#M295977</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-27T14:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table to Structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-structure/m-p/1669281#M295978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi bharat for this you can do one way&lt;/P&gt;&lt;P&gt;i.e &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab into wa&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function '     '&lt;/P&gt;&lt;P&gt;Pass work area each time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Endlloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2006 14:41:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-structure/m-p/1669281#M295978</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-27T14:41:52Z</dc:date>
    </item>
  </channel>
</rss>

