I_MfgWorkInstructionPRTInfoTP

DDL: I_MFGWORKINSTRUCTIONPRTINFOTP SQL: IEMBWIPRTINFOTP Type: view TRANSACTIONAL Package: MPE_PLAN_WI_EMB

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)

SourceAliasJoin Type
I_MfgWorkInstructionVariable I_MfgWorkInstructionVariable from

Associations (3)

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

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

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