C_ServiceOrderAdvanceShipment

DDL: C_SERVICEORDERADVANCESHIPMENT Type: view_entity CONSUMPTION

Service Order Advance Shipment

C_ServiceOrderAdvanceShipment is a Consumption CDS View that provides data about "Service Order Advance Shipment" in SAP S/4HANA. It reads from 1 data source (R_SrvcOrdAdvanceShippedStock) and exposes 34 fields with key fields ServiceOrder, Material, Plant. It has 10 associations to related views.

Data Sources (1)

SourceAliasJoin Type
R_SrvcOrdAdvanceShippedStock _SrvcOrdAdvanceShippedStock from

Associations (10)

CardinalityTargetAliasCondition
[0..1] R_SrvcOrdAdvncShpdStkConsumed _SrvcOrdAdvncShpdStkConsumed $projection.ServiceOrder = _SrvcOrdAdvncShpdStkConsumed.ServiceDocument and _SrvcOrdAdvanceShippedStock.Material = _SrvcOrdAdvncShpdStkConsumed.Material and _SrvcOrdAdvanceShippedStock.Plant = _SrvcOrdAdvncShpdStkConsumed.Plant
[0..1] R_SrvcOrdAdvncShptSalesOrder _SrvcOrdAdvncShptSalesOrder $projection.ServiceOrder = _SrvcOrdAdvncShptSalesOrder.ServiceDocument and _SrvcOrdAdvanceShippedStock.Material = _SrvcOrdAdvncShptSalesOrder.Material and _SrvcOrdAdvanceShippedStock.Plant = _SrvcOrdAdvncShptSalesOrder.Plant
[0..1] I_SrvcDocLifecycleStatus _SrvcDocLifecycleStatus $projection.ServiceOrderStatus = _SrvcDocLifecycleStatus.ServiceDocumentStatus
[0..1] I_BusinessPartner _SoldToParty $projection.SoldToParty = _SoldToParty.BusinessPartner
[1..1] I_ServiceDocumentType _ServiceDocumentType $projection.ServiceDocumentType = _ServiceDocumentType.ServiceDocumentType
[0..1] I_SalesOrganization _SalesOrganization $projection.SalesOrganization = _SalesOrganization.SalesOrganization
[0..1] I_SrvcMgmtOrganizationUnit _ServiceOrganizationOrgUnit $projection.ServiceOrganization = _ServiceOrganizationOrgUnit.OrgUnitTypeIDConcatenated
[0..1] C_SrvcMgmtSoldToPartyQuickVw _SrvcMgmtSoldToPartyQuickVw $projection.SoldToParty = _SrvcMgmtSoldToPartyQuickVw.BusinessPartner
[0..1] I_Material _Material $projection.Material = _Material.Material
[0..1] I_Plant _Plant $projection.Plant = _Plant.Plant

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Service Order Advance Shipment view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #CONSUMPTION view
UI.headerInfo.typeNamePlural Advance Shipment Stock view

Fields (34)

KeyFieldSource TableSource FieldDescription
KEY ServiceOrder ServiceDocument Service Order
KEY Material Material Material
KEY Plant Plant Plant
MaterialName Material Description
PlantName _Plant PlantName Plant Name
SalesOrganization SalesOrganization Sales Organization
SalesOrganizationName
ServiceOrganization ServiceOrganization Service Organization
ServiceOrganizationName
OrderQuantityUnit _SrvcOrdAdvncShptSalesOrder OrderQuantityUnit Ordered Quantity Unit
OrderedQuantity _SrvcOrdAdvncShptSalesOrder OrderedQuantity Ordered Quantity
DeliveredQuantityUnit R_SrvcOrdAdvanceShippedStock DeliveredQuantityUnit Delivered Quantity Unit
DeliveredQuantity R_SrvcOrdAdvanceShippedStock DeliveredQuantity Delivered Quantity
AdvncShpdConsumedQuantityUnit _SrvcOrdAdvncShpdStkConsumed AdvncShpdConsumedQuantityUnit Consumed Quantity Unit
AdvanceShippedConsumedQuantity Consumed Quantity
OpenAdvncShippedQuantityUnit R_SrvcOrdAdvanceShippedStock DeliveredQuantityUnit Unutilized Quantity Unit
ServiceDocumentDescription ServiceDocumentDescription Service Order Description
SoldToParty Customer Sold-To Party
SoldToPartyName _SoldToParty BusinessPartnerName Sold-To Party
ServiceDocumentType ServiceDocumentType Service Order Type
ServiceDocumentTypeName
ServiceOrderStatus ServiceDocumentStatus Service Order Status
ServiceDocumentStatusName
ServiceDocCreationDateTime ServiceDocCreationDateTime Created at
RespEmployeeBusinessPartnerId RespEmployeeBusinessPartnerId
SalesOffice SalesOffice Sales Office
SalesGroup SalesGroup Sales Group
Division Division Internal Division ID
DistributionChannel DistributionChannel RefDistCh-Cust/Mat.
SalesOrganizationOrgUnitID SalesOrganizationOrgUnitID
SalesOfficeOrgUnitID SalesOfficeOrgUnitID
SalesGroupOrgUnitID SalesGroupOrgUnitID
ServiceObjectType ServiceObjectType Object Type
_SrvcMgmtSoldToPartyQuickVw _SrvcMgmtSoldToPartyQuickVw

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_ServiceOrderAdvanceShipment.
-- 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_ServiceOrderAdvanceShipment AS
SELECT
  ServiceDocument AS ServiceOrder,
  Material,
  Plant,
  _Material._Text[1: Language=$session.system_language].MaterialName AS MaterialName,
  _Plant.PlantName AS PlantName,
  SalesOrganization,
  _SalesOrganization._Text[1: Language=$session.system_language].SalesOrganizationName AS SalesOrganizationName,
  ServiceOrganization,
  _ServiceOrganizationOrgUnit._Text[1: Language=$session.system_language].OrganizationalUnitName AS ServiceOrganizationName,
  _SrvcOrdAdvncShptSalesOrder.OrderQuantityUnit AS OrderQuantityUnit,
  _SrvcOrdAdvncShptSalesOrder.OrderedQuantity AS OrderedQuantity,
  _SrvcOrdAdvanceShippedStock.DeliveredQuantityUnit AS DeliveredQuantityUnit,
  _SrvcOrdAdvanceShippedStock.DeliveredQuantity AS DeliveredQuantity,
  _SrvcOrdAdvncShpdStkConsumed.AdvncShpdConsumedQuantityUnit AS AdvncShpdConsumedQuantityUnit,
  cast(_SrvcOrdAdvncShpdStkConsumed.AdvanceShippedConsumedQuantity as abap.quan( 13,0 )) AS AdvanceShippedConsumedQuantity,
  _SrvcOrdAdvanceShippedStock.DeliveredQuantityUnit AS OpenAdvncShippedQuantityUnit,
  ServiceDocumentDescription,
  Customer AS SoldToParty,
  _SoldToParty.BusinessPartnerName AS SoldToPartyName,
  ServiceDocumentType,
  _ServiceDocumentType._ServiceDocumentTypeText[1: Language=$session.system_language].ServiceDocumentTypeName AS ServiceDocumentTypeName,
  ServiceDocumentStatus AS ServiceOrderStatus,
  _SrvcDocLifecycleStatus._ServiceDocumentStatusText[1: Language=$session.system_language].ServiceDocumentStatusName AS ServiceDocumentStatusName,
  ServiceDocCreationDateTime,
  RespEmployeeBusinessPartnerId,
  SalesOffice,
  SalesGroup,
  Division,
  DistributionChannel,
  SalesOrganizationOrgUnitID,
  SalesOfficeOrgUnitID,
  SalesGroupOrgUnitID,
  ServiceObjectType
FROM R_SrvcOrdAdvanceShippedStock AS _SrvcOrdAdvanceShippedStock
LEFT OUTER JOIN R_SrvcOrdAdvncShpdStkConsumed AS _SrvcOrdAdvncShpdStkConsumed ON ServiceOrder = _SrvcOrdAdvncShpdStkConsumed.ServiceDocument AND _SrvcOrdAdvanceShippedStock.Material = _SrvcOrdAdvncShpdStkConsumed.Material AND _SrvcOrdAdvanceShippedStock.Plant = _SrvcOrdAdvncShpdStkConsumed.Plant  -- association [0..1]
LEFT OUTER JOIN R_SrvcOrdAdvncShptSalesOrder AS _SrvcOrdAdvncShptSalesOrder ON ServiceOrder = _SrvcOrdAdvncShptSalesOrder.ServiceDocument AND _SrvcOrdAdvanceShippedStock.Material = _SrvcOrdAdvncShptSalesOrder.Material AND _SrvcOrdAdvanceShippedStock.Plant = _SrvcOrdAdvncShptSalesOrder.Plant  -- association [0..1]
LEFT OUTER JOIN I_SrvcDocLifecycleStatus AS _SrvcDocLifecycleStatus ON ServiceOrderStatus = _SrvcDocLifecycleStatus.ServiceDocumentStatus  -- association [0..1]
LEFT OUTER JOIN I_BusinessPartner AS _SoldToParty ON SoldToParty = _SoldToParty.BusinessPartner  -- association [0..1]
LEFT OUTER JOIN I_ServiceDocumentType AS _ServiceDocumentType ON ServiceDocumentType = _ServiceDocumentType.ServiceDocumentType  -- association [1..1]
LEFT OUTER JOIN I_SalesOrganization AS _SalesOrganization ON SalesOrganization = _SalesOrganization.SalesOrganization  -- association [0..1]
LEFT OUTER JOIN I_SrvcMgmtOrganizationUnit AS _ServiceOrganizationOrgUnit ON ServiceOrganization = _ServiceOrganizationOrgUnit.OrgUnitTypeIDConcatenated  -- association [0..1]
LEFT OUTER JOIN C_SrvcMgmtSoldToPartyQuickVw AS _SrvcMgmtSoldToPartyQuickVw ON SoldToParty = _SrvcMgmtSoldToPartyQuickVw.BusinessPartner  -- association [0..1]
LEFT OUTER JOIN I_Material AS _Material ON Material = _Material.Material  -- association [0..1]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant  -- association [0..1]
;