I_MfgActionReasonCode
Reason Code
I_MfgActionReasonCode is a Basic CDS View that provides data about "Reason Code" in SAP S/4HANA. It reads from 1 data source (qpcd) and exposes 21 fields with key fields MfgActionReasonCodeGroupCtlg, MfgActionReasonCodeGroup, ManufacturingActionReasonCode, Version. It has 5 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| qpcd | code | from |
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_MfgActionReasonCodeText | _Text | $projection.MfgActionReasonCodeGroupCtlg = _Text.MfgActionReasonCodeGroupCtlg and $projection.MfgActionReasonCodeGroup = _Text.MfgActionReasonCodeGroup and $projection.ManufacturingActionReasonCode = _Text.ManufacturingActionReasonCode and $projection.Version = _Text.Version |
| [0..1] | I_MfgActionReasonCodeGroup | _Group | $projection.MfgActionReasonCodeGroupCtlg = _Group.MfgActionReasonCodeGroupCtlg and $projection.MfgActionReasonCodeGroup = _Group.MfgActionReasonCodeGroup |
| [0..1] | I_Inspectioncatalog | _Catalog | $projection.MfgActionReasonCodeGroupCtlg = _Catalog.InspectionCatalog |
| [0..1] | I_User | _CreatedByUser | $projection.CreatedByUser = _CreatedByUser.UserID |
| [0..1] | I_User | _LastChangedByUser | $projection.LastChangedByUser = _LastChangedByUser.UserID |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IMPERSNCODE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #BASIC | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.dataClass | #CUSTOMIZING | view | |
| Search.searchable | true | view | |
| EndUserText.label | Reason Code | view |
Fields (21)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | MfgActionReasonCodeGroupCtlg | qpcd | katalogart | Catalog |
| KEY | MfgActionReasonCodeGroup | qpcd | codegruppe | Code Group |
| KEY | ManufacturingActionReasonCode | qpcd | code | Water Hazard Cl. |
| KEY | Version | qpcd | version | XML Vers. |
| MfgActionReasonCodeCategory | ||||
| DefectClass | qpcd | fehlklasse | Defect Class | |
| Action | qpcd | folgeakti | Follow-Up Actn | |
| IsDeleted | qpcd | geloescht | Dummy | |
| ValidityStartDate | qpcd | gueltigab | Valid From | |
| CodeIsInactive | qpcd | inaktiv | Record inactive | |
| CodeGroupStatus | _Group | CodeGroupStatus | ||
| MfgActionReasonCodeIsUsed | qpcd | verwendung | Record Used | |
| CreatedByUser | qpcd | ersteller | Created By | |
| CreationDateTime | qpcd | e_datum | Creation Date | |
| LastChangedByUser | qpcd | aenderer | Changed By | |
| LastChangeDateTime | qpcd | a_datum | Changed On | |
| _Text | _Text | |||
| _Group | _Group | |||
| _Catalog | _Catalog | |||
| _CreatedByUser | _CreatedByUser | |||
| _LastChangedByUser | _LastChangedByUser |
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 I_MfgActionReasonCode.
-- 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 I_MfgActionReasonCode AS
SELECT
code.katalogart AS MfgActionReasonCodeGroupCtlg,
code.codegruppe AS MfgActionReasonCodeGroup,
code.code AS ManufacturingActionReasonCode,
code.version AS Version,
'' AS MfgActionReasonCodeCategory,
code.fehlklasse AS DefectClass,
code.folgeakti AS Action,
code.geloescht AS IsDeleted,
code.gueltigab AS ValidityStartDate,
code.inaktiv AS CodeIsInactive,
_Group.CodeGroupStatus AS CodeGroupStatus,
code.verwendung AS MfgActionReasonCodeIsUsed,
code.ersteller AS CreatedByUser,
code.e_datum AS CreationDateTime,
code.aenderer AS LastChangedByUser,
code.a_datum AS LastChangeDateTime
FROM qpcd AS code
LEFT OUTER JOIN I_MfgActionReasonCodeText AS _Text ON MfgActionReasonCodeGroupCtlg = _Text.MfgActionReasonCodeGroupCtlg AND MfgActionReasonCodeGroup = _Text.MfgActionReasonCodeGroup AND ManufacturingActionReasonCode = _Text.ManufacturingActionReasonCode AND Version = _Text.Version -- association [0..*]
LEFT OUTER JOIN I_MfgActionReasonCodeGroup AS _Group ON MfgActionReasonCodeGroupCtlg = _Group.MfgActionReasonCodeGroupCtlg AND MfgActionReasonCodeGroup = _Group.MfgActionReasonCodeGroup -- association [0..1]
LEFT OUTER JOIN I_Inspectioncatalog AS _Catalog ON MfgActionReasonCodeGroupCtlg = _Catalog.InspectionCatalog -- association [0..1]
LEFT OUTER JOIN I_User AS _CreatedByUser ON CreatedByUser = _CreatedByUser.UserID -- association [0..1]
LEFT OUTER JOIN I_User AS _LastChangedByUser ON LastChangedByUser = _LastChangedByUser.UserID -- association [0..1]
;
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