A_UsgeDcsnSeldSetCode
Usage Decision Code
A_UsgeDcsnSeldSetCode is a Composite CDS View that provides data about "Usage Decision Code" in SAP S/4HANA. It reads from 1 data source (I_UsgeDcsnSelectedSetCode) and exposes 11 fields with key fields SelectedCodeSetPlant, SelectedCodeSet, UsageDecisionCodeGroup, UsageDecisionCode. It has 4 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_UsgeDcsnSelectedSetCode | I_UsgeDcsnSelectedSetCode | from |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | A_Plant_2 | _SelectedCodeSetPlant | $projection.SelectedCodeSetPlant = _SelectedCodeSetPlant.Plant |
| [0..1] | A_UsageDecisionCodeGrp | _SelectedSetCodeGrp | $projection.SelectedCodeSetPlant = _SelectedSetCodeGrp.SelectedCodeSetPlant and $projection.SelectedCodeSet = _SelectedSetCodeGrp.SelectedCodeSet and $projection.UsageDecisionCodeGroup = _SelectedSetCodeGrp.UsageDecisionCodeGroup |
| [0..*] | A_UsageDcsnSeldCodeGrpTxt | _UsageDcsnSeldCodeGrpTxt | $projection.SelectedCodeSetPlant = _UsageDcsnSeldCodeGrpTxt.SelectedCodeSetPlant and $projection.SelectedCodeSet = _UsageDcsnSeldCodeGrpTxt.SelectedCodeSet and $projection.UsageDecisionCodeGroup = _UsageDcsnSeldCodeGrpTxt.UsageDecisionCodeGroup |
| [0..*] | A_UsageDcsnSeldCodeTxt | _UsageDcsnSeldCodeTxt | $projection.SelectedCodeSetPlant = _UsageDcsnSeldCodeTxt.SelectedCodeSetPlant and $projection.SelectedCodeSet = _UsageDcsnSeldCodeTxt.SelectedCodeSet and $projection.UsageDecisionCodeGroup = _UsageDcsnSeldCodeTxt.UsageDecisionCodeGroup and $projection.UsageDecisionCode = _UsageDcsnSeldCodeTxt.UsageDecisionCode |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Usage Decision Code | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.lifecycle.contract.type | #PUBLIC_REMOTE_API | view | |
| OData.entitySet.name | UsgeDcsnSelectedCode | view | |
| OData.entityType.name | UsageDecisionSelectedCode_Type | view | |
| ObjectModel.usageType.dataClass | #CUSTOMIZING | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.representativeKey | UsageDecisionCode | view |
Fields (11)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SelectedCodeSetPlant | SelectedCodeSetPlant | Receiving Plant | |
| KEY | SelectedCodeSet | SelectedCodeSet | CodeGrp/SelSet | |
| KEY | UsageDecisionCodeGroup | UsageDecisionCodeGroup | Code Group | |
| KEY | UsageDecisionCode | UsageDecisionCode | Water Hazard Cl. | |
| InspLotUsageDecisionValuation | InspLotUsageDecisionValuation | Code Valuation | ||
| InspectionLotQualityScore | InspectionLotQualityScore | Inspection Lot Score | ||
| _UsageDcsnSeldCodeTxt | _UsageDcsnSeldCodeTxt | |||
| _UsageDcsnSeldCodeGrpTxt | _UsageDcsnSeldCodeGrpTxt | |||
| _SelectedCodeSet | _SelectedCodeSet | |||
| _SelectedCodeSetPlant | _SelectedCodeSetPlant | |||
| _SelectedSetCodeGrp | _SelectedSetCodeGrp |
Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.
-- Derived SQL interpretation of CDS view A_UsgeDcsnSeldSetCode.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
CREATE VIEW A_UsgeDcsnSeldSetCode AS
SELECT
SelectedCodeSetPlant,
SelectedCodeSet,
UsageDecisionCodeGroup,
UsageDecisionCode,
InspLotUsageDecisionValuation,
InspectionLotQualityScore
FROM I_UsgeDcsnSelectedSetCode
LEFT OUTER JOIN A_Plant_2 AS _SelectedCodeSetPlant ON SelectedCodeSetPlant = _SelectedCodeSetPlant.Plant -- association [0..1]
LEFT OUTER JOIN A_UsageDecisionCodeGrp AS _SelectedSetCodeGrp ON SelectedCodeSetPlant = _SelectedSetCodeGrp.SelectedCodeSetPlant AND SelectedCodeSet = _SelectedSetCodeGrp.SelectedCodeSet AND UsageDecisionCodeGroup = _SelectedSetCodeGrp.UsageDecisionCodeGroup -- association [0..1]
LEFT OUTER JOIN A_UsageDcsnSeldCodeGrpTxt AS _UsageDcsnSeldCodeGrpTxt ON SelectedCodeSetPlant = _UsageDcsnSeldCodeGrpTxt.SelectedCodeSetPlant AND SelectedCodeSet = _UsageDcsnSeldCodeGrpTxt.SelectedCodeSet AND UsageDecisionCodeGroup = _UsageDcsnSeldCodeGrpTxt.UsageDecisionCodeGroup -- association [0..*]
LEFT OUTER JOIN A_UsageDcsnSeldCodeTxt AS _UsageDcsnSeldCodeTxt ON SelectedCodeSetPlant = _UsageDcsnSeldCodeTxt.SelectedCodeSetPlant AND SelectedCodeSet = _UsageDcsnSeldCodeTxt.SelectedCodeSet AND UsageDecisionCodeGroup = _UsageDcsnSeldCodeTxt.UsageDecisionCodeGroup AND UsageDecisionCode = _UsageDcsnSeldCodeTxt.UsageDecisionCode -- association [0..*]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA