Skip to Content
0
Former Member
Nov 26, 2009 at 08:43 AM

problemin read staement

35 Views

hi guriji,

i have writeen one query .

loop at itab.

read table itab2 with key kostl = itab-fictr

hkont = itab-acc_code .

kostl1 = itab2-kostl+6(4).

hkont1 = itab2-hkont+4(6).

if kostl1 = itab-fictr and hkont1 = itab-acc_code.

itab-dmbtr = itab2-dmbtr.

modify itab transporting dmbtr .

clear itab-fictr.

clear itab-acc_code.

clear itab2-dmbtr.

clear itab-dmbtr.

clear kostl1.

clear hkont1.

endif.

when the read statement execute it reads only 2nd line value of itab2. but according to read statement reads whole internal table value.

plz tell me .

thanks.