So instead of this...

SEROUT2 PORTB.2,19697,[COM_CODE[I]]

...you want to send four digits of HEX...

SEROUT2 PORTB.2,19697,[HEX4 COM_CODE[I]]