# How to Create a Selected Set in SAP QM (QS51)

> Source: https://netray.co/erp-help/sap-qm-create-selected-set-qs51-how-to
> Publisher: Netray (netray.co), AI and integration engineering for ERP and manufacturing systems.
> Section: ERP Help

## Short answer

A selected set is a subset of codes taken from one or more catalog code groups, so users only see the relevant choices. Create it with QS51 for a catalog type and plant, add the codes, save, and then assign it to a master inspection characteristic (QS21), the usage decision, or defect recording.

## Kind

how-to

## System

sap

## Erp

SAP S/4HANA and ECC

## Module

Quality Management (QM) / Catalogs and Selected Sets

## Query

how to create selected set in sap qm

## Alternate Queries

- sap qs51 selected set
- sap qm selected set code group
- selected set usage decision sap

## Applies To

SAP ECC 6.0 and SAP S/4HANA on-premise with QM

## Steps

### Create a selected set

**Items:**

- First make sure the catalog codes exist: create code groups and codes in QS41 (Maintain Code Groups and Codes) for the catalog type you need.
- Run QS51 (Create Selected Set). Enter the catalog type and the plant.
- Enter a selected set key and a short text.
- Choose the code groups you want to draw from, and select the individual codes you want in the set.
- Save. The selected set can be assigned a status and be released.
- Use QS52 to change and QS53 to display the set.
- Assign it where needed: in the master inspection characteristic (QS21) for qualitative characteristics, in the plant-level usage decision settings, and in defect recording for the defect catalog.

## Sections

### Catalogs, code groups and selected sets

**Body:**

QM stores qualitative data in catalogs. Each catalog type serves a purpose, such as characteristic attributes, usage decisions, defect types, defect causes and defect locations. Inside a type, codes are grouped in code groups, and a code group is the unit you assign to many objects.

A selected set narrows a long list. For example, a usage decision code group may have ten codes but a plant only uses three of them. By defining the set, you restrict the choices in QA11 to those three and avoid mistakes.

Selected sets are plant-specific. Sets can be restricted by plant so that one site's defects do not appear for another.

### Using the set for characteristic and code valuation

**Body:**

For a qualitative characteristic such as surface appearance, the master inspection characteristic references a selected set. At results recording, the inspector chooses an attribute code from that set, such as OK, scratch or dent. Each code has a valuation of accepted or rejected, which drives the characteristic valuation.

The valuation of codes is part of the catalog definition, so check it when you define codes. A code accepted in one set but rejected in another is a design error that confuses users.

Usage decision codes in a set also carry a quality score and a valuation. The UD set gives users a short list instead of the full catalog.

**Code:**

- QS41   Maintain code groups and codes
- QS51   Create selected set
- QS52   Change selected set
- QS53   Display selected set
- QS21   Maintain master inspection characteristic

### Common problems

**Body:**

If a set does not appear in the dropdown of a characteristic, check the plant, the catalog type and the status. A selected set that is created but not released does not show.

If you change a set after inspection lots exist, existing lots keep the values they copied. The change applies to new lots only. Plan changes and communicate them.

Transport catalogs and sets together. If the set refers to a code group that is not in the target system, the transport reports an error or silently loses the codes.

## Pitfalls

- Creating the selected set before the code groups exist.
- Mixing codes with different valuations in one set without telling the inspector.
- Forgetting to release the set, so it never shows in the selection.
- Expecting a change to the set to update existing inspection lots.
- Transporting the set without the code groups and catalog entries.

## Ai Angle

Catalog design is a familiar source of data-quality problems: duplicate codes, mismatched valuations, characteristics pointing at the wrong set. A grounded assistant can list all characteristics using a set, spot codes never used, and flag inconsistent valuations. Netray can deploy the assistant on your own servers in read-only mode so your quality catalogs stay in-house.

## Faq

### What is the tcode for a selected set in SAP QM?

**Answer:** QS51 creates a selected set, QS52 changes it and QS53 displays it. The code groups behind it are maintained in QS41.

### What is the difference between a code group and a selected set?

**Answer:** A code group is a collection of related codes in a catalog. A selected set is a plant-level subset taken from one or more code groups, used to limit what users can choose.

### Where do I assign a selected set?

**Answer:** Typically in the master inspection characteristic (QS21) for qualitative characteristics, in the usage decision setup, and in defect recording. Task lists then inherit it from the characteristic.

### Why is my selected set not visible?

**Answer:** Check that it is for the right plant and catalog type and that its status allows use. Also check that the code group is valid and the codes themselves are not locked.

## Search terms

how to create selected set in sap qm, sap qs51, sap qm selected set, selected set code group sap, sap qm catalog code group, qs41 code group, sap qualitative characteristic selected set

---
Talk to an engineer: https://netray.co/contact?intent=erp_ai | Machine catalog: https://netray.co/agent/catalog.json
