<?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 declaration in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-declaration/m-p/7480969#M1556274</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AFAIK this is not possible the way you've defined.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Nov 2010 13:18:21 GMT</pubDate>
    <dc:creator>SuhaSaha</dc:creator>
    <dc:date>2010-11-19T13:18:21Z</dc:date>
    <item>
      <title>internal table declaration</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-declaration/m-p/7480968#M1556273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;experts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have internal table with 10 fields itab1. now i want to add one more field in 2nd position in itab2.&lt;/P&gt;&lt;P&gt;aleady in the program it is decalared as&lt;/P&gt;&lt;P&gt;data: begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;field1&lt;/P&gt;&lt;P&gt;field2&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;so how to decalre the itab2 with extra one filed at 2nd postion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;shall i need to decalre all the fileds again and insert 2nd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of itab2 occurs 0,&lt;/P&gt;&lt;P&gt;field1&lt;/P&gt;&lt;P&gt;field2 " new filed&lt;/P&gt;&lt;P&gt;field3 - which is equal to field to in itab&lt;/P&gt;&lt;P&gt;etc&lt;/P&gt;&lt;P&gt;end of itab2.&lt;/P&gt;&lt;P&gt; or any other way to add a field with all the fields of itab in itab2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Nov 2010 13:14:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-declaration/m-p/7480968#M1556273</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-19T13:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: internal table declaration</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-declaration/m-p/7480969#M1556274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AFAIK this is not possible the way you've defined.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Nov 2010 13:18:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-declaration/m-p/7480969#M1556274</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-11-19T13:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: internal table declaration</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-declaration/m-p/7480970#M1556275</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;Please be more clear. What do you mean by fields? You mean columns? If it is so and you want to declare another internal table similar to itab1 exccept for the extra column in 2nd position, I guess you cannot refer to the itab1 and do that but declare a new structure with the required columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Nov 2010 13:23:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-declaration/m-p/7480970#M1556275</guid>
      <dc:creator>sridhar_meesala</dc:creator>
      <dc:date>2010-11-19T13:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: internal table declaration</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-declaration/m-p/7480971#M1556276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use deep structures,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if you're trying&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;begin of itab2,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field1 - itab1(field1),&lt;/P&gt;&lt;P&gt;field2 - new field,&lt;/P&gt;&lt;P&gt;field3 - itab1(field2)......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Then its not possible.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use itab1 in itab2 in following ways:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:BEGIN OF ty_message, (itab1)&lt;/P&gt;&lt;P&gt;    count          TYPE sytabix,&lt;/P&gt;&lt;P&gt;    test type c,&lt;/P&gt;&lt;P&gt;    bdc_messages TYPE STANDARD TABLE OF VBAK,&lt;/P&gt;&lt;P&gt;    END OF ty_message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:  Begin of all_messages,(itab2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    test2 type c,&lt;/P&gt;&lt;P&gt;    bdc_messages1 like ty_message,(itab1)&lt;/P&gt;&lt;P&gt;    test3 type c,&lt;/P&gt;&lt;P&gt;    END OF all_messages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this might prove usefull.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Nov 2010 06:30:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-declaration/m-p/7480971#M1556276</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-22T06:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: internal table declaration</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-declaration/m-p/7480972#M1556277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI , &lt;/P&gt;&lt;P&gt;Why dont you try splitting the internal table type into 2 parts?&lt;/P&gt;&lt;P&gt;Then you can add the 2nd field to the first half and  then join these subsequently.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For eg:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TYPES : BEGIN OF t_itab1,
        a(3) TYPE c.
TYPES: END OF t_itab1.
TYPES:BEGIN OF t_itab2,
        b(3) TYPE c,
        c(3) TYPE c,
       END OF t_itab2.

DATA:  wa_itab1 TYPE t_itab1,
       wa_itab2 TYPE t_itab2.
TYPES : BEGIN OF t_itab3.
INCLUDE STRUCTURE wa_itab1 .
INCLUDE STRUCTURE wa_itab2.
TYPES : END OF t_itab3.

DATA:wa_itab3 TYPE t_itab3,
           i_itab3 TYPE TABLE OF t_itab3,
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Nov 2010 08:08:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-declaration/m-p/7480972#M1556277</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-22T08:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: internal table declaration</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-declaration/m-p/7480973#M1556278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Don't use tables with header lines&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do what Rashmi R said.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Nov 2010 08:27:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-declaration/m-p/7480973#M1556278</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2010-11-22T08:27:11Z</dc:date>
    </item>
  </channel>
</rss>

