P_MfgInspCharcHistory
P_MfgInspCharcHistory is a Composite CDS View in SAP S/4HANA. It reads from 5 data sources (P_MfgInspCharHistoryAll, I_InspectionCharacteristic, I_LogisticsOrderBasic, I_OpActyInstceNtwkElmntBasic, I_OrderOperationBasic) and exposes 50 fields with key fields InspectionLot, InspPlanOperationInternalID, InspectionCharacteristic, InspectionSubsetInternalID, InspResultValueInternalID.
Data Sources (5)
| Source | Alias | Join Type |
|---|---|---|
| P_MfgInspCharHistoryAll | InspCharHistory | from |
| I_InspectionCharacteristic | InspectionCharacteristic | inner |
| I_LogisticsOrderBasic | LogisticsOrder | inner |
| I_OpActyInstceNtwkElmntBasic | OpActyInstceNtwkElmnt | inner |
| I_OrderOperationBasic | OrderOperationBasic | inner |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PMFGICHISTORY | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (50)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | InspectionLot | P_MfgInspCharHistoryAll | InspectionLot | Inspection Lot |
| InspectionLot | Inspection Lot | |||
| KEY | InspPlanOperationInternalID | P_MfgInspCharHistoryAll | InspPlanOperationInternalID | Node Number |
| KEY | InspectionCharacteristic | P_MfgInspCharHistoryAll | InspectionCharacteristic | Characteristic |
| KEY | InspectionSubsetInternalID | P_MfgInspCharHistoryAll | InspectionSubsetInternalID | |
| KEY | InspResultValueInternalID | P_MfgInspCharHistoryAll | InspResultValueInternalID | |
| KEY | ChangeDocDatabaseTableField | P_MfgInspCharHistoryAll | ChangeDocDatabaseTableField | |
| KEY | ChangeDocument | P_MfgInspCharHistoryAll | ChangeDocument | Document Number |
| KEY | MfgExecDocumentCategory | P_MfgInspCharHistoryAll | MfgExecDocumentCategory | |
| ManufacturingOrder | Order | |||
| ManufacturingOrder | P_MfgInspCharHistoryAll | ManufacturingOrder | Order | |
| ProductionOrderOperationActy | I_InspectionCharacteristic | ProductionOrderOperationActy | Operation Activity | |
| ProductionOrderOpActyVers | I_InspectionCharacteristic | ProductionOrderOpActyVers | OA Version | |
| InspSpecDecimalPlaces | ||||
| InspectionSpecificationUnit | ||||
| InspectionSpecificationText | I_InspectionCharacteristic | InspectionSpecificationText | ||
| OpActyNtwkInstance | I_OpActyInstceNtwkElmntBasic | OpActyNtwkInstance | Instance ID | |
| OpActyNtwkElement | I_OpActyInstceNtwkElmntBasic | OpActyNtwkElement | Element Number | |
| OperationActivityName | ||||
| OrderInternalID | I_OpActyInstceNtwkElmntBasic | OrderInternalID | Plan No.f.Oper. | |
| OrderOperationInternalID | I_OpActyInstceNtwkElmntBasic | OrderOperationInternalID | Plan No.f.Oper. | |
| Operation | I_OrderOperationBasic | Operation_2 | ||
| Sequence | I_OrderOperationBasic | Sequence | Visit Sequence | |
| OperationText | I_OrderOperationBasic | OperationText | Description | |
| WorkCenterInternalID | I_OrderOperationBasic | WorkCenterInternalID | Work Center | |
| WorkCenterTypeCode | ||||
| Plant | I_OrderOperationBasic | Plant | Valuation Area | |
| OpActyNtwkSegmentType | ||||
| OperationActivityNetwork | ||||
| OpActyNtwkVersionCounter | I_OpActyInstceNtwkElmntBasic | OpActyNtwkVersionCounter | ||
| OpActyNtwkElementExternalID | I_OpActyInstceNtwkElmntBasic | OpActyNtwkElementExternalID | Op. Activity | |
| OperationActivity | I_OpActyInstceNtwkElmntBasic | OperationActivity | Operation Activity | |
| OperationActyVersionCounter | I_OpActyInstceNtwkElmntBasic | OperationActyVersionCounter | OA Version | |
| StatusAndActionSchema | I_OpActyInstceNtwkElmntBasic | StatusAndActionSchema | ||
| CreatedByUser | P_MfgInspCharHistoryAll | CreatedByUser | User Name | |
| CreationDate | P_MfgInspCharHistoryAll | CreationDate | Time Stamp | |
| CreationTime | P_MfgInspCharHistoryAll | CreationTime | Time of Change | |
| ChangeDocPreviousFieldValue | P_MfgInspCharHistoryAll | ChangeDocPreviousFieldValue | ||
| InspectionResultMeanValue | ||||
| CharacteristicAttributeCodeGrp | ||||
| CharacteristicAttributeCode | ||||
| InspectionResultMeasuredValue | ||||
| InspectionResultAttribute | ||||
| InspectionValuationResult | ||||
| ShopFloorItem | P_MfgInspCharHistoryAll | ShopFloorItem | Serial.Mat. ID | |
| OperationActivitySFIGroup | ShopFloorItemStatus | OperationActivitySFIGroup | ||
| SystemMessageIdentification | ||||
| MfgExecHistMsgVarblField1 | 70 | |||
| MfgExecHistMsgVarblField4 | 75 | |||
| InspectionResultLongText | InspCharcRsltLongText | InspectionResultLongText |
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 P_MfgInspCharcHistory.
-- 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.
-- SQL view name: PMFGICHISTORY
CREATE VIEW P_MfgInspCharcHistory AS
SELECT
InspCharHistory.InspectionLot AS InspectionLot,
InspCharHistory.InspPlanOperationInternalID AS InspPlanOperationInternalID,
InspCharHistory.InspectionCharacteristic AS InspectionCharacteristic,
InspCharHistory.InspectionSubsetInternalID AS InspectionSubsetInternalID,
InspCharHistory.InspResultValueInternalID AS InspResultValueInternalID,
InspCharHistory.ChangeDocDatabaseTableField AS ChangeDocDatabaseTableField,
InspCharHistory.ChangeDocument AS ChangeDocument,
InspCharHistory.MfgExecDocumentCategory AS MfgExecDocumentCategory,
InspCharHistory.ManufacturingOrder AS ManufacturingOrder,
InspectionCharacteristic.ProductionOrderOperationActy AS ProductionOrderOperationActy,
InspectionCharacteristic.ProductionOrderOpActyVers AS ProductionOrderOpActyVers,
cast(InspectionCharacteristic.InspSpecDecimalPlaces + InspCharHistory.InspResultNrOfAddlDcmlsPlaces as qdiff_dec_places) AS InspSpecDecimalPlaces,
InspectionCharacteristic.InspectionSpecificationText AS InspectionSpecificationText,
OpActyInstceNtwkElmnt.OpActyNtwkInstance AS OpActyNtwkInstance,
OpActyInstceNtwkElmnt.OpActyNtwkElement AS OpActyNtwkElement,
OpActyInstceNtwkElmnt._OperationActivityText[1: Language=$session.system_language].OperationActivityName AS OperationActivityName,
OpActyInstceNtwkElmnt.OrderInternalID AS OrderInternalID,
OpActyInstceNtwkElmnt.OrderOperationInternalID AS OrderOperationInternalID,
OrderOperationBasic.Operation_2 AS Operation,
OrderOperationBasic.Sequence AS Sequence,
OrderOperationBasic.OperationText AS OperationText,
OrderOperationBasic.WorkCenterInternalID AS WorkCenterInternalID,
'A' AS WorkCenterTypeCode,
OrderOperationBasic.Plant AS Plant,
cast('2' as mpe_oan_segment_type preserving type) AS OpActyNtwkSegmentType,
OpActyInstceNtwkElmnt.OpActyNtwkVersionCounter AS OpActyNtwkVersionCounter,
OpActyInstceNtwkElmnt.OpActyNtwkElementExternalID AS OpActyNtwkElementExternalID,
OpActyInstceNtwkElmnt.OperationActivity AS OperationActivity,
OpActyInstceNtwkElmnt.OperationActyVersionCounter AS OperationActyVersionCounter,
OpActyInstceNtwkElmnt.StatusAndActionSchema AS StatusAndActionSchema,
InspCharHistory.CreatedByUser AS CreatedByUser,
InspCharHistory.CreationDate AS CreationDate,
InspCharHistory.CreationTime AS CreationTime,
InspCharHistory.ChangeDocPreviousFieldValue AS ChangeDocPreviousFieldValue,
cast(0 as qmittelwrt) AS InspectionResultMeanValue,
cast('' as qcodegrp) AS CharacteristicAttributeCodeGrp,
cast('' as qcode) AS CharacteristicAttributeCode,
cast(0 as qmesswert) AS InspectionResultMeasuredValue,
cast('' as qattribut) AS InspectionResultAttribute,
cast('' as qmbewertg) AS InspectionValuationResult,
InspCharHistory.ShopFloorItem AS ShopFloorItem,
ShopFloorItemStatus.OperationActivitySFIGroup AS OperationActivitySFIGroup,
cast('MPE_EXEC_SFO' as msgid) AS SystemMessageIdentification,
70 AS MfgExecHistMsgVarblField1,
75 AS MfgExecHistMsgVarblField4,
InspCharcRsltLongText.InspectionResultLongText AS InspectionResultLongText
FROM P_MfgInspCharHistoryAll AS InspCharHistory
INNER JOIN I_LogisticsOrderBasic AS LogisticsOrder ON /* join condition not captured in parsed metadata */
INNER JOIN I_InspectionCharacteristic AS InspectionCharacteristic ON /* join condition not captured in parsed metadata */
INNER JOIN I_OrderOperationBasic AS OrderOperationBasic ON /* join condition not captured in parsed metadata */
INNER JOIN I_OpActyInstceNtwkElmntBasic AS OpActyInstceNtwkElmnt ON /* join condition not captured in parsed metadata */
;
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