A_ProductSalesDelivery

DDL: A_PRODUCTSALESDELIVERY SQL: APRODSALESDELIV Type: view COMPOSITE Package: VDM_MD_PRODUCT_API_V1

Sales Organization Data

A_ProductSalesDelivery is a Composite CDS View that provides data about "Sales Organization Data" in SAP S/4HANA. It reads from 1 data source (I_ProductSalesDelivery) and exposes 44 fields with key fields Product, ProductSalesOrg, ProductDistributionChnl. It has 4 associations to related views. Part of development package VDM_MD_PRODUCT_API_V1.

Data Sources (1)

SourceAliasJoin Type
I_ProductSalesDelivery SalesDelivery from

Associations (4)

CardinalityTargetAliasCondition
[0..1] E_Productsalesdelivery _ProdSalesDeliveryExt $projection.Product = _ProdSalesDeliveryExt.Product and $projection.ProductSalesOrg = _ProdSalesDeliveryExt.ProductSalesOrganization and $projection.ProductDistributionChnl = _ProdSalesDeliveryExt.ProductDistributionChannel
[0..*] A_ProductSalesText _SalesText $projection.Product = _SalesText.Product and $projection.ProductSalesOrg = _SalesText.ProductSalesOrg and $projection.ProductDistributionChnl = _SalesText.ProductDistributionChnl
[0..*] A_ProductSalesTax _SalesTax $projection.Product = _SalesTax.Product
[1..1] A_Product _Product $projection.Product = _Product.Product

Annotations (14)

NameValueLevelField
AbapCatalog.sqlViewName APRODSALESDELIV view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
EndUserText.label Sales Organization Data view
AccessControl.authorizationCheck #CHECK view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #PUBLIC_REMOTE_API view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MASTER view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.createEnabled true view
ObjectModel.updateEnabled true view

Fields (44)

KeyFieldSource TableSource FieldDescription
KEY Product Product Product Sold
KEY ProductSalesOrg ProductSalesOrg Sales Org.
KEY ProductDistributionChnl ProductDistributionChnl Distr. Channel
MinimumOrderQuantity MinimumOrderQuantity Minimum Order Quantity
SupplyingPlant SupplyingPlant Supplying Plant
PriceSpecificationProductGroup PriceSpecificationProductGroup Prd.Price Grp
AccountDetnProductGroup AccountDetnProductGroup AcctAssmtGrpPrd
DeliveryNoteProcMinDelivQty DeliveryNoteProcMinDelivQty Min. dely qty
ItemCategoryGroup ItemCategoryGroup Item Cat. Group
DeliveryQuantityUnit DeliveryQuantityUnit Unit of measure
DeliveryQuantity DeliveryQuantity Delivery unit
ProductSalesStatus ProductSalesStatus Status
ProductSalesStatusValidityDate ProductSalesStatusValidityDate Valid From
SalesMeasureUnit SalesMeasureUnit Sales unit
IsMarkedForDeletion IsMarkedForDeletion Purch.org. data
ProductHierarchy ProductHierarchy Prod.hierarchy
FirstSalesSpecProductGroup FirstSalesSpecProductGroup ProductGroup 1
SecondSalesSpecProductGroup SecondSalesSpecProductGroup ProductGroup 2
ThirdSalesSpecProductGroup ThirdSalesSpecProductGroup ProductGroup 3
FourthSalesSpecProductGroup FourthSalesSpecProductGroup ProductGroup 4
FifthSalesSpecProductGroup FifthSalesSpecProductGroup ProductGroup 5
MinimumMakeToOrderOrderQty MinimumMakeToOrderOrderQty MakeToOrder qty
BaseUnit BaseUnit Unit of Measure
LogisticsStatisticsGroup LogisticsStatisticsGroup StatisticsGroup
VolumeRebateGroup VolumeRebateGroup Vol. Rebate Grp
ProductCommissionGroup ProductCommissionGroup Commission Grp
CashDiscountIsDeductible CashDiscountIsDeductible Cash Discount
PricingReferenceProduct PricingReferenceProduct X-distr.-chain PRM
RoundingProfile RoundingProfile Rnding Profile
ProductUnitGroup ProductUnitGroup UoM Group
VariableSalesUnitIsNotAllowed VariableSalesUnitIsNotAllowed SUn not var.
ProductHasAttributeID01 ProductHasAttributeID01
ProductHasAttributeID02 ProductHasAttributeID02
ProductHasAttributeID03 ProductHasAttributeID03
ProductHasAttributeID04 ProductHasAttributeID04
ProductHasAttributeID05 ProductHasAttributeID05
ProductHasAttributeID06 ProductHasAttributeID06
ProductHasAttributeID07 ProductHasAttributeID07
ProductHasAttributeID08 ProductHasAttributeID08
ProductHasAttributeID09 ProductHasAttributeID09
ProductHasAttributeID10 ProductHasAttributeID10
_Product _Product
_SalesText _SalesText
_SalesTax _SalesTax

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 A_ProductSalesDelivery.
-- 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: APRODSALESDELIV

CREATE VIEW A_ProductSalesDelivery AS
SELECT
  Product,
  ProductSalesOrg,
  ProductDistributionChnl,
  MinimumOrderQuantity,
  SupplyingPlant,
  PriceSpecificationProductGroup,
  AccountDetnProductGroup,
  DeliveryNoteProcMinDelivQty,
  ItemCategoryGroup,
  DeliveryQuantityUnit,
  DeliveryQuantity,
  ProductSalesStatus,
  ProductSalesStatusValidityDate,
  SalesMeasureUnit,
  IsMarkedForDeletion,
  ProductHierarchy,
  FirstSalesSpecProductGroup,
  SecondSalesSpecProductGroup,
  ThirdSalesSpecProductGroup,
  FourthSalesSpecProductGroup,
  FifthSalesSpecProductGroup,
  MinimumMakeToOrderOrderQty,
  BaseUnit,
  LogisticsStatisticsGroup,
  VolumeRebateGroup,
  ProductCommissionGroup,
  CashDiscountIsDeductible,
  PricingReferenceProduct,
  RoundingProfile,
  ProductUnitGroup,
  VariableSalesUnitIsNotAllowed,
  ProductHasAttributeID01,
  ProductHasAttributeID02,
  ProductHasAttributeID03,
  ProductHasAttributeID04,
  ProductHasAttributeID05,
  ProductHasAttributeID06,
  ProductHasAttributeID07,
  ProductHasAttributeID08,
  ProductHasAttributeID09,
  ProductHasAttributeID10
FROM I_ProductSalesDelivery AS SalesDelivery
LEFT OUTER JOIN E_Productsalesdelivery AS _ProdSalesDeliveryExt ON Product = _ProdSalesDeliveryExt.Product AND ProductSalesOrg = _ProdSalesDeliveryExt.ProductSalesOrganization AND ProductDistributionChnl = _ProdSalesDeliveryExt.ProductDistributionChannel  -- association [0..1]
LEFT OUTER JOIN A_ProductSalesText AS _SalesText ON Product = _SalesText.Product AND ProductSalesOrg = _SalesText.ProductSalesOrg AND ProductDistributionChnl = _SalesText.ProductDistributionChnl  -- association [0..*]
LEFT OUTER JOIN A_ProductSalesTax AS _SalesTax ON Product = _SalesTax.Product  -- association [0..*]
LEFT OUTER JOIN A_Product AS _Product ON Product = _Product.Product  -- association [1..1]
;