The material code of B 1 cannot be modified. Why did you modify it at that time? You can add user-defined fields for internal coding and modify them at any time.
To understand B 1, especially coding, it is best to use system pipeline. Other ways are not the best.
Of course, you don't need to modify itemCode for your question.