Relation Definition in Field Configuration
Once the relation types are imported to SAP Ariba, the custom filtering can be set on related filtered object in Customization Manager → Field Configuration. The filtering setup is composed of 4 steps in every class where the filtering applies:
In the corresponding class, find the field that will be filtered:
Select the Advanced tab
Select Use Relationship Chooser.
This activates Relation Entry filtering on the selected field.
In Relation Name, select the filtering relation type group defined in RelationType.csv.
In NameTableConstraintFieldPath section, define the path to the filtering field.
In case the filtering field is located on the same class, refer just the field technical name.
In other cases the corresponding path must be specified together with the field name. For example, "CompanyCode" reference on requisition line item must be defined as LineItemCollection.CompanyCode.
Optional: Choices are being filtered now, but not yet validated in case filtering object changes the value.
The validation condition must be modified accordingly on the field in the Conditions tab.
The pattern is defined as GenericRelationStatisfied.validate(filteredField, filteringField, ‘RelationType.UniqueName', true, false).