Second option is exactly the same we are following in our organisation for Spare parts. It is very handy.
Besides, UD codes are also defined with background posting to suitable stock locations. Therefore, it has become one step job to give UD and posting the stock along.
ntn