Skip to Content
1
Former Member
Jul 03, 2007 at 09:16 AM

REGARDING DELETE

10 Views

hi all,

i had to delete entire row in the final output table inside a loop on condition that

T_output1-wt_acco ne 0.

wt_acco is contained in t_output1. how can i do that one can any body help me

LOOP AT T_BKPF.

MOVE T_BKPF-BLART TO T_OUTPUT_FINAL-BLART.

MOVE T_BKPF-BUDAT TO T_OUTPUT_FINAL-BUDAT.

MOVE T_BKPF-XBLNR TO T_OUTPUT_FINAL-XBLNR.

READ TABLE T_OUTPUT1 WITH KEY BELNR = T_BKPF-BELNR.

IF SY-SUBRC = 0.

MOVE-CORRESPONDING T_OUTPUT1 TO T_OUTPUT_FINAL.

T_OUTPUT_FINAL-TDSAMOUNT = ( T_OUTPUT1-WT_QBSHH * T_OUTPUT1-ZWHT ) / T_OUTPUT1-ZTOT.

T_OUTPUT_FINAL-SURCHARGE = ( T_OUTPUT1-WT_QBSHH * T_OUTPUT1-ZSUR ) / T_OUTPUT1-ZTOT.

T_OUTPUT_FINAL-EDUCESS = ( T_OUTPUT1-WT_QBSHH * T_OUTPUT1-ZEDU ) / T_OUTPUT1-ZTOT.

ENDIF.

READ TABLE T_LFA1 WITH KEY LIFNR = T_OUTPUT1-WT_ACCO.

IF SY-SUBRC = 0.

MOVE T_LFA1-NAME1 TO T_OUTPUT_FINAL-NAME1.

MOVE T_LFA1-STDC1 TO T_OUTPUT_FINAL-STDC1.

APPEND T_OUTPUT_FINAL.

CLEAR T_OUTPUT_FINAL.

ENDIF.

endloop.

thanks and regards

siva