Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Deletion from Internal table.

Hi Gurus....

My requirement as follows,

In internal table ITAB_1 entries are

aaa 200 1.1 abc

aaa 100 1.1 abc

bbb 200 1.2 bcd

ccc 50 1.1 acd

ccc 25 1.1 acd

ccc 150 1.1 acd

now i need to process this internal table and show the result as

aaa 300 1.1 abc

bbb 200 1.2 bcd

ccc 225 1.1 acd

.......Thanks in advance.

Former Member
Former Member replied


IF you want to use COLLECT statament:

loop at itab1 into wa1.
*     itab2[] = itab1[].            "<----------Error: you're moving all data of itab1 to itab2
*     collect itab2.                 "<----------Error: Any value is transfered to work area of itab2, so u're collecting an
                                          "                     initial record
     collect wa1 into itab2.


0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question