C_MRPSchedulingAgreementCard

DDL: C_MRPSCHEDULINGAGREEMENTCARD Type: view_entity CONSUMPTION Package: ODATA_PP_MRP

Scheduling Agreement Quick View

C_MRPSchedulingAgreementCard is a Consumption CDS View that provides data about "Scheduling Agreement Quick View" in SAP S/4HANA. It reads from 3 data sources (I_SalesDocumentScheduleLine, I_SalesSchedgAgrmt, I_SalesSchedgAgrmtItem) and exposes 21 fields with key fields SalesSchedulingAgreement, SalesSchedulingAgreementItem, ScheduleLine. It has 2 associations to related views. It is exposed through 5 OData services (ASQL_F0246A, ASQL_F0263A, ASQL_F7681, ...). Part of development package ODATA_PP_MRP.

Data Sources (3)

SourceAliasJoin Type
I_SalesDocumentScheduleLine _SalesDocumentScheduleLine inner
I_SalesSchedgAgrmt _SchedulingAgreement inner
I_SalesSchedgAgrmtItem _SchedulingAgreementItem from

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_Customer _Customer $projection.SoldToParty = _Customer.Customer
[0..1] I_MRPElementCategoryText _MRPElementCategoryText _MRPElementCategoryText.MRPElementCategory = 'VE' and _MRPElementCategoryText.Language = $session.system_language

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Scheduling Agreement Quick View view
Metadata.ignorePropagatedAnnotations true view
VDM.viewType #CONSUMPTION view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #MIXED view

OData Services (5)

ServiceBindingVersionContractRelease
ASQL_F0246A ASQL_F0246A C2 NOT_RELEASED
ASQL_F0263A ASQL_F0263A C2 NOT_RELEASED
ASQL_F7681 ASQL_F7681 C2 NOT_RELEASED
UI_MRPREQUIREMENT UI_MRPREQUIREMENT V4 C1 NOT_RELEASED
UI_MULTILEVELORDERREPORT UI_MULTILEVELORDERREPORT V4 C1 NOT_RELEASED

Fields (21)

KeyFieldSource TableSource FieldDescription
KEY SalesSchedulingAgreement I_SalesSchedgAgrmtItem SalesSchedulingAgreement Sales Document
KEY SalesSchedulingAgreementItem I_SalesSchedgAgrmtItem SalesSchedulingAgreementItem Item
KEY ScheduleLine I_SalesDocumentScheduleLine ScheduleLine Schedule Line
SoldToParty I_SalesSchedgAgrmt SoldToParty Sold-to Party
SoldToPartyName _Customer CustomerName Name of Customer
SalesSchedgAgrmtDate I_SalesSchedgAgrmt SalesSchedgAgrmtDate Document Date
LoadingDate I_SalesDocumentScheduleLine LoadingDate Loading Date
RequestedDeliveryDate I_SalesDocumentScheduleLine RequestedDeliveryDate Requested Delivery Date
OrderQuantity I_SalesSchedgAgrmtItem OrderQuantity Quantity
OrderQuantityUnit I_SalesSchedgAgrmtItem OrderQuantityUnit Sales Unit
Material I_SalesSchedgAgrmtItem Product Product Sold
ProductName
MaterialByCustomer I_SalesSchedgAgrmtItem MaterialByCustomer Customer Mat.
UICT_CustomerMaterialHidden
PurchaseOrderByCustomer I_SalesSchedgAgrmtItem PurchaseOrderByCustomer Purchase Order Number
UICT_DeliveryIsBlocked
DelivBlockReasonForSchedLine I_SalesDocumentScheduleLine DelivBlockReasonForSchedLine Delivery Block
DeliveryBlockReasonText
UICT_DeliveryBlockReason
DeliveredQuantityInBaseUnit I_SalesDocumentScheduleLine DeliveredQuantityInBaseUnit Delivered Qty
BaseUnit I_SalesDocumentScheduleLine BaseUnit Unit of Measure

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 C_MRPSchedulingAgreementCard.
-- 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 C_MRPSchedulingAgreementCard AS
SELECT
  _SchedulingAgreementItem.SalesSchedulingAgreement AS SalesSchedulingAgreement,
  _SchedulingAgreementItem.SalesSchedulingAgreementItem AS SalesSchedulingAgreementItem,
  _SalesDocumentScheduleLine.ScheduleLine AS ScheduleLine,
  _SchedulingAgreement.SoldToParty AS SoldToParty,
  _Customer.CustomerName AS SoldToPartyName,
  _SchedulingAgreement.SalesSchedgAgrmtDate AS SalesSchedgAgrmtDate,
  _SalesDocumentScheduleLine.LoadingDate AS LoadingDate,
  _SalesDocumentScheduleLine.RequestedDeliveryDate AS RequestedDeliveryDate,
  _SchedulingAgreementItem.OrderQuantity AS OrderQuantity,
  _SchedulingAgreementItem.OrderQuantityUnit AS OrderQuantityUnit,
  _SchedulingAgreementItem.Product AS Material,
  _SchedulingAgreementItem._Product._Text[1:Language = $session.system_language].ProductName AS ProductName,
  _SchedulingAgreementItem.MaterialByCustomer AS MaterialByCustomer,
  cast ( case when _SchedulingAgreementItem.MaterialByCustomer is initial then 'X' else '' end as boolean preserving type ) AS UICT_CustomerMaterialHidden,
  _SchedulingAgreementItem.PurchaseOrderByCustomer AS PurchaseOrderByCustomer,
  cast ( '' as abap.char( 25 ) ) AS UICT_DeliveryIsBlocked,
  _SalesDocumentScheduleLine.DelivBlockReasonForSchedLine AS DelivBlockReasonForSchedLine,
  _SalesDocumentScheduleLine._DelivBlockReasonForSchedLine._Text[1:Language = $session.system_language].DeliveryBlockReasonText AS DeliveryBlockReasonText,
  cast ( case when _SalesDocumentScheduleLine.DelivBlockReasonForSchedLine is initial then 'X' else '' end as boolean preserving type ) AS UICT_DeliveryBlockReason,
  _SalesDocumentScheduleLine.DeliveredQuantityInBaseUnit AS DeliveredQuantityInBaseUnit,
  _SalesDocumentScheduleLine.BaseUnit AS BaseUnit
FROM I_SalesSchedgAgrmtItem AS _SchedulingAgreementItem
INNER JOIN I_SalesSchedgAgrmt AS _SchedulingAgreement ON /* join condition not captured in parsed metadata */
INNER JOIN I_SalesDocumentScheduleLine AS _SalesDocumentScheduleLine ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_Customer AS _Customer ON SoldToParty = _Customer.Customer  -- association [0..1]
LEFT OUTER JOIN I_MRPElementCategoryText AS _MRPElementCategoryText ON _MRPElementCategoryText.MRPElementCategory = 'VE' AND _MRPElementCategoryText.Language = $session.system_language  -- association [0..1]
;