I_ATPResultRequirement

DDL: I_ATPRESULTREQUIREMENT SQL: IATPRESULTRQMT Type: view BASIC

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)

SourceAliasJoin Type
atp_result_item atp_result_item from

Associations (11)

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

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

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