Hi,
You're talking about transaction code VA01 (to create sales documents), but you want to display a customer... so in fact you use tcode XD03 right? And if you're sure that this customer number exists in your backend, you could try to debug and add leading zeros to LV_PARTNER. Maybe that will help.
Regards,
Nicolas.