Check purchase documents
Before you start. At least one restriction is enabled, has parties of the type Vendor and items, and its dates cover the document date. The Purchase Check Policy in the setup decides when the check runs. A purchase document is compared with the vendor and the item only; a ship-to country on a rule is ignored.
See which rules apply to the vendor
- Open Item Restrictions and find the rule that should cover the vendor, for example RSTR-03.
- Open the part Restricted Parties of the restriction.
- Look for a line with Source Type Vendor and Source No. 20000. Without such a line the rule never reaches a purchase document of that vendor.
- Note the kind of the rule: a Restricted from rule stops the items, an Approved to rule allows only the listed vendors.

Check the item on the rule
- Open the part Restricted / Approved Lines of the same restriction.
- Look for a line with Type Item and No. of the item you are buying, for example F-001.
- Check Description to be sure the number belongs to the item you mean.
- If the item is missing, add it as described in the chapter on items; a purchase line for it is not stopped before.

Check the location of the item line
- Look at Location Code on the item line of the restriction.
- An empty Location Code applies to every location; a code applies to purchase lines from that location only.
- Compare it with the location of the purchase line before you wonder why nothing happened.
- Change the code only while the restriction is switched off.

Check the period the rule covers
- Look at Starting Date and Ending Date of the restriction in the list.
- A purchase document is checked only when its document date lies between the two dates.
- An empty date means no beginning or no end.
- Correct the dates only while the restriction is switched off.

Check that the rule is switched on
- Look at Enabled in the list.
- A tick means the rule is in force and is checked; an empty box means it is not.
- Modified At tells you when the rule was last changed, which is useful when a colleague says it was set up.
- Switch the rule on, or ask the compliance manager to do it, before you expect a stop.

Enter the purchase line
- Open the purchase quote, order or invoice and add a line for the item you are buying.
- The line must be of the type Item, G/L Account or Resource: other types are never checked.
- With Purchase Check Policy set to Document Line Entry or Both, the app checks the line as soon as the item number is in place.
- When a rule matches, the line is refused and the message names the item, the vendor and the rule.

Release the purchase order
- With Purchase Check Policy set to Release or Both, enter the lines and leave the check to the release.
- Release the order. The app checks every line against every rule that is in force and whose period covers the document date.
- When a line breaks a rule, the release is refused and the order stays open.
- Correct the line or take it out, and release the order again.

Read the message when the release is refused
- Read the message. It names the item, the vendor and the restriction.
- Open the restriction with that number from the list, and compare it with the line: the item, the vendor, the location and the dates.
- If the rule is right, take the line out or buy the item from another vendor.
- If the rule is wrong, ask the compliance manager to change it; you cannot change a rule that is in force.

Correct the line the message names
- Compare the vendor on the document with the vendor lines of the rule.
- Compare the item, its location and the ship-to country of the document with the lines of the rule.
- Change the line, choose another vendor, or take the line out, and release the document again.
- Check that the line you corrected is not one that a bulk run put on the rule; Criteria Line No. shows that.

See which run put the vendor and the item on the rule
- Search for Item Restriction Criteria and open the log.
- Filter on Restriction No. to see the runs of the rule the message named.
- Read Type and Action: a run of the type Filter adds every record that matches its Filter, and a refresh re-applies it.
- If a vendor or an item is on the rule that should not be, find the run that put it there and ask for the filter to be corrected.

Example. A purchase order for vendor 20000 contains a line for the item Luxury Watch. Restriction RSTR-03 is enabled, lists vendor 20000 and the item, and covers the document date, so the release is refused with the message Item F-001 is restricted from vendor 20000 (restriction RSTR-03).
What happens. The purchase check reads the same rules as the sales check, but it only looks at the vendor and the item; a ship-to country on a rule is ignored. The first rule that fails stops the document, and the document stays open so the line can be corrected.
If something goes wrong
- Item F-001 is restricted from vendor 20000 (restriction RSTR-03). — the item may not be bought from this vendor. Take the line out or ask the compliance manager.
- Item F-001 is only approved for the listed vendors; vendor 20002 is not on restriction RSTR-03. — the rule is an approval and this vendor is not on it.
- A purchase document is not stopped at all: check that the policy is not Release while you are still entering lines, and that the rule lists the vendor, not only customers and countries.
