<?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 with an internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-an-internal-table/m-p/5304128#M1223230</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;I am not understood why ur checking like gs_tab-pos-number = 'test'. Number field should be &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gs_pos-number = 'test'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Md.MahaboobKhan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Mar 2009 10:37:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-03-05T10:37:38Z</dc:date>
    <item>
      <title>internal table with an internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-an-internal-table/m-p/5304124#M1223226</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;I have following definition:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TYPES:  BEGIN OF ty_pos,
             numbertype(29)            TYPE c,
             number(29)                TYPE c,
             END OF ty_pos.

DATA: gt_pos TYPE STANDARD TABLE OF ty_pos,
      gs_pos LIKE LINE OF gt_pos.

TYPES: BEGIN OF ty_struc,
        city(29)                  TYPE c,
        country(29)               TYPE c,
        name(29)                  TYPE c,

        pos LIKE gt_pos,
END OF ty_struc.

DATA: gt_tab TYPE STANDARD TABLE OF ty_struc,
      gs_tab LIKE LINE OF gt_tab.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The problem is that the system don't know the fields when I say&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  gs_tab-pos-number                = 'test'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;How should I write the syntax therefore?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2009 10:18:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-an-internal-table/m-p/5304124#M1223226</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-05T10:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: internal table with an internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-an-internal-table/m-p/5304125#M1223227</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;check the spelling.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gs_pos-number = 'test'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2009 10:22:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-an-internal-table/m-p/5304125#M1223227</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-05T10:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: internal table with an internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-an-internal-table/m-p/5304126#M1223228</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;Check the code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPES : BEGIN OF t_gr,
          wrbtr TYPE ekbe-wrbtr,
          menge TYPE ekbe-menge,
          bwart TYPE ekbe-bwart,
         END OF t_gr.
 
  DATA :  i_gr    TYPE TABLE OF t_gr.
*
  TYPES : BEGIN OF t_ekbe,
           ebeln TYPE ekbe-ebeln,
           ebelp TYPE ekbe-ebelp,
           *llggr LIKE i_gr,*
          END OF t_ekbe.
 
   DATA : i_ekbe      TYPE TABLE OF t_ekbe.
 
   SELECT ebeln
          ebelp
          wrbtr
          FROM ekbe
          INTO TABLE i_ekbe1
          FOR ALL ENTRIES IN i_data1
          WHERE ebeln = i_data1-ebeln   AND
                ebelp = i_data1-ebelp   AND
                  bewtp = c_e          AND
                ( bwart = c_101        OR
                  bwart = c_102        OR
                  bwart = c_103        OR
                  bwart = c_104 ).
 
loop at i_ekbe1 into wa_ekbe1.
wa_ekbe = wa_ekbe1.
wa_gr-wrbtr = wa_ekbe-wrbtr
append wa_gr to i_gr.
on change of  wa_ekbe1-ebeln.
       INSERT LINES OF i_gr INTO wa_ekbe-llggr INDEX 1.
       APPEND wa_ekbe TO i_ekbe.
endon.
edloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the above code the ekbe table is having one move itab l_gr &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_gr is updated in each loop and and each change the i_ekbe is updated with one set of l_gr data as internal table line for i_ekbe.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here u need to refer each table seperately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parent table(EKKO) line has the child tables(EKPO).&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Nandha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2009 10:23:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-an-internal-table/m-p/5304126#M1223228</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-05T10:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: internal table with an internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-an-internal-table/m-p/5304127#M1223229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dude,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;


TYPES:  BEGIN OF ty_pos,
             numbertype(29)            TYPE c,
             number(29)                TYPE c,
             END OF ty_pos.

data : gt_pos type ty_pos,
       gs_pos like gt_pos .

TYPES: BEGIN OF ty_struc,
        city(29)                  TYPE c,
        country(29)               TYPE c,
        name(29)                  TYPE c,
        pos  like gs_pos,
END OF ty_struc.


data : gt_tab type ty_struc,
       gs_tab like gt_tab.

break-point.
gs_tab-pos-number = 'test'.

write : gs_tab-pos-number.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2009 10:33:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-an-internal-table/m-p/5304127#M1223229</guid>
      <dc:creator>former_member632729</dc:creator>
      <dc:date>2009-03-05T10:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: internal table with an internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-an-internal-table/m-p/5304128#M1223230</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;I am not understood why ur checking like gs_tab-pos-number = 'test'. Number field should be &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gs_pos-number = 'test'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Md.MahaboobKhan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2009 10:37:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-an-internal-table/m-p/5304128#M1223230</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-05T10:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: internal table with an internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-an-internal-table/m-p/5304129#M1223231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;number field is also in my structure gs_tab as I inlude it in the field pos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2009 10:39:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-an-internal-table/m-p/5304129#M1223231</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-05T10:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: internal table with an internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-an-internal-table/m-p/5304130#M1223232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I cannot use this mentioned statement as I want that field pos in gt_tab is an internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF ty_struc,&lt;/P&gt;&lt;P&gt;        city(29)                  TYPE c,&lt;/P&gt;&lt;P&gt;        country(29)               TYPE c,&lt;/P&gt;&lt;P&gt;        name(29)                  TYPE c,&lt;/P&gt;&lt;P&gt;        pos  like gs_pos,&lt;/P&gt;&lt;P&gt;END OF ty_struc.&lt;/P&gt;&lt;P&gt; with this statement pos is only a structure and not an internal table within an internal table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2009 10:41:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-an-internal-table/m-p/5304130#M1223232</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-05T10:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: internal table with an internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-an-internal-table/m-p/5304131#M1223233</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 &lt;/P&gt;&lt;P&gt;Pos like gs_pos&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPES:  BEGIN OF ty_pos,
             numbertype(29)            TYPE c,
             number(29)                TYPE c,
             END OF ty_pos.

DATA: gt_pos TYPE STANDARD TABLE OF ty_pos,
      gs_pos LIKE LINE OF gt_pos.

TYPES: BEGIN OF ty_struc,
        city(29)                  TYPE c,
        country(29)               TYPE c,
        name(29)                  TYPE c,
        
        pos LIKE gs_pos,      "  Change here
END OF ty_struc.

DATA: gt_tab TYPE STANDARD TABLE OF ty_struc,
      gs_tab LIKE LINE OF gt_tab.


gs_tab-pos-number = 'test'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it works now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks|&lt;/P&gt;&lt;P&gt;Mahesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2009 10:48:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-an-internal-table/m-p/5304131#M1223233</guid>
      <dc:creator>former_member222860</dc:creator>
      <dc:date>2009-03-05T10:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: internal table with an internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-an-internal-table/m-p/5304132#M1223234</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;Here work area gs_tab corresponds to the table gt_tab, which corresponds to the structure ty_struc and this structure doesnt contain POS_NUMBER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;define POS_NUMBER in strucute ty_struc than only wont get error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Rudhir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2009 10:59:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-an-internal-table/m-p/5304132#M1223234</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-05T10:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: internal table with an internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-an-internal-table/m-p/5304133#M1223235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;your right but it contains pos-number&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2009 11:20:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-an-internal-table/m-p/5304133#M1223235</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-05T11:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: internal table with an internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-an-internal-table/m-p/5304134#M1223236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is it not possible that I can define pos as an internal table within an internal table to read the several fields of pos like number?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2009 13:14:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-an-internal-table/m-p/5304134#M1223236</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-05T13:14:42Z</dc:date>
    </item>
  </channel>
</rss>

