Hi Ranjani,
If you need delivery completed status than you have to deliver (GR) the total order qty in the production order. By this confirmation BAPI you cant do it.
You need to fully gr the order qty or tick it delivery completed than it will give DLV status.
regards,
Solomon