C_SubcontrgCockpitDelivery

DDL: C_SUBCONTRGCOCKPITDELIVERY SQL: CSUBCTRCD Type: view CONSUMPTION

Create Delivery

C_SubcontrgCockpitDelivery is a Consumption CDS View that provides data about "Create Delivery" in SAP S/4HANA. It has 3 associations to related views.

Parameters (2)

NameTypeDefault
P_ReqdDelivDteRngeFrmDte vdm_shippingdate
P_ReqdDelivDteRngeToDte vdm_shippingdate

Associations (3)

CardinalityTargetAliasCondition
[0..1] I_ProposedShipgPointPerPlnt _ProposedShipgPointsPerPlnt $projection.Plant = _ProposedShipgPointsPerPlnt.Plant and _ProposedShipgPointsPerPlnt.StorageLocation = ' ' and _ProposedShipgPointsPerPlnt.LoadingGroup = $projection.LoadingGroup and _ProposedShipgPointsPerPlnt.ShippingCondition = $projection.ShippingCondition
[1..1] I_PurgDocTypeShipgData _PurgDocTypeShipgData $projection.Plant = _PurgDocTypeShipgData.SupplyingPlant
[1..1] I_BatchPlant _BatchPlant P_SubcontrgCockpitDelivery.MaterialComponent = _BatchPlant.Material and P_SubcontrgCockpitDelivery.Plant = _BatchPlant.Plant and P_SubcontrgCockpitDelivery.Batch = _BatchPlant.Batch

Annotations (14)

NameValueLevelField
AbapCatalog.sqlViewName CSUBCTRCD view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Create Delivery view
VDM.viewType #CONSUMPTION view
VDM.lifecycle.contract.type #NONE view
ObjectModel.usageType.dataClass #MIXED view
Search.searchable true view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XXL view
AccessControl.personalData.blocking #REQUIRED view
ObjectModel.updateEnabled true view
ObjectModel.createEnabled true view
Metadata.ignorePropagatedAnnotations true view

Fields (27)

KeyFieldSource TableSource FieldDescription
KEY Supplier Subcontractor Supplier
KEY Material
KEY Plant Plant Valuation Area
KEY Reservation Reservation Reservation
KEY ReservationItem ReservationItem Reservation Item
SuplrMatlPlnt SuplrMatlPlnt
HierarchyNodeLevel HierarchyNodeLevel Hierarchy Node Level
char15endasPurchasingDocument Document
char15endasPurchasingDocumentItem Document Item
Batch Batch Lot No.
StorageLocation StorageLocation StorageLocation
Quantity Pending Quantity
StockUnit OrderQuantityUnit Sales Unit
PurchasingDocumentType PurchasingDocumentType RFQ Type
ProposedShippingPoint _ProposedShipgPointsPerPlnt ProposedShippingPoint Shipping Point
GoodsMovementType
InventoryValuationType _BatchPlant InventoryValuationType Valuation Type
DeliveryType _PurgDocTypeShipgData DeliveryType intern./extern.
ShipToParty ShipToParty Ship-To Party (obsolete)
ShipmentCompletionDate
RequiredQuantity Requirement qty
DebitCreditCode DebitCreditCode Single-Character Flag
LoadingGroup LoadingGroup Loading Group
ShippingCondition ShippingCondition Shipping Conditions
SalesOrganization SalesOrganization Sales Organization
DistributionChannel DistributionChannel RefDistCh-Cust/Mat.
int1endasProcessingStatus Processing Status

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_SubcontrgCockpitDelivery.
-- 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: CSUBCTRCD
-- Parameters: P_ReqdDelivDteRngeFrmDte : vdm_shippingdate, P_ReqdDelivDteRngeToDte : vdm_shippingdate

CREATE VIEW C_SubcontrgCockpitDelivery AS
SELECT
  Subcontractor AS Supplier,
  cast ( MaterialComponent as idnrk ) AS Material,
  Plant,
  Reservation,
  ReservationItem,
  SuplrMatlPlnt,
  HierarchyNodeLevel,
  case when PurchasingDocumentType = 'R' then cast ('' as abap.char(15)) else cast (PurchaseOrder as abap.char(15)) end as PurchasingDocument AS char15endasPurchasingDocument,
  case when PurchasingDocumentType = 'R' then cast ('' as abap.char(15)) else cast (PurchaseOrderItem as abap.char(15)) end as PurchasingDocumentItem AS char15endasPurchasingDocumentItem,
  Batch,
  StorageLocation,
  cast (StillToBeDeliveredQuantity as abap.quan( 13, 3 )) AS Quantity,
  OrderQuantityUnit AS StockUnit,
  PurchasingDocumentType,
  _ProposedShipgPointsPerPlnt.ProposedShippingPoint AS ProposedShippingPoint,
  cast ('541' as bwart ) AS GoodsMovementType,
  _BatchPlant.InventoryValuationType AS InventoryValuationType,
  _PurgDocTypeShipgData.DeliveryType AS DeliveryType,
  ShipToParty,
  cast (ShipmentCompletionDate as abap.char(8)) AS ShipmentCompletionDate,
  cast (RequiredQuantity as abap.quan( 13, 3 )) AS RequiredQuantity,
  DebitCreditCode,
  LoadingGroup,
  ShippingCondition,
  SalesOrganization,
  DistributionChannel,
  case when (Plant <> '' and _ProposedShipgPointsPerPlnt.ProposedShippingPoint <> '' and StillToBeDeliveredQuantity > 0 and OrderQuantityUnit <> '') then cast (1 as abap.int1) else cast (0 as abap.int1) end as ProcessingStatus AS int1endasProcessingStatus
LEFT OUTER JOIN I_ProposedShipgPointPerPlnt AS _ProposedShipgPointsPerPlnt ON Plant = _ProposedShipgPointsPerPlnt.Plant AND _ProposedShipgPointsPerPlnt.StorageLocation = ' ' AND _ProposedShipgPointsPerPlnt.LoadingGroup = LoadingGroup AND _ProposedShipgPointsPerPlnt.ShippingCondition = ShippingCondition  -- association [0..1]
LEFT OUTER JOIN I_PurgDocTypeShipgData AS _PurgDocTypeShipgData ON Plant = _PurgDocTypeShipgData.SupplyingPlant  -- association [1..1]
LEFT OUTER JOIN I_BatchPlant AS _BatchPlant ON P_SubcontrgCockpitDelivery.MaterialComponent = _BatchPlant.Material AND P_SubcontrgCockpitDelivery.Plant = _BatchPlant.Plant AND P_SubcontrgCockpitDelivery.Batch = _BatchPlant.Batch  -- association [1..1]
;