It seems to me you want to copy the vendor number from your custom personas field then call ME21N. If you don't do it in this order, you'll be in ME21n and the script will not find your custom vendor field to copy the value from. So, in other words, try switching the order of your two first commands in the script (first, copy, then, enter ME21N).
↧