Hi,
in the sales order BSTKD (PO number) could be on header or item level.
This is stored in VBKD. For header the POSNR is empty.
Please check your orders if they are maintained on item which would make it hard for the billing document on header level.
BR
Robert