I_ATPResultRequirement
ATP Result Requirement
I_ATPResultRequirement is a Basic CDS View that provides data about "ATP Result Requirement" in SAP S/4HANA. It reads from 1 data source (atp_result_item) and exposes 31 fields with key fields ATPCheckUUID, ATPRelevantDocumentCategory, ATPRelevantDocument, ATPRelevantDocumentItem, ATPRelevantDocScheduleLine. It has 11 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| atp_result_item | atp_result_item | from |
Associations (11)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_ATPResultHeader | _Header | $projection.ATPCheckUUID = _Header.ATPCheckUUID |
| [0..*] | I_ATPResultDetail | _Details | $projection.ATPCheckUUID = _Details.ATPCheckUUID and $projection.ATPRelevantDocument = _Details.ATPRelevantDocument and $projection.ATPRelevantDocumentItem = _Details.ATPRelevantDocumentItem and $projection.ATPRelevantDocScheduleLine = _Details.ATPRelevantDocScheduleLine and $projection.ATPRelevantDocumentCategory = _Details.ATPRelevantDocumentCategory and $projection.ATPCheckItemType = _Details.ATPCheckItemType |
| [0..1] | I_ATPRlvtDocumentCategory | _ATPRlvtDocumentCategory | $projection.ATPRelevantDocumentCategory = _ATPRlvtDocumentCategory.ATPRelevantDocumentCategory |
| [0..1] | I_Product | _Material | $projection.Material = _Material.Product |
| [0..1] | I_Plant | _Plant | $projection.Plant = _Plant.Plant |
| [0..1] | I_InventorySpecialStockType | _InventorySpecialStockType | $projection.InventorySpecialStockType = _InventorySpecialStockType.InventorySpecialStockType |
| [0..1] | I_StorageLocation | _StorageLocation | $projection.Plant = _StorageLocation.Plant and $projection.StorageLocation = _StorageLocation.StorageLocation |
| [0..1] | I_Batch | _Batch | $projection.Material = _Batch.Material and $projection.Plant = _Batch.Plant and $projection.Batch = _Batch.Batch |
| [0..1] | I_ABOPSegment | _Segment | $projection.ABOPSegmentUUID = _Segment.ABOPSegmentUUID |
| [0..1] | I_ABOPStrategy | _ConfirmationStrategy | $projection.ABOPConfirmationStrategy = _ConfirmationStrategy.ABOPConfirmationStrategy |
| [0..1] | I_UnitOfMeasure | _BaseUnit | $projection.BaseUnit = _BaseUnit.UnitOfMeasure |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | ATP Result Requirement | view | |
| VDM.viewType | #BASIC | view | |
| AbapCatalog.sqlViewName | IATPRESULTRQMT | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (31)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ATPCheckUUID | cid | Holiday Cal. ID | |
| KEY | ATPRelevantDocumentCategory | atpcat | MRP Elmnt Ind. | |
| KEY | ATPRelevantDocument | delnr | Order No.(OLTP) | |
| KEY | ATPRelevantDocumentItem | delps | Order Item | |
| KEY | ATPRelevantDocScheduleLine | delet | Scheduling | |
| KEY | ATPCheckItemType | item_type | Type | |
| Material | material | Vehicle Model | ||
| Plant | plant | Valuation Area | ||
| InventorySpecialStockType | sobkz | Special Stock | ||
| StorageLocation | lgort | Sublocation | ||
| Batch | batch | Lot No. | ||
| ATPCheckingRule | prreg | Checking rule | ||
| ATPDocumentTransactionType | trtyp | Transact. type | ||
| ABOPConfirmationStrategy | bop_strategy | Confirmation Strategy | ||
| ABOPSegmentUUID | BOP Segment UUID | |||
| ATPCheckItemStatus | Workflow Status | |||
| ATPCheckRqmtEvaluationSequence | sequence | Visit Sequence | ||
| BaseUnit | base_uom | Weight UoM | ||
| ATPRlvtDocItmIsSupAssgmtRlvt | arun_relevant | Assgmt Relevant | ||
| SupAssgmtItemStatus | arun_status_reason | Status Reason | ||
| _Header | _Header | |||
| _Details | _Details | |||
| _ATPRlvtDocumentCategory | _ATPRlvtDocumentCategory | |||
| _Material | _Material | |||
| _Plant | _Plant | |||
| _InventorySpecialStockType | _InventorySpecialStockType | |||
| _StorageLocation | _StorageLocation | |||
| _Batch | _Batch | |||
| _Segment | _Segment | |||
| _ConfirmationStrategy | _ConfirmationStrategy | |||
| _BaseUnit | _BaseUnit |
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_ATPResultRequirement.
-- 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: IATPRESULTRQMT
CREATE VIEW I_ATPResultRequirement AS
SELECT
cid AS ATPCheckUUID,
atpcat AS ATPRelevantDocumentCategory,
delnr AS ATPRelevantDocument,
delps AS ATPRelevantDocumentItem,
delet AS ATPRelevantDocScheduleLine,
item_type AS ATPCheckItemType,
Material,
Plant,
sobkz AS InventorySpecialStockType,
lgort AS StorageLocation,
Batch,
prreg AS ATPCheckingRule,
trtyp AS ATPDocumentTransactionType,
bop_strategy AS ABOPConfirmationStrategy,
cast (bop_segment_id as atp_bop_segment_uuid) AS ABOPSegmentUUID,
cast (status as atp_item_status) AS ATPCheckItemStatus,
sequence AS ATPCheckRqmtEvaluationSequence,
base_uom AS BaseUnit,
arun_relevant AS ATPRlvtDocItmIsSupAssgmtRlvt,
arun_status_reason AS SupAssgmtItemStatus
FROM atp_result_item
LEFT OUTER JOIN I_ATPResultHeader AS _Header ON ATPCheckUUID = _Header.ATPCheckUUID -- association [1..1]
LEFT OUTER JOIN I_ATPResultDetail AS _Details ON ATPCheckUUID = _Details.ATPCheckUUID AND ATPRelevantDocument = _Details.ATPRelevantDocument AND ATPRelevantDocumentItem = _Details.ATPRelevantDocumentItem AND ATPRelevantDocScheduleLine = _Details.ATPRelevantDocScheduleLine AND ATPRelevantDocumentCategory = _Details.ATPRelevantDocumentCategory AND ATPCheckItemType = _Details.ATPCheckItemType -- association [0..*]
LEFT OUTER JOIN I_ATPRlvtDocumentCategory AS _ATPRlvtDocumentCategory ON ATPRelevantDocumentCategory = _ATPRlvtDocumentCategory.ATPRelevantDocumentCategory -- association [0..1]
LEFT OUTER JOIN I_Product AS _Material ON Material = _Material.Product -- association [0..1]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant -- association [0..1]
LEFT OUTER JOIN I_InventorySpecialStockType AS _InventorySpecialStockType ON InventorySpecialStockType = _InventorySpecialStockType.InventorySpecialStockType -- association [0..1]
LEFT OUTER JOIN I_StorageLocation AS _StorageLocation ON Plant = _StorageLocation.Plant AND StorageLocation = _StorageLocation.StorageLocation -- association [0..1]
LEFT OUTER JOIN I_Batch AS _Batch ON Material = _Batch.Material AND Plant = _Batch.Plant AND Batch = _Batch.Batch -- association [0..1]
LEFT OUTER JOIN I_ABOPSegment AS _Segment ON ABOPSegmentUUID = _Segment.ABOPSegmentUUID -- association [0..1]
LEFT OUTER JOIN I_ABOPStrategy AS _ConfirmationStrategy ON ABOPConfirmationStrategy = _ConfirmationStrategy.ABOPConfirmationStrategy -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _BaseUnit ON BaseUnit = _BaseUnit.UnitOfMeasure -- association [0..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