Hi,
If the priority is specific to customer why dont you try assigning the Fair Share Rule as "D" in SNP2 tab of /sapapo/mat1 for product A.
Then set the Distribution Priority in the TLANE of source location PLANT to Customer as required.
In this case, Highest Priority Customer will Delivered with the on hand stock when there is a shortage situation.
Regards
Vinoth