Skip to Content
0
Former Member
May 19, 2010 at 02:03 PM

problem with Loop

23 Views

Hi,

Good evening guys.

ct_claim_item table got two records as well as lt_afvc also got two records. as per condtion, ct_claim_item frist record should be changed. but ct_claim_item two records are changing..plz let me know the where iam doing wrong.

Loop at ct_claim_item into wa_ct_claim_item.
 Loop at lt_afvc into wa_afvc.
   if wa_afvc-wty_ind = 'X'.
     if wa_afvc-larnt = 'HM'.
       wa_ct_claim_item-ITEM_TYPE = 'FR'.
       modify ct_claim_item Index lv_idx from wa_ct_claim_item.
        endif.
      endif.
      clear:wa_afvc,
            wa_ct_claim_item.
    ENDLOOP.
Endloop.

Regards

chandu