in single entity you can validate the attribute in that perticular entity, but for cross entity i.e.attributes in different entities you need to build the BADI in mdg
Definition of Validations and Derivations - SAP Master Data Governance - SAP Library