<?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 Declartions with Include structure in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-declartions-with-include-structure/m-p/938879#M62688</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;declare as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of t_bkbs occurs 0.&lt;/P&gt;&lt;P&gt;include struture bkpf.&lt;/P&gt;&lt;P&gt;data : buzei type bseg-buzei,&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;...like that declare fields in bseg which is not in bkpf&lt;/P&gt;&lt;P&gt;end of t_bkbs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Jun 2005 09:45:35 GMT</pubDate>
    <dc:creator>jayanthi_jayaraman</dc:creator>
    <dc:date>2005-06-24T09:45:35Z</dc:date>
    <item>
      <title>Internal Table Declartions with Include structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-declartions-with-include-structure/m-p/938878#M62687</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 need to declare a internal table with the combination of two tables(BKPF and BSEG).But the declaration like below has syntax error since&lt;/P&gt;&lt;P&gt;there are some common fields in both the tables .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:begin of t_bkbs occurs 0.&lt;/P&gt;&lt;P&gt;       include structure bkpf.&lt;/P&gt;&lt;P&gt;       include structure bseg.&lt;/P&gt;&lt;P&gt;data:end of t_bkbs.       &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Is there any other way to solve this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2005 09:39:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-declartions-with-include-structure/m-p/938878#M62687</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-24T09:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table Declartions with Include structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-declartions-with-include-structure/m-p/938879#M62688</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;declare as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of t_bkbs occurs 0.&lt;/P&gt;&lt;P&gt;include struture bkpf.&lt;/P&gt;&lt;P&gt;data : buzei type bseg-buzei,&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;...like that declare fields in bseg which is not in bkpf&lt;/P&gt;&lt;P&gt;end of t_bkbs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2005 09:45:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-declartions-with-include-structure/m-p/938879#M62688</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2005-06-24T09:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table Declartions with Include structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-declartions-with-include-structure/m-p/938880#M62689</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;  Declare the internal table with common fields from both the tables, for ex,&lt;/P&gt;&lt;P&gt;tab1 &amp;amp; tab2 are 2 dbtables&lt;/P&gt;&lt;P&gt;types: begin of wa_tab,&lt;/P&gt;&lt;P&gt;      fld1 like tab1-fld1, " from tab1&lt;/P&gt;&lt;P&gt;      fld2 like tab1-fld2,&lt;/P&gt;&lt;P&gt;      fld3 like tab2-fld1, " from tab2&lt;/P&gt;&lt;P&gt;      end of it_tab. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;declare an internal table from the work area defined earlier. Hope this helps, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2005 09:46:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-declartions-with-include-structure/m-p/938880#M62689</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-24T09:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table Declartions with Include structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-declartions-with-include-structure/m-p/938881#M62690</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;TYPES : BEGIN OF pfra0_pcale,&lt;/P&gt;&lt;P&gt;           annee(4) TYPE c.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE pcint.&lt;/P&gt;&lt;P&gt;TYPES : END OF pfra0_pcale.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2005 10:08:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-declartions-with-include-structure/m-p/938881#M62690</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-24T10:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table Declartions with Include structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-declartions-with-include-structure/m-p/938882#M62691</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;look, if you can use one of the following structures :&lt;/P&gt;&lt;P&gt;BSIK,BSID,BSIS,ACCIT which include the important fields of bkpf and bseg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2005 10:09:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-declartions-with-include-structure/m-p/938882#M62691</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2005-06-24T10:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table Declartions with Include structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-declartions-with-include-structure/m-p/938883#M62692</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;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: BEGIN OF t_bkbs OCCURS 0.
INCLUDE STRUCTURE bkpf AS k .
INCLUDE STRUCTURE bseg AS s .
DATA: END OF t_bkbs.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Serdar &amp;lt;a href="https://www.sdn.sap.com:443http://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=qbk%2bsag%2bjiw%3d"&amp;gt;[ BC ]&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2005 10:21:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-declartions-with-include-structure/m-p/938883#M62692</guid>
      <dc:creator>ssimsekler</dc:creator>
      <dc:date>2005-06-24T10:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table Declartions with Include structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-declartions-with-include-structure/m-p/938884#M62693</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 need all the fields of BKPF and BSEG .&lt;/P&gt;&lt;P&gt;I am looking for the simplest way of declaring internal table .Declaring one table as structure and other as individual fields will be a lengthy declaration(BSEG has 350 fields)&lt;/P&gt;&lt;P&gt;.Is there any other simplest way of declaring this internal table .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks all for your views.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2005 10:27:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-declartions-with-include-structure/m-p/938884#M62693</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-24T10:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table Declartions with Include structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-declartions-with-include-structure/m-p/938885#M62694</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;  Declare a type which is similar to table type, for ex,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: t_bseg type bseg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; use the type as one of the line types to declare the internal table, for ex,&lt;/P&gt;&lt;P&gt; DATA itab_bseg TYPE STANDARD TABLE OF t_bseg &lt;/P&gt;&lt;P&gt;              initial size 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2005 10:59:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-declartions-with-include-structure/m-p/938885#M62694</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-24T10:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table Declartions with Include structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-declartions-with-include-structure/m-p/938886#M62695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raja&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you try :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: BEGIN OF t_bkbs OCCURS 0.
INCLUDE STRUCTURE bkpf AS k .
INCLUDE STRUCTURE bseg AS s .
DATA: END OF t_bkbs.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way you can reach a field via, e.g. &amp;lt;b&amp;gt;'t_bkbs-k&amp;lt;i&amp;gt;-&amp;lt;fieldname&amp;gt;&amp;lt;/i&amp;gt;'&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;Alternatively;&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: BEGIN OF t_bkbs OCCURS 0.
bkpf_str LIKE bkpf .
bseg_str LIKE bseg .
DATA: END OF t_bkbs.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way you can reach a field via e.g.  &amp;lt;b&amp;gt;'t_bkbs-bkpf_str&amp;lt;i&amp;gt;-&amp;lt;fieldname&amp;gt;&amp;lt;/i&amp;gt;'&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;Alternatively;&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a new structure, e.g. ZBKBS, in DDIC and include bseg and bkpf there. Then, in your program refer to this DDUC structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Serdar &amp;lt;a href="https://www.sdn.sap.com:443http://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=qbk%2bsag%2bjiw%3d"&amp;gt;[ BC ]&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2005 12:52:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-declartions-with-include-structure/m-p/938886#M62695</guid>
      <dc:creator>ssimsekler</dc:creator>
      <dc:date>2005-06-24T12:52:07Z</dc:date>
    </item>
  </channel>
</rss>

