I_ATPResultShippingDates

DDL: I_ATPRESULTSHIPPINGDATES SQL: IATPRESULTSCHED Type: view BASIC

ATP Result Shipping Dates

I_ATPResultShippingDates is a Basic CDS View that provides data about "ATP Result Shipping Dates" in SAP S/4HANA. It reads from 1 data source (atp_result_sched) and exposes 35 fields with key fields ATPCheckUUID, ATPRelevantDocumentCategory, ATPRelevantDocument, ATPRelevantDocumentItem, ATPRelevantDocScheduleLine. It has 3 associations to related views.

Data Sources (1)

SourceAliasJoin Type
atp_result_sched atp_result_sched from

Associations (3)

CardinalityTargetAliasCondition
[1..1] I_ATPResultHeader _Header $projection.ATPCheckUUID = _Header.ATPCheckUUID
[1..1] 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 and $projection.ATPCheckResultIndicator = _Details.ATPCheckResultIndicator and $projection.ATPCheckRelevantDate = _Details.ATPCheckRelevantDate
[0..1] I_ATPRlvtDocumentCategory _ATPRlvtDocumentCategory $projection.ATPRelevantDocumentCategory = _ATPRlvtDocumentCategory.ATPRelevantDocumentCategory

Annotations (10)

NameValueLevelField
VDM.viewType #BASIC view
AbapCatalog.sqlViewName IATPRESULTSCHED 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
EndUserText.label ATP Result Shipping Dates view

Fields (35)

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
KEY ATPCheckResultIndicator resind Result Ind.
KEY ATPCheckRelevantDate atpdate Reqmts date
ProductAvailabilityDate mat_avail_date Mat.Avail.Date
ProductAvailabilityTime mat_avail_time Matl Staging Tme
ProductAvailabilityTimeZone mat_avail_timezone Time Zone
ProductAvailabilityUTCDateTime
TransportationPlanningDate trans_dispo_date TranspPlngDate
TransportationPlanningTime trans_dispo_time Tr. Plan. Time
TransportationPlanningTimeZone trans_dispo_timezone Time Zone
TranspPlanningUTCDateTime
LoadingDate loading_date Loading Date
LoadingTime loading_time Loading Time
LoadingTimeZone loading_timezone Time Zone
LoadingUTCDateTime
GoodsIssueDate goods_issue_date Goods Issue Date CCD
GoodsIssueTime goods_issue_time GI Time
GoodsIssueTimeZone goods_issue_timezone Time Zone
GoodsIssueUTCDateTime
DeliveryDate delivery_date Time Stamp
DeliveryTime delivery_time TimeOfDelivery
DeliveryTimeZone delivery_timezone Time Zone
DeliveryUTCDateTime
UnloadingDate unloading_date GR End Date
UnloadingTime unloading_time GR End Time
UnloadingTimeZone unloading_timezone Time Zone
UnloadingUTCDateTime
_Header _Header
_Details _Details
_ATPRlvtDocumentCategory _ATPRlvtDocumentCategory

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_ATPResultShippingDates.
-- 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: IATPRESULTSCHED

CREATE VIEW I_ATPResultShippingDates AS
SELECT
  cid AS ATPCheckUUID,
  atpcat AS ATPRelevantDocumentCategory,
  delnr AS ATPRelevantDocument,
  delps AS ATPRelevantDocumentItem,
  delet AS ATPRelevantDocScheduleLine,
  item_type AS ATPCheckItemType,
  resind AS ATPCheckResultIndicator,
  atpdate AS ATPCheckRelevantDate,
  mat_avail_date AS ProductAvailabilityDate,
  mat_avail_time AS ProductAvailabilityTime,
  mat_avail_timezone AS ProductAvailabilityTimeZone,
  cast(dats_tims_to_tstmp(mat_avail_date, mat_avail_time, mat_avail_timezone, $session.client, 'NULL') as timestamp preserving type) AS ProductAvailabilityUTCDateTime,
  trans_dispo_date AS TransportationPlanningDate,
  trans_dispo_time AS TransportationPlanningTime,
  trans_dispo_timezone AS TransportationPlanningTimeZone,
  cast(dats_tims_to_tstmp(trans_dispo_date, trans_dispo_time, trans_dispo_timezone, $session.client, 'NULL') as timestamp preserving type) AS TranspPlanningUTCDateTime,
  loading_date AS LoadingDate,
  loading_time AS LoadingTime,
  loading_timezone AS LoadingTimeZone,
  cast(dats_tims_to_tstmp(loading_date, loading_time, loading_timezone, $session.client, 'NULL') as timestamp preserving type) AS LoadingUTCDateTime,
  goods_issue_date AS GoodsIssueDate,
  goods_issue_time AS GoodsIssueTime,
  goods_issue_timezone AS GoodsIssueTimeZone,
  cast(dats_tims_to_tstmp(goods_issue_date, goods_issue_time, goods_issue_timezone, $session.client, 'NULL') as timestamp preserving type) AS GoodsIssueUTCDateTime,
  delivery_date AS DeliveryDate,
  delivery_time AS DeliveryTime,
  delivery_timezone AS DeliveryTimeZone,
  cast(dats_tims_to_tstmp(delivery_date, delivery_time, delivery_timezone, $session.client, 'NULL') as timestamp preserving type) AS DeliveryUTCDateTime,
  unloading_date AS UnloadingDate,
  unloading_time AS UnloadingTime,
  unloading_timezone AS UnloadingTimeZone,
  cast(dats_tims_to_tstmp(unloading_date, unloading_time, unloading_timezone, $session.client, 'NULL') as timestamp preserving type) AS UnloadingUTCDateTime
FROM atp_result_sched
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 AND ATPCheckResultIndicator = _Details.ATPCheckResultIndicator AND ATPCheckRelevantDate = _Details.ATPCheckRelevantDate  -- association [1..1]
LEFT OUTER JOIN I_ATPRlvtDocumentCategory AS _ATPRlvtDocumentCategory ON ATPRelevantDocumentCategory = _ATPRlvtDocumentCategory.ATPRelevantDocumentCategory  -- association [0..1]
;