<?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 internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1676790#M298466</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 have internal table having BELNR in one column and WRBTR in another column. now i want to append these records in another internal table but i want that till BELNR contain same value , WRBTR should be placed in next column on same row. when BELNR changes then new row should be started.&lt;/P&gt;&lt;P&gt;i am stuck here..&lt;/P&gt;&lt;P&gt;thanks..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Nov 2006 10:30:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-09T10:30:32Z</dc:date>
    <item>
      <title>internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1676790#M298466</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 have internal table having BELNR in one column and WRBTR in another column. now i want to append these records in another internal table but i want that till BELNR contain same value , WRBTR should be placed in next column on same row. when BELNR changes then new row should be started.&lt;/P&gt;&lt;P&gt;i am stuck here..&lt;/P&gt;&lt;P&gt;thanks..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Nov 2006 10:30:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1676790#M298466</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-09T10:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1676791#M298467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;u have to append the record at new belnr only..&lt;/P&gt;&lt;P&gt;otherwise modify that record..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sonika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Nov 2006 10:35:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1676791#M298467</guid>
      <dc:creator>former_member632991</dc:creator>
      <dc:date>2006-11-09T10:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1676792#M298468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sonika..&lt;/P&gt;&lt;P&gt;suppose i have 4 same records in BELNR &amp;amp; so in WRBTR. now i want that on same row as..&lt;/P&gt;&lt;P&gt;BELNR  WRBTR1  WRBTR2  WRBTR3  WRBTR4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Nov 2006 10:43:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1676792#M298468</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-09T10:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1676793#M298469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;U can use the below soln but the assumption is there the final internal table has finite number of columns wof wrbtr for each belnr. Lets they are named as wrbtr1...wrbtr20.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort itab.&lt;/P&gt;&lt;P&gt;Loop at itab.&lt;/P&gt;&lt;P&gt;  at new belnr. &lt;/P&gt;&lt;P&gt;     lindx = 0.&lt;/P&gt;&lt;P&gt;  endat.&lt;/P&gt;&lt;P&gt;  lindx = lindx + 1.&lt;/P&gt;&lt;P&gt;  move itab-belnr to iout-belnr.&lt;/P&gt;&lt;P&gt;  concatenate 'IOUT-WRBTR' lindx into lfield.&lt;/P&gt;&lt;P&gt;  assign (lfield) to &amp;lt;FS&amp;gt;.&lt;/P&gt;&lt;P&gt;  &amp;lt;FS&amp;gt; = itab-wrbtr.&lt;/P&gt;&lt;P&gt;  modify iout.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Nov 2006 10:46:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1676793#M298469</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-09T10:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1676794#M298470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Puru,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find below sample code according to the way I understand your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data: begin of itab1 occurs 0,&lt;/P&gt;&lt;P&gt;        belnr like bseg-belnr,&lt;/P&gt;&lt;P&gt;        wrbtr like bseg-wrbtr,&lt;/P&gt;&lt;P&gt;      end of itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data: itab2 like itab1 occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data: switch(1) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Consider you have all records in itab1 and u want to append itab2 when there is a new belnr.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at new belnr.&lt;/P&gt;&lt;P&gt;switch = 'X'.&lt;/P&gt;&lt;P&gt;endat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if switch = 'X'.&lt;/P&gt;&lt;P&gt;itab2-belnr = itab1-belnr.&lt;/P&gt;&lt;P&gt;itab2-wrbtr = itab1-wrbtr.&lt;/P&gt;&lt;P&gt;append itab2.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;itab2-wrbtr = itab1-wrbtr.&lt;/P&gt;&lt;P&gt;modify itab2 where belnr = itab1-belnr tansporting wrbtr.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;clear switch.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: Please reward points if the solution is helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Harish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Nov 2006 10:48:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1676794#M298470</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-09T10:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1676795#M298471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;l_tabix type sy-tabix.
LOOP AT itab1 into wa.
l_tabix = l_tabix + 1.
ASSIGN COMPONENT l_tabix OF STRUCTURE itab2 TO &amp;lt;fs1&amp;gt;.
IF sy-subrc = 0.
&amp;lt;fs1&amp;gt; = wa-filed1.
ENDIF.
APPEND itab2.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Nov 2006 10:51:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1676795#M298471</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-09T10:51:00Z</dc:date>
    </item>
  </channel>
</rss>

