P_RtgMainHeaderSrchMod
Bill of Operations
P_RtgMainHeaderSrchMod is a Basic CDS View that provides data about "Bill of Operations" in SAP S/4HANA. It reads from 1 data source (plkz) and exposes 20 fields with key fields BillOfOperationsType, BillOfOperationsGroup, BillOfOperationsVariant. It has 6 associations to related views. Part of development package PPH_ROUTING.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| plkz | plkz | from |
Associations (6)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_BillOfOperationsType | _BillOfOperationsType | $projection.BillOfOperationsType = _BillOfOperationsType.BillOfOperationsType |
| [0..1] | I_BillOfOperationsVersionType | _BillOfOperationsVersionType | $projection.BillOfOperationsVersionType = _BillOfOperationsVersionType.BillOfOperationsVersionType |
| [1..1] | I_BillOfOperationsGroup | _BillOfOperationsGroup | $projection.BillOfOperationsType = _BillOfOperationsGroup.BillOfOperationsType and $projection.BillOfOperationsGroup = _BillOfOperationsGroup.BillOfOperationsGroup -- to child: Change State of Root |
| [1..*] | I_BillOfOperationsChangeState | _BillOfOperationsChangeState | $projection.BillOfOperationsType = _BillOfOperationsChangeState.BillOfOperationsType and $projection.BillOfOperationsGroup = _BillOfOperationsChangeState.BillOfOperationsGroup and $projection.BillOfOperationsVariant = _BillOfOperationsChangeState.BillOfOperationsVariant -- to child: Sequences |
| [1..*] | I_BillOfOperationsSequence | _BillOfOperationsSequence | $projection.BillOfOperationsType = _BillOfOperationsSequence.BillOfOperationsType and $projection.BillOfOperationsGroup = _BillOfOperationsSequence.BillOfOperationsGroup and $projection.BillOfOperationsVariant = _BillOfOperationsSequence.BillOfOperationsVariant -- to child: Material to BOO assignment |
| [1..*] | I_BOOMaterialAssignment | _BOOMaterialAssignment | $projection.BillOfOperationsType = _BOOMaterialAssignment.BillOfOperationsType and $projection.BillOfOperationsGroup = _BOOMaterialAssignment.BillOfOperationsGroup and $projection.BillOfOperationsVariant = _BOOMaterialAssignment.BillOfOperationsVariant |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| ObjectModel.compositionRoot | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| VDM.viewType | #BASIC | view | |
| ObjectModel.representativeKey | BillOfOperationsVariant | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| VDM.private | true | view |
Fields (20)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | BillOfOperationsType | plkz | plnty | Task List Type |
| KEY | BillOfOperationsGroup | plkz | plnnr | Task List Group |
| KEY | BillOfOperationsVariant | plkz | plnal | Referenced BOO Variant |
| BillOfOperationsVersionType | plkz | subtype | Version Profile | |
| BillOfOperationsSubtype | plkz | subtype | Version Profile | |
| LastUsageDate | plkz | abdat | Store Until | |
| NumberOfUsages | plkz | abanz | No. of Periods | |
| HasChangeNumber | plkz | flg_ecm | Change no. ind. | |
| HasParameterEffectivity | plkz | flg_ecm_par | Param.Eff.Ind. | |
| aedatasLastChangeDate | ||||
| LastChangeTime | plkz | aeuzeit | Changed at | |
| LastChangedByUser | ||||
| RoutingIsReworkRouting | plkz | rework | Rework Routing | |
| ProdnProcgIsFlexible | plkz | relaxed | Flexible | |
| _BOOMaterialAssignment | _BOOMaterialAssignment | |||
| _BillOfOperationsChangeState | _BillOfOperationsChangeState | |||
| _BillOfOperationsGroup | _BillOfOperationsGroup | |||
| _BillOfOperationsSequence | _BillOfOperationsSequence | |||
| _BillOfOperationsType | _BillOfOperationsType | |||
| _BillOfOperationsVersionType | _BillOfOperationsVersionType |
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_RtgMainHeaderSrchMod.
-- 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 P_RtgMainHeaderSrchMod AS
SELECT
plkz.plnty AS BillOfOperationsType,
plkz.plnnr AS BillOfOperationsGroup,
plkz.plnal AS BillOfOperationsVariant,
plkz.subtype AS BillOfOperationsVersionType,
plkz.subtype AS BillOfOperationsSubtype,
plkz.abdat AS LastUsageDate,
plkz.abanz AS NumberOfUsages,
plkz.flg_ecm AS HasChangeNumber,
plkz.flg_ecm_par AS HasParameterEffectivity,
plkz.aeuzeit AS LastChangeTime,
cast(plkz.aenam as vdm_lastchangedbyuserid preserving type) AS LastChangedByUser,
plkz.rework AS RoutingIsReworkRouting,
plkz.relaxed AS ProdnProcgIsFlexible
FROM plkz
LEFT OUTER JOIN I_BillOfOperationsType AS _BillOfOperationsType ON BillOfOperationsType = _BillOfOperationsType.BillOfOperationsType -- association [1..1]
LEFT OUTER JOIN I_BillOfOperationsVersionType AS _BillOfOperationsVersionType ON BillOfOperationsVersionType = _BillOfOperationsVersionType.BillOfOperationsVersionType -- association [0..1]
LEFT OUTER JOIN I_BillOfOperationsGroup AS _BillOfOperationsGroup ON BillOfOperationsType = _BillOfOperationsGroup.BillOfOperationsType AND BillOfOperationsGroup = _BillOfOperationsGroup.BillOfOperationsGroup -- association [1..1]
LEFT OUTER JOIN I_BillOfOperationsChangeState AS _BillOfOperationsChangeState ON BillOfOperationsType = _BillOfOperationsChangeState.BillOfOperationsType AND BillOfOperationsGroup = _BillOfOperationsChangeState.BillOfOperationsGroup AND BillOfOperationsVariant = _BillOfOperationsChangeState.BillOfOperationsVariant -- association [1..*]
LEFT OUTER JOIN I_BillOfOperationsSequence AS _BillOfOperationsSequence ON BillOfOperationsType = _BillOfOperationsSequence.BillOfOperationsType AND BillOfOperationsGroup = _BillOfOperationsSequence.BillOfOperationsGroup AND BillOfOperationsVariant = _BillOfOperationsSequence.BillOfOperationsVariant -- association [1..*]
LEFT OUTER JOIN I_BOOMaterialAssignment AS _BOOMaterialAssignment ON BillOfOperationsType = _BOOMaterialAssignment.BillOfOperationsType AND BillOfOperationsGroup = _BOOMaterialAssignment.BillOfOperationsGroup AND BillOfOperationsVariant = _BOOMaterialAssignment.BillOfOperationsVariant -- association [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