<?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 types in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-types/m-p/1639903#M285068</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;U have decalred g_mseg in this way &amp;lt;b&amp;gt;g_mseg type mseg&amp;lt;/b&amp;gt;, so this is not internal table but it is a structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can have only one record at a time in g_mseg. To append the data u can do it in thsi way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: g_mseg TYPE mseg.&lt;/P&gt;&lt;P&gt;DATA: t_mseg LIKE mseg OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE * FROM mseg INTO g_mseg&lt;/P&gt;&lt;P&gt;WHERE mblnr = '0049000000'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;  APPEND g_mseg TO  t_mseg.&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Vibha &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Nov 2006 06:39:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-03T06:39:12Z</dc:date>
    <item>
      <title>Internal table types</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-types/m-p/1639900#M285065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;I have two internal tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: g_mseg type mseg.&lt;/P&gt;&lt;P&gt;data: t_mseg like mseg occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have data in g_mseg table.&lt;/P&gt;&lt;P&gt;How can i transfer g_mseg data into t_mseg table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;kaki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Nov 2006 06:29:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-types/m-p/1639900#M285065</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-03T06:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table types</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-types/m-p/1639901#M285066</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;&lt;/P&gt;&lt;P&gt;  G_MSEG here is structure and T_MSEG is internal table, both having the same structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  You can use below statement:

  append g_mseg to t_mseg.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Nov 2006 06:33:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-types/m-p/1639901#M285066</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-03T06:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table types</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-types/m-p/1639902#M285067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi kaki,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;g_mseg is like a work area, its not an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t_mseg is an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just use the statement append&lt;/P&gt;&lt;P&gt;append g_mseg to t_mseg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;- Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Nov 2006 06:35:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-types/m-p/1639902#M285067</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2006-11-03T06:35:15Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table types</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-types/m-p/1639903#M285068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;U have decalred g_mseg in this way &amp;lt;b&amp;gt;g_mseg type mseg&amp;lt;/b&amp;gt;, so this is not internal table but it is a structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can have only one record at a time in g_mseg. To append the data u can do it in thsi way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: g_mseg TYPE mseg.&lt;/P&gt;&lt;P&gt;DATA: t_mseg LIKE mseg OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE * FROM mseg INTO g_mseg&lt;/P&gt;&lt;P&gt;WHERE mblnr = '0049000000'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;  APPEND g_mseg TO  t_mseg.&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Vibha &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Nov 2006 06:39:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-types/m-p/1639903#M285068</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-03T06:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table types</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-types/m-p/1639904#M285069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi kaki,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;g_mseg is  a work area, not an internal table where as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t_mseg is an internal table.Bothr having same structures.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use append statemnt .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append g_mseg to t_mseg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Nov 2006 06:39:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-types/m-p/1639904#M285069</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2006-11-03T06:39:25Z</dc:date>
    </item>
  </channel>
</rss>

