I_MfgActionReasonCode

DDL: I_MFGACTIONREASONCODE Type: view BASIC

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)

SourceAliasJoin Type
qpcd code from

Associations (5)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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]
;