Skip to Content
0
May 27, 2009 at 12:50 AM

loop problem

12 Views

m using J_1IEXCDTL, J_1IEXCHDR , VBRP tables.

i fetched data from two table J_1IEXCDTL, J_1IEXCHDR. and put into final table using

loop at CHDR.

-


>at place

read tab cdtl with key.....

fianl-f1 = chdr-f1.

-


final-f9 = cdtl-f9.

append final.

clear final.

end loop.

now i have to fetch the data from vbrp into final based on condition

i_vBRP-VBELN = J_1IEXCDTL-RDOC2

AND i_VBRP-MATNR = J_1IEXCDTL-MATNR .

this code is not working

SELECT * FROM VBRP INTO TABLE I_VBRP

WHERE

I_VBRP-VBELN = J_1IEXCDTL-RDOC2 AND

I_VBRP-MATNR = J_1IEXCDTL-MATNR .

IF I_VBRP-VBELN = J_1IEXCDTL-RDOC2

AND

i_VBRP-MATNR = J_1IEXCDTL-MATNR .

final-TAX = I_VBRP-MWSBP.

ENDIF.

is this code should be inside loop at place -


>?