<?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 while processing internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-processing-internal-table/m-p/3836312#M922517</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;sorry  its  &lt;/P&gt;&lt;P&gt;     move i_konv1-kwert to i_final-comm .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 May 2008 14:09:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-14T14:09:35Z</dc:date>
    <item>
      <title>problem while processing internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-processing-internal-table/m-p/3836311#M922516</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 to read 2 line item of same invoice no&lt;/P&gt;&lt;P&gt;for  eg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IN_NO      !    MAT          !      AMT&lt;/P&gt;&lt;P&gt; XYZ         !    MAT1       !     125&lt;/P&gt;&lt;P&gt;XYZ         !     MAT2       !     325&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In o/p its display only 325 for both line items&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used this statement for readiing..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at i_final &lt;/P&gt;&lt;P&gt; loop at i_itab1 where knumv = i_final-knumv.&lt;/P&gt;&lt;P&gt;       move i_itab1-kwert to i_vbtab-comm .&lt;/P&gt;&lt;P&gt;       clear i_itab1-kwert.&lt;/P&gt;&lt;P&gt;       endloop.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In debuging i have determine that both first line item&lt;/P&gt;&lt;P&gt;amt is coming in header line but while coming in body.&lt;/P&gt;&lt;P&gt;I become the second line item amt&lt;/P&gt;&lt;P&gt;Can any one help me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 14:07:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-processing-internal-table/m-p/3836311#M922516</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-14T14:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: problem while processing internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-processing-internal-table/m-p/3836312#M922517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;sorry  its  &lt;/P&gt;&lt;P&gt;     move i_konv1-kwert to i_final-comm .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 14:09:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-processing-internal-table/m-p/3836312#M922517</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-14T14:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: problem while processing internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-processing-internal-table/m-p/3836313#M922518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess my last suggestion would not be right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So is i_final the table with the wrong input? How should it look at the end&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ramiro Escamilla on May 14, 2008 9:20 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 14:10:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-processing-internal-table/m-p/3836313#M922518</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-14T14:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: problem while processing internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-processing-internal-table/m-p/3836314#M922519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;sorry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the code which i used for reading is like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at i_final&lt;/P&gt;&lt;P&gt; loop at i_itab1 where knumv = i_final-knumv.&lt;/P&gt;&lt;P&gt;       move i_itab1-kwert to i_final-comm .&lt;/P&gt;&lt;P&gt;       clear i_itab1-kwert.&lt;/P&gt;&lt;P&gt;       endloop.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 14:29:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-processing-internal-table/m-p/3836314#M922519</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-14T14:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: problem while processing internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-processing-internal-table/m-p/3836315#M922520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are writing output from i_vbtab, at some point you will need to APPEND information to it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 14:29:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-processing-internal-table/m-p/3836315#M922520</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-14T14:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: problem while processing internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-processing-internal-table/m-p/3836316#M922521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You still are not MODIFYing the table if you intend to write it later&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
loop at i_final
  loop at i_itab1 where knumv = i_final-knumv.
    move i_itab1-kwert to i_final-comm .
*   clear i_itab1-kwert.  "&amp;lt;== No need for this at all
  endloop.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additionally, you're moving to your primary loop table.  Never going to see two for it unless you write to a 3rd table or&lt;/P&gt;&lt;P&gt;replace the CLEAR with a WRITE:/ .......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Paul Chapman on May 14, 2008 10:35 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 14:33:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-processing-internal-table/m-p/3836316#M922521</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-14T14:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: problem while processing internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-processing-internal-table/m-p/3836317#M922522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is knumv the only common key between the two?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what about that MAT in itab1?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the structure of i_final?&lt;/P&gt;&lt;P&gt;If the only common key they have is knumv of course you will always get 325 with that logic, because you loop to the last row in itab1 and that is the last record to update the header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Post the structure of both tables and how should both look like at the end. Your first post doesn´t make to much sense&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 14:34:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-processing-internal-table/m-p/3836317#M922522</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-14T14:34:32Z</dc:date>
    </item>
  </channel>
</rss>

