Hi Mahalakshmi,
We dont need to use modify statement in between. Directly COLLECT would work.
You can use collect statements to add the DMBTR value. It will add the value wherein the same key value combination is found. If the key value combination in internal table doesn't match, a new row will be appended.
Material Quantity
0000001 20
0000002 10
0000003 30
0000001 50
Result after collect:
Material Quantity
0000001 70
0000002 10
0000003 30
Regards,
Aashika Agarwal