<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3328132#M797181</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;There are many ways:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. You can create a structure with all the fields you want to add. Like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF street_type, &lt;/P&gt;&lt;P&gt;         name TYPE c LENGTH 40, &lt;/P&gt;&lt;P&gt;         no   TYPE c LENGTH 4, &lt;/P&gt;&lt;P&gt;       END OF street_type. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: itab type table of street_type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can add fields to this structure at any time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. You can define an internal table like a database table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: itab type table of sflight.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want to add field to this itab, then create a structure like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF street_type, &lt;/P&gt;&lt;P&gt;         name TYPE c LENGTH 40, &lt;/P&gt;&lt;P&gt;         no   TYPE c LENGTH 4.&lt;/P&gt;&lt;P&gt;Include sflight.&lt;/P&gt;&lt;P&gt;Types:       END OF street_type. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. You can create an se11 stucture to associate with the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Renjith Michael.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Feb 2008 02:40:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-07T02:40:42Z</dc:date>
    <item>
      <title>Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3328130#M797179</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;How to add one or more fields to existing internal table .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THX&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2008 02:25:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3328130#M797179</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-07T02:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3328131#M797180</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 be more specific in ur reqmt .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If currently u have 2 fields in ur Internal Table and you want to add another 2 fields then you need to change the Internal Table Declaration .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us know more abt ur reqmt .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks . Praveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2008 02:28:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3328131#M797180</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-07T02:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3328132#M797181</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;There are many ways:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. You can create a structure with all the fields you want to add. Like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF street_type, &lt;/P&gt;&lt;P&gt;         name TYPE c LENGTH 40, &lt;/P&gt;&lt;P&gt;         no   TYPE c LENGTH 4, &lt;/P&gt;&lt;P&gt;       END OF street_type. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: itab type table of street_type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can add fields to this structure at any time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. You can define an internal table like a database table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: itab type table of sflight.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want to add field to this itab, then create a structure like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF street_type, &lt;/P&gt;&lt;P&gt;         name TYPE c LENGTH 40, &lt;/P&gt;&lt;P&gt;         no   TYPE c LENGTH 4.&lt;/P&gt;&lt;P&gt;Include sflight.&lt;/P&gt;&lt;P&gt;Types:       END OF street_type. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. You can create an se11 stucture to associate with the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Renjith Michael.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2008 02:40:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3328132#M797181</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-07T02:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3328133#M797182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Praveen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see initially i have declared internal table with some N fields &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and based on some conditions i want to add one or more fields to internal table in dynamic not in initially ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so for ex : for adding fields to data base table we are using Structures right like that i want to add to internal table but in dynamic so cleared .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THX&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2008 02:41:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3328133#M797182</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-07T02:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3328134#M797183</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;There are  2 ways to add fields to your internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose &lt;/P&gt;&lt;P&gt;1. if you declare your internal table with include structure like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; DATA : Begin of itab occurs 0.   &lt;/P&gt;&lt;P&gt;            INCLUDE STRUCTURE structure name.&lt;/P&gt;&lt;P&gt; DATA : END OF itab.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;adding fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; DATA : Begin of itab occurs 0.   &lt;/P&gt;&lt;P&gt;           INCLUDE STRUCTURE structure name.          &lt;/P&gt;&lt;P&gt;DATA :  v_num type i ,    &lt;/P&gt;&lt;P&gt;             v_char TYPE c,&lt;/P&gt;&lt;P&gt;           END OF itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.If it is general declaration add 2 more fields to your &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    DATA : Begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    here add  more fields.&lt;/P&gt;&lt;P&gt;                 end of itba.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.If it is like belwo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: itab like mara occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; then use include structures like 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; DATA : Begin of itab occurs 0.   &lt;/P&gt;&lt;P&gt;           INCLUDE STRUCTURE mara.          &lt;/P&gt;&lt;P&gt;DATA :  v_num type i ,    &lt;/P&gt;&lt;P&gt;             v_char TYPE c,&lt;/P&gt;&lt;P&gt;           END OF itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't forget to reward iuf useful....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2008 02:43:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3328134#M797183</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-07T02:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3328135#M797184</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;Is it posible to merge two database tables like VBAK and VBAP.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is the following query correct for that purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM ( vbak AS it_vbak INNER JOIN vbap AS it_vbap ON it_vbak&lt;SUB&gt;vbeln = it_vbap&lt;/SUB&gt;vbeln ) &lt;/P&gt;&lt;P&gt;INTO itab WHERE it_vbap&lt;SUB&gt;vbeln IN it_vbap&lt;/SUB&gt;vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And also please let me know about the declarations of internal tables for this query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;chandrika.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: samantha m.v on Apr 23, 2008 11:52 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2008 09:51:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3328135#M797184</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-23T09:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3328136#M797185</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;  It is better you to go for &lt;STRONG&gt;dynamic internal tables&lt;/STRONG&gt; using string. &lt;/P&gt;&lt;P&gt;It will make your requirement more easier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sankar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2008 09:54:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3328136#M797185</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-23T09:54:58Z</dc:date>
    </item>
  </channel>
</rss>

