<?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/1069815#M94413</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 always include structure &amp;amp; add fields to the internal table definition.&lt;/P&gt;&lt;P&gt;So you can define your Internal table as.&lt;/P&gt;&lt;P&gt;data: begin of data occurs 0.&lt;/P&gt;&lt;P&gt;include structure ztable.&lt;/P&gt;&lt;P&gt;data:new_field(10),&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;data: end of data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Phani Kiran Nudurupati&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Dec 2005 17:39:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-12-15T17:39:34Z</dc:date>
    <item>
      <title>internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1069813#M94411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; This could be a silly question!! i have a z table with about 70 fields . I have a lot of criteria to check if a record canbe  inserted into the ztable. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; My questions is i have an internal table with include structure of the ztable. Is it possible to add a field to the internal table - tab- status and then the structure of the table. or do i need to write the internal table with 70 fields + the status. The status is for error check or success check. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of data occurs 0.&lt;/P&gt;&lt;P&gt;        include structure ztable.&lt;/P&gt;&lt;P&gt;data: end of data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is what i am presently using how do i add the extra field to this internal table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this field will not be inserted into the z table but just to check if  the record can be inserted or no.&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, 15 Dec 2005 17:31:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1069813#M94411</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-15T17:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1069814#M94412</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;You don't have to type all 70 fields.&lt;/P&gt;&lt;P&gt;You can do like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of data occurs 0. &lt;/P&gt;&lt;P&gt;      include structure ztable&lt;/P&gt;&lt;P&gt;data : status(1),    &lt;/P&gt;&lt;P&gt;      end of data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Govindarajan Seenivasan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Govindarajan Seenivasan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2005 17:35:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1069814#M94412</guid>
      <dc:creator>govind_seenivasan</dc:creator>
      <dc:date>2005-12-15T17:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1069815#M94413</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 always include structure &amp;amp; add fields to the internal table definition.&lt;/P&gt;&lt;P&gt;So you can define your Internal table as.&lt;/P&gt;&lt;P&gt;data: begin of data occurs 0.&lt;/P&gt;&lt;P&gt;include structure ztable.&lt;/P&gt;&lt;P&gt;data:new_field(10),&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;data: end of data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Phani Kiran Nudurupati&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2005 17:39:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1069815#M94413</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-15T17:39:34Z</dc:date>
    </item>
    <item>
      <title>Re: internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1069816#M94414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes its possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of tp_data.&lt;/P&gt;&lt;P&gt;types:include structure ztable.&lt;/P&gt;&lt;P&gt;types: status type c.&lt;/P&gt;&lt;P&gt;tyeps: end of tp_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : itab type standard table of tp_data with header l ine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2005 17:41:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1069816#M94414</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-15T17:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1069817#M94415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can add the fields along with include structure in the following way....&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: begin of data occurs 0. 
include structure ztest.
data : status(1), 
end of data.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2005 18:09:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1069817#M94415</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-15T18:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1069818#M94416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you USE&lt;/P&gt;&lt;P&gt;data: begin of data occurs 0.&lt;/P&gt;&lt;P&gt;        include structure ztable.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;data : v_tab(1) type c.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;data: end of data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so now you will have DATA internal table with some records.but you cant use directly insert command with DATA internal table (if you add field V_TAB).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create a structure of same type ZTABLE.&lt;/P&gt;&lt;P&gt;so in loop at DATA.&lt;/P&gt;&lt;P&gt;         move-corresponding DATA TO ZTABLE.&lt;/P&gt;&lt;P&gt;         INSERT ZTABLE FROM ZTABLE.&lt;/P&gt;&lt;P&gt;*--check subrc/dbcnt &amp;amp; proceed further.         &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2005 18:36:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1069818#M94416</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-15T18:36:28Z</dc:date>
    </item>
  </channel>
</rss>

