When READ PROTECT is used in conjunction with other steps there are unexpected outcomes.
I tried to use READ PROTECT after a field value is set e.g.
BO.ps_Attribute = BO.ps_AnotherAttribute.SomethingElse
READ PROTECT BO.ps_Attribute FROM ALL EXCEPT SYSTEM
Logged Here https://www.awareim.com/forum/d/9602>
In this instance it is setting the READ PROTECT before it tries to evaluate
In another instance I was trying to ensure that a field was UNDEFINED and then locked.
If BO.ps_Attribute WAS CHANGED TO 'A Value' THEN
BO.ps_OtherAttribute=UNDEFINED
READ PROTECT BO.ps_OtherAttribute FROM ALL EXCEPT SYSTEM
In this case it just ignored the READ PROTECT completely.