view_sdi_items_p

DDL: CDS_SDI_ITEMS_P SQL: CDS_SDI_ITEMS_P Type: view

Item Related Data of a Billing Document

view_sdi_items_p is a CDS View that provides data about "Item Related Data of a Billing Document" in SAP S/4HANA. It reads from 1 data source (vbrp) and exposes 27 fields with key fields vbeln, posnr. It has 6 associations to related views.

Data Sources (1)

SourceAliasJoin Type
vbrp vbrp from

Associations (6)

CardinalityTargetAliasCondition
[0..1] t151 customer_group $projection.kdgrp_auft = customer_group.kdgrp
[0..*] t151t customer_group_texts $projection.kdgrp_auft = customer_group_texts.kdgrp
[0..1] t023 mat_group $projection.matkl = mat_group.matkl
[0..*] t023t mat_group_texts $projection.matkl = mat_group_texts.matkl
[0..*] dd07t itemcat_texts itemcat_texts.domname = 'WB2_WSHKZG_BUSVOL' and itemcat_texts.as4local = 'A'
[0..*] dd07t triggering_doc_category_texts $projection.vgtyp = triggering_doc_category_texts.domvalue_l and triggering_doc_category_texts.domname = 'VBTYPL' and triggering_doc_category_texts.as4local = 'A'

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName CDS_SDI_ITEMS_P view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
EndUserText.label Item Related Data of a Billing Document view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.sizeCategory #XL view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.type #INHERITED view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (27)

KeyFieldSource TableSource FieldDescription
KEY vbeln vbeln SD Sched. Agmt
KEY posnr posnr WBS Element
waerk waerk Doc. Currency
kdgrp_auft kdgrp_auft CustGrpOrder
matnr matnr Vehicle Model
arktx arktx Short Text
matkl matkl Product Sold Group
shkzg shkzg Returns
werks werks Receiving Plant
lgort lgort Sublocation
charg charg Chargeable Proc.
mwskz mwsk1 Tax Code
txjcd txjcd Tax Jurisdict.
kostl kostl Substitute CC
prctr prctr Profit Centers
vgtyp vgtyp Trans. Type
vgbel vgbel Reference Doc.
vgpos vgpos Reference Item
aktnr aktnr Promotion
vrkme vrkme UoM for SubItm CCD
meins meins Valuation Unit
fkimg fkimg Invoiced Qty
umvkz umvkz Numerator
umvkn umvkn Denominator
fklmg fklmg Bill.Qty in SKU
netwr netwr Value
mat_group mat_group

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 view_sdi_items_p.
-- 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: CDS_SDI_ITEMS_P

CREATE VIEW view_sdi_items_p AS
SELECT
  vbeln,
  posnr,
  waerk,
  kdgrp_auft,
  matnr,
  arktx,
  matkl,
  shkzg,
  werks,
  lgort,
  charg,
  mwsk1 AS mwskz,
  txjcd,
  kostl,
  prctr,
  vgtyp,
  vgbel,
  vgpos,
  aktnr,
  vrkme,
  meins,
  fkimg,
  umvkz,
  umvkn,
  fklmg,
  netwr,
  mat_group
FROM vbrp
LEFT OUTER JOIN t151 AS customer_group ON kdgrp_auft = customer_group.kdgrp  -- association [0..1]
LEFT OUTER JOIN t151t AS customer_group_texts ON kdgrp_auft = customer_group_texts.kdgrp  -- association [0..*]
LEFT OUTER JOIN t023 AS mat_group ON matkl = mat_group.matkl  -- association [0..1]
LEFT OUTER JOIN t023t AS mat_group_texts ON matkl = mat_group_texts.matkl  -- association [0..*]
LEFT OUTER JOIN dd07t AS itemcat_texts ON itemcat_texts.domname = 'WB2_WSHKZG_BUSVOL' AND itemcat_texts.as4local = 'A'  -- association [0..*]
LEFT OUTER JOIN dd07t AS triggering_doc_category_texts ON vgtyp = triggering_doc_category_texts.domvalue_l AND triggering_doc_category_texts.domname = 'VBTYPL' AND triggering_doc_category_texts.as4local = 'A'  -- association [0..*]
;