System Variables › &ZMPPOMSG
(Message profile variable) Indicates whether the message originated from PPO. Value is YES or NO.