You can modify the copying requirement routine at header level between LF and F8. SAP standard routine is "009-DlvRel.pro forma hdr". You can copy this to user defined 9xx and put a code to check the PGI status of the delivery.
Hope this helps.
Text Removed if helpful.
Message was edited by: G Lakshmipathi
Don't add this text in each and every post