As already suggested, you can consider going with differentiating the Loading Group in material master, so that via standard configuration itself, you can achieve the desired result. On the other hand, if this is not possible, then, you can try with USEREXIT_MOVE_FIELD_TO_LIPS in include MV50AFZ1
G. Lakshmipathi