Inter company posting

I have created inter company PO in legal entity ‘A’ which created SO in legal entity ‘B’.

My requirement is to post packing slip for SO in legal entity ‘B’ automatically once i post receipt for PO in legal entity ‘A’.

Is it possible? If yes how to achieve it?