<?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: looping in Internal table. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/looping-in-internal-table/m-p/9146368#M1709956</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a ton Aswatha....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 16 Dec 2012 04:08:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-12-16T04:08:49Z</dc:date>
    <item>
      <title>looping in Internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/looping-in-internal-table/m-p/9146366#M1709954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12px; background-color: #f8f8f8; color: #333333;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="color: #333333; font-style: inherit; font-size: 12px; font-family: inherit;"&gt;Hi &lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Experts&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-style: inherit; font-size: 12px; font-family: inherit;"&gt; &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #f8f8f8; color: #333333;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;'m new in abap kindly help me to write the syntax of step 5.(looping of itab only).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H1 style="margin: 13px 0 10px; font-weight: normal; font-size: 2em; background-color: #f8f8f8; color: #333333;"&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;START-OF-SELECTION&lt;/SPAN&gt;&lt;/H1&gt;&lt;P style="font-size: 12px; background-color: #f8f8f8; color: #333333;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; text-decoration: underline;"&gt;Pseudo Code:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #f8f8f8; color: #333333;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; text-decoration: underline;"&gt;STEP 1.(&lt;/STRONG&gt; &lt;STRONG style="font-style: inherit; font-family: inherit; text-decoration: underline;"&gt;Retrieving all the Billing Documents based on the selection screen parameters)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="font-style: inherit; font-size: 11pt; font-family: inherit;"&gt;Selecting the Document numbers (VBELN),&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; background-color: #f8f8f8; color: #333333;"&gt;&amp;nbsp; &lt;SPAN style="font-style: inherit; font-size: 11pt; font-family: inherit;"&gt;Billing Type (FKART), &lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN style="padding-left: 112.5px; color: #333333; font-size: 11pt; font-style: inherit; background-color: #f8f8f8; font-family: inherit;"&gt;Billing category (FKTYP),&lt;/SPAN&gt;&lt;SPAN style="padding-left: 112.5px; color: #333333; font-size: 11pt; font-style: inherit; background-color: #f8f8f8; font-family: inherit;"&gt;SD document category (VBTYP),&lt;/SPAN&gt;&lt;SPAN style="padding-left: 112.5px; color: #333333; font-size: 11pt; font-style: inherit; background-color: #f8f8f8; font-family: inherit;"&gt;SD document currency (WAERK),&lt;/SPAN&gt;&lt;SPAN style="padding-left: 112.5px; color: #333333; font-size: 11pt; font-style: inherit; background-color: #f8f8f8; font-family: inherit;"&gt;Sales Organization (VKORG),&lt;/SPAN&gt;&lt;SPAN style="padding-left: 112.5px; color: #333333; font-size: 11pt; font-style: inherit; background-color: #f8f8f8; font-family: inherit;"&gt;Billing Date (FKDAT),&lt;/SPAN&gt;&lt;SPAN style="padding-left: 112.5px; color: #333333; font-size: 11pt; font-style: inherit; background-color: #f8f8f8; font-family: inherit;"&gt;Net value in document currency (NETWR)&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 11pt; font-style: inherit; background-color: #f8f8f8; font-family: inherit;"&gt;From the table VBRK into the internal table T_VBRK against the Sales organization (P_VKORG), Billing date (S_FKDAT), Billing type (S_FKART) entered in the selection screen.&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12pt; font-style: inherit; background-color: #f8f8f8; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="font-style: inherit; font-size: 10.5pt; font-family: inherit;"&gt;If the Select statement is successful (i.e. if SY-SUBRC = 0.)&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="font-style: inherit; font-size: 10.5pt; font-family: inherit;"&gt;Sort the internal table T_VBRK by Document number (VBELN) and Billing Type&amp;nbsp;&amp;nbsp;&amp;nbsp; (FKART).&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;OL style="padding: 0 0 0 2em; font-size: 12px; background-color: #f8f8f8; list-style: upper-alpha; color: #333333;"&gt;&lt;LI&gt;&lt;SPAN style="font-style: inherit; font-size: 10.5pt; font-family: inherit;"&gt;ELSE.&lt;/SPAN&gt;&lt;UL&gt;&lt;LI style="margin-top: 0.5ex; margin-bottom: 0.5ex; font-style: inherit; font-family: inherit; list-style-type: inherit;"&gt;&lt;SPAN style="font-style: inherit; font-size: 10.5pt; font-family: inherit;"&gt;It displays an information message “No Data found”.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; background-color: #f8f8f8; color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; background-color: #f8f8f8; color: #333333;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; text-decoration: underline;"&gt;STEP 2. (Retrieving all the Bill to Parties against the Document Numbers)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; background-color: #f8f8f8; color: #333333;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="font-style: inherit; font-size: 10.5pt; font-family: inherit;"&gt;Check the internal table T_VBRK is not BLANK.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-style: inherit; font-size: 10.5pt; font-family: inherit;"&gt;Select&amp;nbsp; the Document numbers (VBELN),&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; background-color: #f8f8f8; color: #333333;"&gt;&amp;nbsp; &lt;SPAN style="font-style: inherit; font-size: 10.5pt; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Bill to Parties (KUNNR), &lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 10.5pt; font-style: inherit; background-color: #f8f8f8; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Partner Functions (PAEVW)&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 10.5pt; font-style: inherit; background-color: #f8f8f8; font-family: inherit;"&gt;from the table VBPA into an internal table T_VBPA for all entries in the internal table T_VBRK, against the Document numbers (S_VBELN), Customer (S_KUNNR) entered in the selection screen, and the Document category = C_S_RE (‘RE’)&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; background-color: #f8f8f8; color: #333333;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="font-style: inherit; font-size: 10.5pt; font-family: inherit;"&gt;If the select statement is successful (i.e. if SY-SUBRC = 0.)&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 10.5pt; font-style: inherit; background-color: #f8f8f8; font-family: inherit;"&gt;Sort the internal table T_VBPA by Document Number (VBELN) and Customer (KUNNR).&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; background-color: #f8f8f8; color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; background-color: #f8f8f8; color: #333333;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; text-decoration: underline;"&gt;STEP 3. (Retrieving all the Bill to Party Description)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; background-color: #f8f8f8; color: #333333;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="font-style: inherit; font-size: 10.5pt; font-family: inherit;"&gt;Check the internal table T_VBPA is not BLANK.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="font-style: inherit; font-size: 10.5pt; font-family: inherit;"&gt;Select the Customer (KUNNR),&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; background-color: #f8f8f8; color: #333333;"&gt;&amp;nbsp; &lt;SPAN style="font-style: inherit; font-size: 10.5pt; font-family: inherit;"&gt;Customer Name (NAME1) &lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 10.5pt; font-style: inherit; background-color: #f8f8f8; font-family: inherit;"&gt;From KNA1 into the internal table T_KNA1 for all entries in he internal table T_VBPA against the KUNNR equal to T_VBPA-KUNNR.&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; background-color: #f8f8f8; color: #333333;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="font-style: inherit; font-size: 10.5pt; font-family: inherit;"&gt;If the select statement is successful (i.e. if SY-SUBRC = 0.)&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 10.5pt; font-style: inherit; background-color: #f8f8f8; font-family: inherit;"&gt;Sort the internal table T_KNA1 by Customer (KUNNR).&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; background-color: #f8f8f8; color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; background-color: #f8f8f8; color: #333333;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; text-decoration: underline;"&gt;STEP 4. (Retrieving all the Billing Document Type Text)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; background-color: #f8f8f8; color: #333333;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="font-style: inherit; font-size: 10.5pt; font-family: inherit;"&gt;Check the internal table TVFKT is not BLANK.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="font-style: inherit; font-size: 10.5pt; font-family: inherit;"&gt;Select the Billing type (FKART),&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; background-color: #f8f8f8; color: #333333;"&gt;&amp;nbsp; &lt;SPAN style="font-style: inherit; font-size: 10.5pt; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Billing document text (VTEXT) &lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 10.5pt; font-style: inherit; background-color: #f8f8f8; font-family: inherit;"&gt;From TVFKT into the internal table T_TVFKT for all the entries in the internal table&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; T_VBRK against the billing type of T_VBRK-FKART.&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; background-color: #f8f8f8; color: #333333;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="font-style: inherit; font-size: 10.5pt; font-family: inherit;"&gt;If the select statement is successful (i.e. if SY-SUBRC = 0.)&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="font-style: inherit; font-size: 10.5pt; font-family: inherit;"&gt;Sort the internal table T_KNA1 by Billing Type (FKART).&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; background-color: #f8f8f8; color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; background-color: #f8f8f8; color: #333333;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; text-decoration: underline;"&gt;STEP 5.(&lt;/STRONG&gt; &lt;STRONG style="font-style: inherit; font-family: inherit; text-decoration: underline;"&gt;Gather all the selected Data for further calculation)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; background-color: #f8f8f8; color: #333333;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="font-style: inherit; font-size: 10.5pt; font-family: inherit;"&gt;Loop at the internal table T_VBRK,&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; background-color: #f8f8f8; color: #333333;"&gt;&amp;nbsp; Ø &lt;SPAN style="font-style: inherit; font-size: 10.5pt; font-family: inherit;"&gt;While looping at this table (T_VBRK_VBPA) read the internal table T_VBPA to get the Bill to party and move it to the internal table T_VBRK_VBPA.&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; background-color: #f8f8f8; color: #333333;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="font-style: inherit; font-size: 10.5pt; font-family: inherit;"&gt;Read the internal table T_KNA1 to retrieve the bill to party description based on the customer number (KUNNR).Append it to the internal table T_VBRK_VBPA.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; background-color: #f8f8f8; color: #333333;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="font-style: inherit; font-size: 10.5pt; font-family: inherit;"&gt;ENDLOOP.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="font-style: inherit; font-size: 10.5pt; font-family: inherit;"&gt;Check if the internal table T_VBRK_VBPA[] is not BLANK&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="font-style: inherit; font-size: 10.5pt; font-family: inherit;"&gt;Select Document Number (VBELN),&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="text-indent: 85.05pt; color: #333333; font-size: 10.5pt; font-style: inherit; background-color: #f8f8f8; font-family: inherit;"&gt;Item Number (POSNR),&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 10.5pt; font-style: inherit; background-color: #f8f8f8; font-family: inherit;"&gt;Quantity (FKIMG),&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 10.5pt; font-style: inherit; background-color: #f8f8f8; font-family: inherit;"&gt;Units of Measurement (MEINS)&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 10.5pt; font-style: inherit; background-color: #f8f8f8; font-family: inherit;"&gt;Net value (NETWR),&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 10.5pt; font-style: inherit; background-color: #f8f8f8; font-family: inherit;"&gt;Material Number (MATNR)&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 10.5pt; font-style: inherit; background-color: #f8f8f8; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Material description (ARKTX)&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 10.5pt; font-style: inherit; background-color: #f8f8f8; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; From VBRP into the internal table T_VBRP&lt;/SPAN&gt;&lt;SPAN style="padding-left: 90px; color: #333333; font-size: 10.5pt; font-style: inherit; background-color: #f8f8f8; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for all the entries in the internal table T_VBRK_VBPA and the material entered in the selection screen (S_MATNR).&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; background-color: #f8f8f8; color: #333333;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="font-style: inherit; font-size: 10.5pt; font-family: inherit;"&gt;If the select statement is successful (i.e. if SY-SUBRC = 0.)&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P style="font-size: 12px; background-color: #f8f8f8; color: #333333;"&gt;&lt;SPAN style="font-style: inherit; font-size: 10.5pt; font-family: inherit;"&gt;Sort the internal table T_VBRP by Document Number (VBELN).&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #f8f8f8; color: #333333;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #f8f8f8; color: #333333;"&gt;Regards&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #f8f8f8; color: #333333;"&gt;Goutam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Dec 2012 12:59:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/looping-in-internal-table/m-p/9146366#M1709954</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-12-15T12:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: looping in Internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/looping-in-internal-table/m-p/9146367#M1709955</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;LOOP AT t_vbrk INTO wa_vbrk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE t_vbpa INTO wa_vbpa WITH KEY (write your conditons here).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_vbrk_vbpa-bill_to_party = wa_vbpa-bill_to_party.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE t_kna1 INTO wa_kna1 WITH KEY kunnr = wa_vbrk-kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_vbrk_vbpa-bill_toparty_descr = wa_kna1-biltoparty_descr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND wa_vbrk_vbpa TO t_vbrk_vbpa.&lt;/P&gt;&lt;P&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;Look here and based on this do the looping. You have the better idea of the fields you require. Refer this for syntax of how to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Dec 2012 16:46:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/looping-in-internal-table/m-p/9146367#M1709955</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-12-15T16:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: looping in Internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/looping-in-internal-table/m-p/9146368#M1709956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a ton Aswatha....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Dec 2012 04:08:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/looping-in-internal-table/m-p/9146368#M1709956</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-12-16T04:08:49Z</dc:date>
    </item>
  </channel>
</rss>

