Prerequisite: You can mentione your company code, the document types where you want this check, any other specific to your document like system t-code. Check: You can put your logic Value date (check from where it is referenced) > posting date (from BKPF) Message: Put Error message as ...