<?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: Deep stracture problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/deep-stracture-problem/m-p/6925206#M1484895</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are just looking to compare one record by record, instead of nested loops you must be using a read statement on the second internal table with a common key field between the two internal tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
loop at lv_afvc into wa
 if wa-larnt = 'hm'.
 if wa_wty_ind = 'x'.
read table ct_claim into wa1 with key field = wa-field.
if sy-subrc = 0.
   wa1-item_type = 'fr'.
   modify ct_claim from wa1.
endif.
endif.
endif.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikranth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 May 2010 09:15:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-05-20T09:15:19Z</dc:date>
    <item>
      <title>Deep stracture problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deep-stracture-problem/m-p/6925205#M1484894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Good day guys&lt;/P&gt;&lt;P&gt;Ive got a two tables one which is lt_afvc and another is ct_claim. ct_claim is deep stracture.&lt;/P&gt;&lt;P&gt;each one got two records. i need to check one by one records.&lt;/P&gt;&lt;P&gt;ive got a prob when looping the second record with ct_claim. ive put the exit after modify first record .bcoz i need to check one record by record. after exit the second loop, its goes the first loop for the second record, it pass the second record then comes to second loop. here my prob starts. bcoz here ct_claim passes the again first record instead of second record. how to check record by record.&lt;/P&gt;&lt;P&gt;Ive tried with index.but it doesnt workout.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
loop at lv_afvc into wa
 if wa-larnt = 'hm'.
 if wa_wty_ind = 'x'.
  loop ct_claim into wa1
   wa1-item_type = 'fr'.
   modify ct_claim from wa1.
  exit.
 endloop.
endloop
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;could u plz any one give me guide?&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Chandu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 May 2010 09:08:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deep-stracture-problem/m-p/6925205#M1484894</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-20T09:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: Deep stracture problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deep-stracture-problem/m-p/6925206#M1484895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are just looking to compare one record by record, instead of nested loops you must be using a read statement on the second internal table with a common key field between the two internal tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
loop at lv_afvc into wa
 if wa-larnt = 'hm'.
 if wa_wty_ind = 'x'.
read table ct_claim into wa1 with key field = wa-field.
if sy-subrc = 0.
   wa1-item_type = 'fr'.
   modify ct_claim from wa1.
endif.
endif.
endif.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikranth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 May 2010 09:15:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deep-stracture-problem/m-p/6925206#M1484895</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-20T09:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: Deep stracture problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deep-stracture-problem/m-p/6925207#M1484896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you for reply. if you go read statement.. its reads the first record..wht about second record.&lt;/P&gt;&lt;P&gt;ct_claim_item got two records&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;chandu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 May 2010 09:32:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deep-stracture-problem/m-p/6925207#M1484896</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-20T09:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: Deep stracture problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deep-stracture-problem/m-p/6925208#M1484897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;       My perception is that you are having problem in handling inner loop.&lt;/P&gt;&lt;P&gt;       Your outer loop runs by sequnce 1 2... n then for the 1st record your inner loop starts with 1st record.&lt;/P&gt;&lt;P&gt;       but for the 2nd record of outer loop your inner loop should start with 2nd record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       If this is the case then you should store the sy-tabix value inside the inner loop and then start &lt;/P&gt;&lt;P&gt;       your inner loop from that index onwards. This can be coded as below..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      data l_t type sy-tabix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       loop at lv_afvc into wa&lt;/P&gt;&lt;P&gt;         if wa-larnt = 'hm'.&lt;/P&gt;&lt;P&gt;          if wa_wty_ind = 'x'.&lt;/P&gt;&lt;P&gt;           loop ct_claim into wa1 from l_t&lt;/P&gt;&lt;P&gt;               l_t = sy-tabix.&lt;/P&gt;&lt;P&gt;               wa1-item_type = 'fr'.&lt;/P&gt;&lt;P&gt;               modify ct_claim from wa1.&lt;/P&gt;&lt;P&gt;                exit.&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>Thu, 20 May 2010 09:47:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deep-stracture-problem/m-p/6925208#M1484897</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-20T09:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: Deep stracture problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deep-stracture-problem/m-p/6925209#M1484898</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;Try like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at lv_afvc into wa&lt;/P&gt;&lt;P&gt; if wa-larnt = 'hm'.&lt;/P&gt;&lt;P&gt; if wa_wty_ind = 'x'.&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;loop ct_claim into wa1 where item_type NE 'fr'&lt;/STRONG&gt;.    "  &lt;EM&gt;I made the chage to this line only&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;   wa1-item_type = 'fr'.&lt;/P&gt;&lt;P&gt;   modify ct_claim from wa1.&lt;/P&gt;&lt;P&gt;  exit.&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Smart&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 May 2010 09:51:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deep-stracture-problem/m-p/6925209#M1484898</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-20T09:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: Deep stracture problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deep-stracture-problem/m-p/6925210#M1484899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thts wrong condtion as per spec. i need to check record by record with two tables then modify..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for reply.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 May 2010 10:02:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deep-stracture-problem/m-p/6925210#M1484899</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-20T10:02:20Z</dc:date>
    </item>
  </channel>
</rss>

