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. Part of development package MPE_CORE.
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 | |
| KEY | MfgActionReasonCodeGroup | qpcd | codegruppe | |
| KEY | ManufacturingActionReasonCode | qpcd | code | |
| KEY | Version | qpcd | version | |
| MfgActionReasonCodeCategory | ||||
| DefectClass | qpcd | fehlklasse | ||
| Action | qpcd | folgeakti | ||
| IsDeleted | qpcd | geloescht | ||
| ValidityStartDate | qpcd | gueltigab | ||
| CodeIsInactive | qpcd | inaktiv | ||
| CodeGroupStatus | _Group | CodeGroupStatus | ||
| MfgActionReasonCodeIsUsed | qpcd | verwendung | ||
| CreatedByUser | qpcd | ersteller | ||
| CreationDateTime | qpcd | e_datum | ||
| LastChangedByUser | qpcd | aenderer | ||
| LastChangeDateTime | qpcd | a_datum | ||
| _Text | _Text | |||
| _Group | _Group | |||
| _Catalog | _Catalog | |||
| _CreatedByUser | _CreatedByUser | |||
| _LastChangedByUser | _LastChangedByUser |
@AbapCatalog: {
sqlViewName: 'IMPERSNCODE',
compiler.compareFilter: true
}
@AccessControl: {
authorizationCheck: #CHECK,
privilegedAssociations: ['_CreatedByUser', '_LastChangedByUser']
}
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.representativeKey: ['MfgActionReasonCodeGroupCtlg', 'MfgActionReasonCodeGroup', 'ManufacturingActionReasonCode', 'Version']
@VDM.viewType: #BASIC
@ObjectModel.usageType:
{
serviceQuality: #B,
sizeCategory: #S,
dataClass: #CUSTOMIZING
}
@Search.searchable: true
@EndUserText.label: 'Reason Code'
define view I_MfgActionReasonCode
as select from qpcd as code
association [0..*] to I_MfgActionReasonCodeText as _Text on $projection.MfgActionReasonCodeGroupCtlg = _Text.MfgActionReasonCodeGroupCtlg
and $projection.MfgActionReasonCodeGroup = _Text.MfgActionReasonCodeGroup
and $projection.ManufacturingActionReasonCode = _Text.ManufacturingActionReasonCode
and $projection.Version = _Text.Version
association [0..1] to I_MfgActionReasonCodeGroup as _Group on $projection.MfgActionReasonCodeGroupCtlg = _Group.MfgActionReasonCodeGroupCtlg
and $projection.MfgActionReasonCodeGroup = _Group.MfgActionReasonCodeGroup
association [0..1] to I_Inspectioncatalog as _Catalog on $projection.MfgActionReasonCodeGroupCtlg = _Catalog.InspectionCatalog
association [0..1] to I_User as _CreatedByUser on $projection.CreatedByUser = _CreatedByUser.UserID
association [0..1] to I_User as _LastChangedByUser on $projection.LastChangedByUser = _LastChangedByUser.UserID
{
// key fields
@ObjectModel.foreignKey.association: '_Catalog'
key code.katalogart as MfgActionReasonCodeGroupCtlg,
@ObjectModel.foreignKey.association: '_Group'
@Consumption.valueHelpDefinition: [ { entity: { name: 'I_MfgActnRsnCodeGrpStdVH', element: 'MfgActionReasonCodeGroup' } } ]
@Search: {defaultSearchElement: true, ranking: #HIGH, fuzzinessThreshold: 0.8}
key code.codegruppe as MfgActionReasonCodeGroup,
@ObjectModel.text.association: '_Text'
@Search: {defaultSearchElement: true, ranking: #HIGH, fuzzinessThreshold: 0.8}
key code.code as ManufacturingActionReasonCode,
key code.version as Version,
// for compatibility reasons
'' as MfgActionReasonCodeCategory,
// code data
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,
// admin data
@ObjectModel.foreignKey.association: '_CreatedByUser'
code.ersteller as CreatedByUser,
code.e_datum as CreationDateTime,
@ObjectModel.foreignKey.association: '_LastChangedByUser'
code.aenderer as LastChangedByUser,
code.a_datum as LastChangeDateTime,
// text associations
_Text,
// others
_Group,
_Catalog,
_CreatedByUser,
_LastChangedByUser
}
where
code.katalogart = '7'
or code.katalogart = '0'
or code.katalogart = '9'
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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