Skip to Content
0
Former Member
Jun 06, 2008 at 09:12 AM

problem in performance of code

17 Views

Hi,

I had deveoped a code in which out put is coming fine,but i check dat in the debug mode at line where i am appending lines of ITAB2 to ITAB3 it is showing 35,300 records where as before appending it the ITAB2 contains 39 records and ITAB3 contains 33 records.

I had defnied the format of ITAB2 n ITAB3 same so that appending of lines can be done.

i dont know it is happening?

plzz provide me guidelines for the solution of it.

here is the code:-

LOOP AT ITBKPF.

CLEAR ITAB2.

READ TABLE ITAB2

WITH KEY BUKRS = ITBKPF-BUKRS

BELNR = ITBKPF-BELNR

GJAHR = ITBKPF-GJAHR.

CLEAR ITAB3.

READ TABLE ITAB3

WITH KEY BUKRS = ITBKPF-BUKRS

BELNR = ITBKPF-BELNR

GJAHR = ITBKPF-GJAHR. .

READ TABLE ITDEMO

WITH KEY BELNR = ITBKPF-AWKEY(10).

APPEND LINES OF ITAB2 TO ITAB3.

ITFINAL-LFBNR = ITDEMO-LFBNR.

ITFINAL-BUKRS = ITBKPF-BUKRS.

ITFINAL-BELNR = ITBKPF-BELNR.

ITFINAL-GJAHR = ITBKPF-GJAHR.