01-30-2008 4:59 AM
call function 'ZCPD_POPUP_FOR_INPUT'
exporting
i_vbeln = vbap-vbeln
i_posnr = vbap-posnr
tables
t_curr = it_temp.
1)need to move from it_temp into it_currinp
it_currinp[] = it_temp[].
2) need to delete from temp where record exist in posnr and also
delete from it_currinp not exits in posnr .
Edited by: anil kumar on Jan 30, 2008 10:30 AM
01-30-2008 5:04 AM
HI,
loop at it_temp where posnr is not initial.
delete it_temp index sy-tabix.
endloop.
loop at it_currinp where posnr is initial.
delete it_currinp index sy-tabix.
endloop.
Cheers,
Will.
01-30-2008 5:04 AM
HI,
loop at it_temp where posnr is not initial.
delete it_temp index sy-tabix.
endloop.
loop at it_currinp where posnr is initial.
delete it_currinp index sy-tabix.
endloop.
Cheers,
Will.
01-30-2008 5:04 AM
01-30-2008 5:14 AM
Anil,
This is the correct way of coding.
SORT : it_temp BY posnr.
it_currinp[] = it_temp[].
DELETE it_temp WHERE POSNT NE ''.
DELETE it_currinp WHERE POSNT EQ ''.
LOOP may reduce the performance of the program.
Don't forget to reward if useful...