Hi Larry,
Characteristic 0VENDOR or 0GN_VENDOR will relate in the context of inventory management to consignment stock. You might have to combine the coding into one routine.
As a general remark on the migrated coding, I suggest to rewrite the coding so that it is 7.0 data staging compliant. The disadvantage of the migrated coding is that it is not transparent and difficult to understand. If you are implementing it, then it is now the right time to simplify the coding.
Best regards,
Sander