production journal validation

can someone please suggest me about setting a validation on production journal

That when I open the productional if the RPO has no component it should give an error and should not open the productional journal. else it should be working accordingly.


Thanks in advance.