<?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: Loop in retiving data in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-in-retiving-data/m-p/2153088#M454697</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Satish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you are thinking is absolutely correct......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
LOOP AT HEADER_TABLE.

LOOP AT ITEM_TABLE WHERE (map all the key fields so that you have only one line item every pass of loop at item_table per 1 header detail)

**write your logic here....

ENDLOOP.

ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is Helpful......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Kunjal Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Apr 2007 08:13:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-04T08:13:32Z</dc:date>
    <item>
      <title>Loop in retiving data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-in-retiving-data/m-p/2153078#M454687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi frnds,&lt;/P&gt;&lt;P&gt;               Suppose i hav 10 Purchase orders and perr PO i hav 10 line items.&lt;/P&gt;&lt;P&gt;                  so frnds can anyone tell me how to retive data using this.&lt;/P&gt;&lt;P&gt;                   like i guess we can use loop within a loop .&lt;/P&gt;&lt;P&gt;                     can we loop at header and read the item data. Just give me necessary help frnds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; regards,&lt;/P&gt;&lt;P&gt; satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2007 03:34:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-in-retiving-data/m-p/2153078#M454687</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-03T03:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: Loop in retiving data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-in-retiving-data/m-p/2153079#M454688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;instead of loop inside a loop use read inside a loop . it gives a gd performance and also solves  the purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;syntax is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab1 into wa_itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table itab2 with key itab2-field = itab1-field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do somethn&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;hopen ths helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;navjhot&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward accordingly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2007 03:39:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-in-retiving-data/m-p/2153079#M454688</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-03T03:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: Loop in retiving data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-in-retiving-data/m-p/2153080#M454689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Satish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Say you have 2 internal tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. For header data  -&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;i_header&lt;/P&gt;&lt;P&gt;2.Line item data   -&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt;i_lineitem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take one temp internal table------i_temp like header internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i_tem[]  = i_header[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sort i_temp by your key fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Delete adjacent duplicates from i_temp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at i_temp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at i_line item where your key fields conditions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    here you can move header and line items data here to final internal table.&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;  Clear i_temp.&lt;/P&gt;&lt;P&gt;   Free i_temp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Pls. reward if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2007 03:56:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-in-retiving-data/m-p/2153080#M454689</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-03T03:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: Loop in retiving data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-in-retiving-data/m-p/2153081#M454690</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;&amp;lt;b&amp;gt;If you are talking about retrieving EKKO and EKPO data from database, you&lt;/P&gt;&lt;P&gt;can use JOIN.&amp;lt;/b&amp;gt; See this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*----------------------------------------------------------------------*
*----------------------------------------------------------------------*

TABLES: ekko.

SELECT-OPTIONS: s_ebeln FOR ekko-ebeln.

DATA: BEGIN OF lit_podata OCCURS 0,
        ebeln LIKE ekpo-ebeln,
        ebelp LIKE ekpo-ebelp,
        matnr LIKE ekpo-matnr,
        netwr LIKE ekpo-netwr,
        navnw LIKE ekpo-navnw,
        bukrs LIKE ekko-bukrs,
        bsart LIKE ekko-bsart,
        lifnr LIKE ekko-lifnr,
        ekorg LIKE ekko-ekorg,
      END OF lit_podata.

SELECT
      a~ebeln
      a~ebelp
      a~netwr
      a~navnw
      a~matnr
      b~bukrs
      b~bsart
      b~lifnr
      b~ekorg FROM ekpo AS a
              INNER JOIN ekko AS b
              ON a~ebeln = b~ebeln
              INTO TABLE lit_podata
        WHERE b~ebeln IN s_ebeln.
*----------------------------------------------------------------------*
*----------------------------------------------------------------------*&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;If you are talking about processing internal table having EKKO and EKPO data then check this code.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*----------------------------------------------------------------------*
*----------------------------------------------------------------------*
DATA: lit_ekko LIKE ekko OCCURS 0 WITH HEADER LINE,
      lit_ekpo LIKE ekpo OCCURS 0 WITH HEADER LINE.

*" Get PO header data in lit_ekko
*" Get PO line item data in lit_ekpo

SORT: lit_ekko BY ebeln,
      lit_ekpo BY ebeln
                  ebelp.

LOOP AT lit_ekpo.

  READ TABLE lit_ekko WITH KEY ebeln = lit_ekpo-ebeln
                      BINARY SEARCH.

  IF sy-subrc = 0.

*"  Carry out your logic based on lit_ekpo, lit_ekko data

  ENDIF.

ENDLOOP.
*----------------------------------------------------------------------*
*----------------------------------------------------------------------*&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you have any question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2007 03:58:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-in-retiving-data/m-p/2153081#M454690</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-03T03:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: Loop in retiving data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-in-retiving-data/m-p/2153082#M454691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sathish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sort the ITAB1 &amp;amp; ITAB2  by Purchase Order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at ITAB2.&lt;/P&gt;&lt;P&gt;  At new Purchase order&lt;/P&gt;&lt;P&gt;      Read table ITAB1 with key Purchase order = ITAB2-Purchase order&lt;/P&gt;&lt;P&gt;                                 Binary search.&lt;/P&gt;&lt;P&gt;  endat.&lt;/P&gt;&lt;P&gt;  ......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2007 04:58:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-in-retiving-data/m-p/2153082#M454691</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-03T04:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: Loop in retiving data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-in-retiving-data/m-p/2153083#M454692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi..satish..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; this will stop u from loop within loop but acheives result...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lets say, itab::PO &lt;/P&gt;&lt;P&gt;              gtab::line items&lt;/P&gt;&lt;P&gt;              htab::result&lt;/P&gt;&lt;P&gt;data: w_flag type c value '0'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab into wa1.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  while w_flag eq '0'.&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;    read table gtab with key PO = wa1-PO into wa2.&lt;/P&gt;&lt;P&gt;    if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;       htab-PO = wa1-PO.&lt;/P&gt;&lt;P&gt;       htab-LINE = wa2-LINEITEM.&lt;/P&gt;&lt;P&gt;       append htab.&lt;/P&gt;&lt;P&gt;       delete gtab index sy-tabix.&lt;/P&gt;&lt;P&gt;    else.&lt;/P&gt;&lt;P&gt;      w_flag = '1'.&lt;/P&gt;&lt;P&gt;   endif.&lt;/P&gt;&lt;P&gt; endwhile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w_flag = '0'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2007 05:18:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-in-retiving-data/m-p/2153083#M454692</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-03T05:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: Loop in retiving data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-in-retiving-data/m-p/2153084#M454693</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;be clear with your requirement..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u are going to retrieve data from data base ... then u can use &amp;lt;b&amp;gt;JOIN in SELECT statement !!&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;between the header table and item table ...&lt;/P&gt;&lt;P&gt;as RS suggested !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if u want process the retrieved data between two internal tables .. then Use &amp;lt;b&amp;gt;Read statement inside the LOOP  of the Header table, for the item table&amp;lt;/b&amp;gt;..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this increases ur performance !!!!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Plz do remember to close the thread , when ur problem is solved!!&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward all helpful answers,&lt;/P&gt;&lt;P&gt;sai ramesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2007 05:32:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-in-retiving-data/m-p/2153084#M454693</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-03T05:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: Loop in retiving data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-in-retiving-data/m-p/2153085#M454694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi frnds,&lt;/P&gt;&lt;P&gt;               Thanks for ur replies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                  In my query can anyone tell me shuld we loop at item internal table or header internal table.&lt;/P&gt;&lt;P&gt;Thnks and regards,&lt;/P&gt;&lt;P&gt;satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2007 07:10:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-in-retiving-data/m-p/2153085#M454694</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-04T07:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: Loop in retiving data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-in-retiving-data/m-p/2153086#M454695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any help frnds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks and regards,&lt;/P&gt;&lt;P&gt;satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2007 07:46:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-in-retiving-data/m-p/2153086#M454695</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-04T07:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: Loop in retiving data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-in-retiving-data/m-p/2153087#M454696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;loop the item internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex:&lt;/P&gt;&lt;P&gt;sort it_head by ebeln.&lt;/P&gt;&lt;P&gt;sort it_item by ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_item.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; read it_head with key ebeln = it_item-ebeln binary search.&lt;/P&gt;&lt;P&gt; if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2007 08:08:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-in-retiving-data/m-p/2153087#M454696</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-04T08:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: Loop in retiving data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-in-retiving-data/m-p/2153088#M454697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Satish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you are thinking is absolutely correct......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
LOOP AT HEADER_TABLE.

LOOP AT ITEM_TABLE WHERE (map all the key fields so that you have only one line item every pass of loop at item_table per 1 header detail)

**write your logic here....

ENDLOOP.

ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is Helpful......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Kunjal Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2007 08:13:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-in-retiving-data/m-p/2153088#M454697</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-04T08:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: Loop in retiving data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-in-retiving-data/m-p/2153089#M454698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sort ithead by ebeln.&lt;/P&gt;&lt;P&gt;sort ititem by ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at ititem.&lt;/P&gt;&lt;P&gt;write : / ititem-ebeln, ititem-matnr, ititem-menge.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table itheader with key ebeln = ititem-ebeln.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;write : ithead-lifnr.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;since the hedaer data is same for all the items and ebeln is the only primary key in ekko as here you have to loop at item and read header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2007 08:19:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-in-retiving-data/m-p/2153089#M454698</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-04T08:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: Loop in retiving data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-in-retiving-data/m-p/2153090#M454699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank u frnds For ur replies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So is it mandatory that we shuld always go for looping at item and reading the header data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just can anyone tell wht is the requirement that when will we go for looping header and when will we go for looping at item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THis will solve my query and so that i can close the thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks u all again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2007 08:43:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-in-retiving-data/m-p/2153090#M454699</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-04T08:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: Loop in retiving data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-in-retiving-data/m-p/2153091#M454700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;actually it depends on the data you have in your itab..&lt;/P&gt;&lt;P&gt;because read statement only read the first row when it meets the criterion with key addition ,.. here ebeln is unique for header table.. so if you are reading header table means you are getting one and only one row by this and it is satisfying your requirement... generally for one header data there may be lots of item so you have to loop at item and the same header data for those items by passing the primary key..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2007 08:48:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-in-retiving-data/m-p/2153091#M454700</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-04T08:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: Loop in retiving data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-in-retiving-data/m-p/2153092#M454701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Reading item data inside a loop is time consuming compare to header data.&lt;/P&gt;&lt;P&gt;You can use Read statement to fetch header data, but you have to use loop to read item data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2007 08:48:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-in-retiving-data/m-p/2153092#M454701</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-04T08:48:44Z</dc:date>
    </item>
  </channel>
</rss>

