Based on an advanced leave formula I can determine at runtime whether or not the infotype 416 record should be created or not. The formula is working.
What is not working is that I need to find a way to prevent the 416 record from being created when the formula returns certain values. I have looked at ZXPADU02 and various other user exits and badi's but to no avail. The ZXPADU02 does not have the field which needs to be checked i.e. PA04160-NUMBR.