I_ProductSalesDeliveryPOS

DDL: I_PRODUCTSALESDELIVERYPOS SQL: IPRDSALESDELVPOS Type: view BASIC Package: VDM_MD_PRODUCT

Product Sales Delivery POS core entity

I_ProductSalesDeliveryPOS is a Basic CDS View that provides data about "Product Sales Delivery POS core entity" in SAP S/4HANA. It reads from 1 data source (wlk2) and exposes 22 fields with key fields Product, ProductSalesOrg, ProductDistributionChnl, Plant. It has 10 associations to related views. Part of development package VDM_MD_PRODUCT.

Data Sources (1)

SourceAliasJoin Type
wlk2 wlk2 from

Associations (10)

CardinalityTargetAliasCondition
[1..1] I_Product _Product $projection.Product = _Product.Product
[0..1] I_ProdSlsDelivRepeatKey _ProdSlsDelivRepeatKey $projection.ProdSlsDelivRepeatKey = _ProdSlsDelivRepeatKey.ProdSlsDelivRepeatKey
[0..*] I_ProdSlsDelivRepeatKeyTxt _ProdSlsDelivRepeatKeyText $projection.ProdSlsDelivRepeatKey = _ProdSlsDelivRepeatKeyText.ProdSlsDelivRepeatKey
[1..1] I_SalesOrganization _SalesOrganization $projection.ProductSalesOrg = _SalesOrganization.SalesOrganization
[1..1] I_DistributionChannel _DistributionChannel $projection.ProductDistributionChnl = _DistributionChannel.DistributionChannel
[1..1] I_Plant _Plant $projection.Plant = _Plant.Plant
[0..1] I_SalesDistributionStatusVH _ProductSalesStatus $projection.ProductSalesStatus = _ProductSalesStatus.ProductSalesStatus
[0..*] I_SalesDistributionStatusText _ProductSalesStatusText $projection.ProductSalesStatus = _ProductSalesStatusText.ProductSalesStatus
[0..1] I_ScalesGroup _ScalesGroup $projection.ScalesGroup = _ScalesGroup.ScalesGroup
[0..*] I_ScalesGroupText _ScalesGroupText $projection.ScalesGroup = _ScalesGroupText.ScalesGroup

Annotations (8)

NameValueLevelField
AbapCatalog.sqlViewName IPRDSALESDELVPOS view
VDM.viewType #BASIC view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Product Sales Delivery POS core entity view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MASTER view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (22)

KeyFieldSource TableSource FieldDescription
KEY Product wlk2 matnr
KEY ProductSalesOrg wlk2 vkorg
KEY ProductDistributionChnl wlk2 vtweg
KEY Plant wlk2 werks
StoreSaleStartDate wlk2 vkdab Sales Period Start Date
StoreSaleEndDate wlk2 vkbis Sales Period End Date
ProductSalesStatus wlk2 mstav
ProductSalesStatusValidityDate wlk2 mstdv
IsPointOfSalesDiscountAllowed wlk2 rbzul
ScalesGroup
ProdSlsDelivPOSIsPriceRequired wlk2 prerf
ProdSlsDelivRepeatKey wlk2 kwdht
_Product _Product
_ProdSlsDelivRepeatKey _ProdSlsDelivRepeatKey
_ProdSlsDelivRepeatKeyText _ProdSlsDelivRepeatKeyText
_SalesOrganization _SalesOrganization
_DistributionChannel _DistributionChannel
_Plant _Plant
_ProductSalesStatus _ProductSalesStatus
_ProductSalesStatusText _ProductSalesStatusText
_ScalesGroup _ScalesGroup
_ScalesGroupText _ScalesGroupText
@AbapCatalog.sqlViewName: 'IPRDSALESDELVPOS'
@VDM.viewType: #BASIC
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Product Sales Delivery POS core entity'

@ObjectModel.usageType.serviceQuality: #A
@ObjectModel.usageType.sizeCategory : #XL
@ObjectModel.usageType.dataClass: #MASTER
@ClientHandling.algorithm: #SESSION_VARIABLE

define view I_ProductSalesDeliveryPOS
  as select from wlk2

  association [1..1] to I_Product                     as _Product                   on $projection.Product = _Product.Product
  association [0..1] to I_ProdSlsDelivRepeatKey       as _ProdSlsDelivRepeatKey     on $projection.ProdSlsDelivRepeatKey = _ProdSlsDelivRepeatKey.ProdSlsDelivRepeatKey
  association [0..*] to I_ProdSlsDelivRepeatKeyTxt    as _ProdSlsDelivRepeatKeyText on $projection.ProdSlsDelivRepeatKey = _ProdSlsDelivRepeatKeyText.ProdSlsDelivRepeatKey
  association [1..1] to I_SalesOrganization           as _SalesOrganization         on $projection.ProductSalesOrg = _SalesOrganization.SalesOrganization
  association [1..1] to I_DistributionChannel         as _DistributionChannel       on $projection.ProductDistributionChnl = _DistributionChannel.DistributionChannel
  association [1..1] to I_Plant                       as _Plant                     on $projection.Plant = _Plant.Plant
  association [0..1] to I_SalesDistributionStatusVH   as _ProductSalesStatus        on $projection.ProductSalesStatus = _ProductSalesStatus.ProductSalesStatus
  association [0..*] to I_SalesDistributionStatusText as _ProductSalesStatusText    on $projection.ProductSalesStatus = _ProductSalesStatusText.ProductSalesStatus
  association [0..1] to I_ScalesGroup                 as _ScalesGroup               on $projection.ScalesGroup = _ScalesGroup.ScalesGroup
  association [0..*] to I_ScalesGroupText             as _ScalesGroupText           on $projection.ScalesGroup = _ScalesGroupText.ScalesGroup

{
  key  wlk2.matnr                                        as Product,
       //  key  wlk2.vkorg as  ProductSalesOrganization,

       //  key  wlk2.vtweg as  ProductDistributionChannel,

  key  wlk2.vkorg                                        as ProductSalesOrg,
  key  wlk2.vtweg                                        as ProductDistributionChnl,
  key  wlk2.werks                                        as Plant,

       @EndUserText.label: 'Sales Period Start Date'
       wlk2.vkdab                                        as StoreSaleStartDate,
       @EndUserText.label: 'Sales Period End Date'
       wlk2.vkbis                                        as StoreSaleEndDate,
       @ObjectModel.foreignKey.association: '_ProductSalesStatus'
       @ObjectModel.text.association: '_ProductSalesStatusText'
       wlk2.mstav                                        as ProductSalesStatus,
       wlk2.mstdv                                        as ProductSalesStatusValidityDate,
       wlk2.rbzul                                        as IsPointOfSalesDiscountAllowed,
       @ObjectModel.foreignKey.association: '_ScalesGroup'
       @ObjectModel.text.association: '_ScalesGroupText'
       cast( wlk2.scagr as scalesgroup preserving type ) as ScalesGroup,
       wlk2.prerf                                        as ProdSlsDelivPOSIsPriceRequired,
       @ObjectModel.foreignKey.association: '_ProdSlsDelivRepeatKey'
       @ObjectModel.text.association: '_ProdSlsDelivRepeatKeyText'
       wlk2.kwdht                                        as ProdSlsDelivRepeatKey,
       _Product,
       _ProdSlsDelivRepeatKey,
       _ProdSlsDelivRepeatKeyText,
       _SalesOrganization,
       _DistributionChannel,
       _Plant,
       _ProductSalesStatus,
       _ProductSalesStatusText,
       _ScalesGroup,
       _ScalesGroupText
}