view_sdi_items_p
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)
| Source | Alias | Join Type |
|---|---|---|
| vbrp | vbrp | from |
Associations (6)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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..*]
;
Learn More
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA