HPSM assign code