When you do the PGI in delivery(vl01n) certain processing goes in the back ground like it does the availability check & picks up the qnty from the plant/storage location/batches,does material posting,hit in accounting,profit center accounting & in controlling.
My issue is when you click on delivery document flow,you find GD goods issue:delvy xxxxxxxxxx number which is material posting number and when select it & click on display document icon it will take you to material posting document,there when you click on accounting documents icon it will show pop up with accounting document/profit center document/controlling document.
Here I am not getting the accounting document where as profit center document & controlling document with zero value,this I am getting few documents.
What I want do is that when you click on PGI icon system should find whether system is having the value or not if it finds zero value the it should give pop & does not allow to do PGI.
Is there any way to restrict this Although I know delivery user exits but what is the logic should I give to abaper.
Thanks n Best Regards