Hi,
Can you please check the delivery qty in Inbound Delivery Document?
Most probably inbound delivery getting created for PO qty not the Idoc quantity. So please try to overwrite delivery qty inbound delivery same as IDoc qty & then process PGI.
Regards,
Srikanth Pasunuri.