<?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: problem reading data from nested internal table. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-reading-data-from-nested-internal-table/m-p/2462971#M552797</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A quick look at how I would do this. Note I haven't checked if this compiles just done a quick brain-dump.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  DATA: lr_f_costs TYPE REF TO v54a0_scdd_tab,
        lr_f_cost TYPE REF TO v54a0_scdd.

  LOOP AT it_freight_costs REFERENCE INTO lr_f_costs.
    LOOP AT lr_f_costs-&amp;gt;* REFERENCE INTO lr_f_cost.

    ENDLOOP.

  ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see I personally prefer pointers to field symbols - I don't believe there is any performance differences and because of my background in other languages pointers make more sense to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Graham Robbo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Dec 2010 20:55:53 GMT</pubDate>
    <dc:creator>GrahamRobbo</dc:creator>
    <dc:date>2010-12-06T20:55:53Z</dc:date>
    <item>
      <title>problem reading data from nested internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-reading-data-from-nested-internal-table/m-p/2462965#M552791</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;Below is my code;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*********&lt;STRONG&gt;SAP Code&lt;/STRONG&gt;********&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF v54a0_scdd,&lt;/P&gt;&lt;P&gt;         fknum  LIKE vfkk-fknum,&lt;/P&gt;&lt;P&gt;         change LIKE vfkkd-updkz,&lt;/P&gt;&lt;P&gt;         x      TYPE v54a0_scd,&lt;/P&gt;&lt;P&gt;         y      TYPE v54a0_scd,&lt;/P&gt;&lt;P&gt;         tvtf   LIKE tvtf,&lt;/P&gt;&lt;P&gt;       END OF v54a0_scdd.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;SCD table for dialog&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;TYPES: v54a0_scdd_tab TYPE v54a0_scdd OCCURS 1.&lt;/P&gt;&lt;P&gt;*********&lt;STRONG&gt;SAP Code&lt;/STRONG&gt;********&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;STRONG&gt;Custom declaration&lt;/STRONG&gt;*****&lt;/P&gt;&lt;P&gt;data: wa_freight_costs type v54a0_scdd_tab.&lt;/P&gt;&lt;P&gt;data: it_freight_costs type v54a0_scdd_tab occurs 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*****Here data is getting appended to it_freight_costs. P_frieght_costs is coming from standard program.&lt;/P&gt;&lt;P&gt;     move p_freight_costs TO wa_FREIGHT_COSTS.&lt;/P&gt;&lt;P&gt;     append wa_freight_costs to it_freight_costs.&lt;/P&gt;&lt;P&gt;     clear wa_freight_costs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***Now the problem is here. I am not able to read the data from the nested internal table x-item. &lt;/P&gt;&lt;P&gt;if i use &amp;lt;fs_f_costs&amp;gt; to move data from it_freight_costs in the outer loop, i get a syntax error; &amp;lt;i&amp;gt; "the line type of the table it_freight_costs is not compatible with field symbol type &amp;lt;fs_f_costs&amp;gt;" &amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;     FIELD-SYMBOLS: &amp;lt;fs_f_costs&amp;gt; type line of v54a0_scdd_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      LOOP AT it_freight_costs assigning &amp;lt;fs_f_costs&amp;gt;.&lt;/P&gt;&lt;P&gt;          LOOP AT &amp;lt;fs_f_costs&amp;gt;-x-item ASSIGNING &amp;lt;fs_freight_item&amp;gt;.         &lt;/P&gt;&lt;P&gt;              &amp;lt;b&amp;gt; I want to read &amp;lt;fs_freight_item&amp;gt;-vfkp-netwr.&amp;lt;/b&amp;gt;  &lt;/P&gt;&lt;P&gt;         ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone guide me?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2007 18:44:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-reading-data-from-nested-internal-table/m-p/2462965#M552791</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-28T18:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: problem reading data from nested internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-reading-data-from-nested-internal-table/m-p/2462966#M552792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should move &amp;lt;b&amp;gt;&amp;lt;fs_f_costs&amp;gt;-x&amp;lt;/b&amp;gt; to a new internal table and then read &amp;lt;b&amp;gt;item&amp;lt;/b&amp;gt; from that IT....Then you could assign values to the FS....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Blag.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2007 18:57:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-reading-data-from-nested-internal-table/m-p/2462966#M552792</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-28T18:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: problem reading data from nested internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-reading-data-from-nested-internal-table/m-p/2462967#M552793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please note that TYPE v54a0_scdd_tab is already an internal table type. Instead of try to declare your custom declarations as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;STRONG&gt;Custom declaration&lt;/STRONG&gt;*****&lt;/P&gt;&lt;P&gt;data: wa_freight_costs type v54a0_scdd.&lt;/P&gt;&lt;P&gt;data: it_freight_costs type v54a0_scdd occurs 0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2007 21:44:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-reading-data-from-nested-internal-table/m-p/2462967#M552793</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-28T21:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: problem reading data from nested internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-reading-data-from-nested-internal-table/m-p/2462968#M552794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Blag. But as i said i am getting the sytax error at the outer loop itself. Once i pass this only then i can think about the second loop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2007 23:26:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-reading-data-from-nested-internal-table/m-p/2462968#M552794</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-28T23:26:17Z</dc:date>
    </item>
    <item>
      <title>Re: problem reading data from nested internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-reading-data-from-nested-internal-table/m-p/2462969#M552795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tried this one. in this case when i am trying to &amp;lt;b&amp;gt;append&amp;lt;/b&amp;gt; the data to it_freight_costs, during the runtime it is giving me a dump which says &amp;lt;b&amp;gt;&amp;lt;i&amp;gt;conversion from V54A0_SCDD_TAB to V54A0_SCDD is not supported.&amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2007 23:30:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-reading-data-from-nested-internal-table/m-p/2462969#M552795</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-28T23:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: problem reading data from nested internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-reading-data-from-nested-internal-table/m-p/2462970#M552796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Dec 2010 16:15:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-reading-data-from-nested-internal-table/m-p/2462970#M552796</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-06T16:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: problem reading data from nested internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-reading-data-from-nested-internal-table/m-p/2462971#M552797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A quick look at how I would do this. Note I haven't checked if this compiles just done a quick brain-dump.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  DATA: lr_f_costs TYPE REF TO v54a0_scdd_tab,
        lr_f_cost TYPE REF TO v54a0_scdd.

  LOOP AT it_freight_costs REFERENCE INTO lr_f_costs.
    LOOP AT lr_f_costs-&amp;gt;* REFERENCE INTO lr_f_cost.

    ENDLOOP.

  ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see I personally prefer pointers to field symbols - I don't believe there is any performance differences and because of my background in other languages pointers make more sense to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Graham Robbo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Dec 2010 20:55:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-reading-data-from-nested-internal-table/m-p/2462971#M552797</guid>
      <dc:creator>GrahamRobbo</dc:creator>
      <dc:date>2010-12-06T20:55:53Z</dc:date>
    </item>
  </channel>
</rss>

