Deactivate collision on particular collisions

hello guys,

is it possible to deactivate collision when two same bodys touch each other?
What i want to do ist shoot about 20 balls in the box2d world which collide with the borders of the world but do NOT collide with each other.

Can someone help?
Thanks
take a look a the ContactFilter
All ShapeDefs have a filterData object, this object has a groupIndex member, shapes with common group indices with negative values will never collide.

Original thread: https://box2d.org/forum/viewtopic.php?t=4807