Creating shipment and ship lines from sales order

SUGGESTED

I have successfully inserted sales orders with their respective lines but now I need to create shipments for them. Which stored procedure is used to do this?