‎2010 May 19 3:03 PM
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
‎2010 May 19 3:19 PM
Hi,
It´s not clear what do you want... but if you need to change only the first record of ct_claim_item , insert a EXIT command between ENDLOOPs.
And what is lv_idx variable??? Is equal to 1 ??? Take a look on this.
Best regards,
Leandro Mengue
‎2010 May 19 3:15 PM
Hi ,
Solution is within yourself
Please debug and solve it of your own
‎2010 May 19 3:19 PM
Hi,
It´s not clear what do you want... but if you need to change only the first record of ct_claim_item , insert a EXIT command between ENDLOOPs.
And what is lv_idx variable??? Is equal to 1 ??? Take a look on this.
Best regards,
Leandro Mengue
‎2010 May 19 3:21 PM