I_MfgWorkInstructionPRTInfoTP
Embedded WI: Selected PRT info
I_MfgWorkInstructionPRTInfoTP is a Transactional CDS View that provides data about "Embedded WI: Selected PRT info" in SAP S/4HANA. It reads from 1 data source (I_MfgWorkInstructionVariable) and exposes 35 fields with key fields MfgWorkInstruction, MfgWorkInstructionVersCounter, MfgWorkInstructionVariable, ProdnRtgVersBOMInternalID, SelectedContextType. It has 3 associations to related views. Part of development package MPE_PLAN_WI_EMB.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_MfgWorkInstructionVariable | I_MfgWorkInstructionVariable | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_OpActyWorkInstructionTP | _OpActyWorkinstructionTP | $projection.MfgWorkInstruction = _OpActyWorkinstructionTP.MfgWorkInstruction and $projection.MfgWorkInstructionVersCounter = _OpActyWorkinstructionTP.MfgWorkInstructionVersCounter -- Material |
| [1..1] | I_Material | _Material | $projection.Material = _Material.Material |
| [1..1] | I_UnitOfMeasure | _StdWorkQtyUnit | $projection.ProdnRsceToolStdWorkQtyUnit = _StdWorkQtyUnit.UnitOfMeasure |
Annotations (14)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IEMBWIPRTINFOTP | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| VDM.viewType | #TRANSACTIONAL | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ObjectModel.createEnabled | true | view | |
| ObjectModel.deleteEnabled | true | view | |
| ObjectModel.updateEnabled | true | view | |
| ObjectModel.writeDraftPersistence | IEMBWIPRTINFOD | view | |
| ObjectModel.representativeKey | SelectedContextType | view | |
| EndUserText.label | Embedded WI: Selected PRT info | view |
Fields (35)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | MfgWorkInstruction | MfgWorkInstruction | Work Instruction | |
| KEY | MfgWorkInstructionVersCounter | MfgWorkInstructionVersCounter | Version No. | |
| KEY | MfgWorkInstructionVariable | MfgWorkInstructionVariable | Variable | |
| KEY | ProdnRtgVersBOMInternalID | ProdnRtgVersBOMInternalID | Allocation no. | |
| KEY | SelectedContextType | SelectedContextType | Var TYpe | |
| KEY | ProductionResourceInternalID | |||
| ProductionResourceType | ||||
| Material | ||||
| MaterialName | ||||
| Equipment | ||||
| EquipmentName | ||||
| ProdnRsceToolCounter | ||||
| ProductionResourceToolDesc | ||||
| ProdnRsceToolItemNumber | ||||
| ProdnRsceToolStdWorkQtyUnit | ||||
| ProdnRsceToolStandardWorkQty | ||||
| ProdnRsceToolRegnIsAllowed | ||||
| ProdnRsceToolCategory | ||||
| ProdnRsceToolCategoryExtCode | ||||
| ProdnRsceToolCategoryName | ||||
| ProductionResourceTool | ||||
| CreationDateTime | ||||
| ChangedBy | ||||
| LastChangeDateTime | ||||
| MfgIsItemSelected | ||||
| DocumentType | ||||
| DocumentInfoRecord | ||||
| DocumentVersion | ||||
| DocumentPart | ||||
| DocumentInfoRecordDocNumber | ||||
| PRTIsUsedAsTestEquipment | ||||
| Association_WorkInstructionInternalId | ||||
| _Material | _Material | |||
| _StdWorkQtyUnit | _StdWorkQtyUnit | |||
| DraftComposition_OpActyWorkinstructionTP |
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_MfgWorkInstructionPRTInfoTP.
-- 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: IEMBWIPRTINFOTP
CREATE VIEW I_MfgWorkInstructionPRTInfoTP AS
SELECT
MfgWorkInstruction,
MfgWorkInstructionVersCounter,
MfgWorkInstructionVariable,
ProdnRtgVersBOMInternalID,
SelectedContextType,
cast ('00000000' as cr_objid preserving type) AS ProductionResourceInternalID,
cast (' ' as cr_objty preserving type) AS ProductionResourceType,
cast (' ' as matnr preserving type ) AS Material,
cast (' ' as maktx preserving type ) AS MaterialName,
cast (' ' as equnr preserving type ) AS Equipment,
cast (' ' as eqktu preserving type ) AS EquipmentName,
cast (' ' as pzlfh ) AS ProdnRsceToolCounter,
cast (' ' as fhktx preserving type ) AS ProductionResourceToolDesc,
cast ('0000' as psnfh preserving type) AS ProdnRsceToolItemNumber,
cast (' ' as mgeinh ) AS ProdnRsceToolStdWorkQtyUnit,
cast (0 as mgvgw ) AS ProdnRsceToolStandardWorkQty,
cast (' ' as mpe_prt_registrable preserving type ) AS ProdnRsceToolRegnIsAllowed,
' ' AS ProdnRsceToolCategory,
cast(' ' as fhmar_ext preserving type ) AS ProdnRsceToolCategoryExtCode,
cast(' ' as faktx preserving type ) AS ProdnRsceToolCategoryName,
cast (' ' as fhmnr preserving type ) AS ProductionResourceTool,
cast( 0 as tzntstmps ) AS CreationDateTime,
cast( ' ' as usnam preserving type) AS ChangedBy,
cast( 0 as tzntstmps ) AS LastChangeDateTime,
cast(' ' as flag preserving type ) AS MfgIsItemSelected,
cast(' ' as dokar preserving type ) AS DocumentType,
cast( ' ' as doknr preserving type ) AS DocumentInfoRecord,
cast(' ' as dokvr preserving type ) AS DocumentVersion,
cast(' ' as doktl_d preserving type ) AS DocumentPart,
cast( ' ' as doknr preserving type ) AS DocumentInfoRecordDocNumber,
cast(' 'as mpe_is_referenced_in_cha preserving type ) AS PRTIsUsedAsTestEquipment
FROM I_MfgWorkInstructionVariable
LEFT OUTER JOIN I_OpActyWorkInstructionTP AS _OpActyWorkinstructionTP ON MfgWorkInstruction = _OpActyWorkinstructionTP.MfgWorkInstruction AND MfgWorkInstructionVersCounter = _OpActyWorkinstructionTP.MfgWorkInstructionVersCounter -- association [1..1]
LEFT OUTER JOIN I_Material AS _Material ON Material = _Material.Material -- association [1..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _StdWorkQtyUnit ON ProdnRsceToolStdWorkQtyUnit = _StdWorkQtyUnit.UnitOfMeasure -- association [1..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