Auto-populate User ID when creating a Purchase Order

You need to write code on OnInsert Trigger for populating USERID.