Hi
I've two internal tables and a want put in second the adition of items of the first.
when record of zzpernr is last, i want put the SUM of records for this zzpernr.
I've this code but the result give me al items.
LOOP AT it_execucao. ltabix2 = ltabix2 + 1. ltabix = sy-tabix. at END OF zzpernr. SELECT SINGLE cname FROM pa0002 INTO it_final-cname WHERE pernr = it_execucao-zzpernr. it_final-zzpernr = it_execucao-zzpernr. it_final-nlinhas_exec = ltabix2. APPEND it_final. CLEAR ltabix2. endat. ENDLOOP.
Can somebody help me ? Thanks