How to create a closure code?

How to create a closure code for interaction/incidents?

HPSM 9.20.

Thanks!