Are you saying you have shipped the product and posted the shipment in BC but you have not posted the invoice? If this is the case then you would undo the shipment on the line of the posted sales shipment document. That will create a reversal of the shipment.
That's all there is to do.
If you have already posted the invoice then you cannot undo the shipment. You must create a sales credit memo or a sales return order.