As Application Consultant, you configure usage decision codes in the customizing of SAP S/4HANA. Play the video to get introduced to the configuration tasks.
The following figure shows an example of a list of code groups and codes with possible usage decision codes. The codes are grouped together into two selected sets. The first set contains codes used for inspection lots from procurement. The second set contains codes used for inspection lots from production.

As an Application Consultant, you are responsible for defining codes and code groups for usage decisions in catalog type 3. Unlike in R/3, UD codes are considered configuration objects, so they must be defined in Customizing (IMG: Quality Management → Quality Inspection → Inspection Lot Completion → Edit Code Groups and Codes for Usage Decisions and Edit Selected Sets for Usage Decisions).
In this example, two code groups have been defined. The first code group includes all variants of acceptance (such as accepted, accepted with minor deviations, etc.), while the second code group includes all variants of rejection (such as rejected, rejected - rework required, etc.). To use these codes for making a usage decision, they must be grouped in selected sets and also assigned a valuation. In this example, there are two selected sets: the first one is used by default for goods receipt inspections of procured materials, and the second one is used for goods receipt inspections from production. It's important to note two things:
In a selected set, the Application Consultant combines codes from multiple code groups. For example, the code Accepted with minor deviations is maintained in the code group Accepted, and the code Rejected - Rework required is maintained in the code group Rejected.
A selected set does not need to contain all codes. You can limit the codes required for the business process, allowing the Quality Engineer to select from a list of reasonable codes.
Hint
It is recommended to maintain one selected set for each business process (for example, goods receipt, production, stock transfer, etc.). When defining an inspection type in Customizing, the Application Consultant assigns the selected set to the inspection type. This ensures that the system only allows usage decisions that are included in the selected set for the inspection type.The following two images demonstrate how to maintain a selected set for the usage decision:

In this example, the Application Consultant defines several selected sets in step 1. Each selected set exists in plant 1010 and is used in a different business process, such as Goods Receipt (→ 01), Goods Issue (→ 02), Production (→ 03), and more. For each selected set, a default code group and code are defined in step 2. The system will use this code when the user makes a Quick Usage Decision in the Manage Usage Decisions app. To add codes to the selected set, the user selects a line item and opens the folder on the left in step 3.

The Application Consultant has added a list of codes from catalog type 3 to the selected set 01 Goods Receipt (step 1). For each code, they must enter a valuation (Accepted or Rejected; step 2). In step 3, they assign a quality score (a value between 1 and 100). This quality score will be used if the Quality Planner, defined in the inspection type in the material master, determines that the quality score during usage decision originates from the selected UD code. In the final step (step 4), the Application Consultant can assign a movement type, which the system will use for the posting proposal and the automated goods posting when the Quality Engineer saves the usage decision. To enable automatic goods posting, also set the Background indicator, which is not displayed in the screenshot.
Let's consider two examples:
- The first entry pertains to code A - Accept. This code is valuated as accepted in plant 1010. It has a quality score of 100 points (the highest grade) and automatically moves the inspection lot stock to unrestricted use stock.
- The entry R - Rejected is valuated as rejected in plant 1010. It has the lowest possible quality score (1 point) and there will be no automated goods movement when the Quality Engineer uses this code. Consequently, the stock controlled by the inspection lot will not be automatically moved out of the quality inspection stock and will remain there until the Quality Engineer explicitly makes a stock posting in the Manage Usage Decision app.
Additionally, the Application Consultant can assign a follow-up action (for example, send an email, change a status, etc.) that the system will automatically execute together with the usage decision.
Hint
Follow-up actions are defined in Customizing: Quality Management → Quality Inspection → Inspection Lot Completion → Define Follow-Up Actions for Usage Decisions. You can define chains of follow-up actions that the system performs in sequence.
The follow-up actions consist of function modules. You can assign several function modules to a follow-up action. You should also review the IMG documentation when you decide to implement you own follow-up actions.
Let's delve deeper into the automatic stock posting at usage decision. There are two alternative approaches:
The system proposes the stock transfer.
To use this approach, select a value in the field Posting in U" and do not flag the Background field. When the Quality Engineer makes a usage decision, they select a button that proposes moving the inspection lot quantity to the selected stock type. If necessary, the proposed quantities can be changed, for example, if a quantity split is required for unrestricted use stock, sample consumption, blocked stock, etc.
The system automatically performs the stock transfer.
To use this approach, select a value in the field Posting in UD and flag the Background field. When the Quality Engineer makes a usage decision, the system automatically moves the entire lot quantity to the selected stock type. This transfer posting cannot be prevented, and no authorization is required for it.
Hint
To ensure that the stock is automatically moved out of quality inspection when making a Quick Usage Decision, we recommend using the second scenario in combination with the default code. This will prevent the stock from remaining in quality inspection after the decision is made. The same principle applies to the automated Usage Decision for skip lots and lots without rejected characteristics or defects, which will be discussed in the next chapter.
If you use your own movement types, the Application Consultant can assign them to the posting proposal in Customizing (IMG: Quality Management → Quality Inspection → Inspection Lot Completion → Define Inventory Postings).