view_gr_items_p
Item Related Data of Goods Receipt
view_gr_items_p is a CDS View that provides data about "Item Related Data of Goods Receipt" in SAP S/4HANA. It reads from 1 data source (nsdm_e_mseg) and exposes 27 fields with key fields mblnr, mjahr, zeile, lifnr, kunnr. It has 5 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| nsdm_e_mseg | nsdm_e_mseg | from |
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | view_PO_items_p | purchase_order_item | $projection.ebeln = purchase_order_item.ebeln and $projection.ebelp = purchase_order_item.ebelp |
| [0..*] | dd07t | itemcat_texts | itemcat_texts.domname = 'WB2_WSHKZG_BUSVOL' and itemcat_texts.as4local = 'A' |
| [0..*] | dd07t | triggering_doc_category_texts | triggering_doc_category_texts.domname = 'WFTYP_V' and triggering_doc_category_texts.domvalue_l = '17' and triggering_doc_category_texts.as4local = 'A' |
| [0..1] | view_lfa1_name_p | vendor_name | $projection.lifnr = vendor_name.vendor_account |
| [0..1] | view_Kna1_name_p | customer_name | $projection.kunnr = customer_name.customer_account |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CDS_GR_ITEMS_P | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| EndUserText.label | Item Related Data of Goods Receipt | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.sizeCategory | #XXL | 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 | mblnr | mblnr | Material Doc. | |
| KEY | mjahr | mjahr | Mat. Doc. Year | |
| KEY | zeile | zeile | Mat. Doc.Item | |
| KEY | lifnr | lifnr | Vendor no. | |
| KEY | kunnr | kunnr | Stock customer | |
| KEY | bukrs | bukrs | Value | |
| KEY | smbln | smbln | Reversed Mat Doc | |
| KEY | sjahr | sjahr | Reversed Doc Year | |
| KEY | matnr | matnr | Vehicle Model | |
| KEY | ebeln | ebeln | Source PurchDoc | |
| KEY | ebelp | ebelp | Item pur. doc. | |
| KEY | shkzg | shkzg | Returns | |
| KEY | werks | werks | Receiving Plant | |
| KEY | lgort | lgort | Sublocation | |
| KEY | charg | charg | Chargeable Proc. | |
| KEY | mwskz | mwskz | Tax Code | |
| KEY | txjcd | txjcd | Tax Jurisdict. | |
| KEY | kostl | kostl | Substitute CC | |
| KEY | prctr | prctr | Profit Centers | |
| KEY | aktnr | aktnr | Promotion | |
| erfme | erfme | Unit of Entry | ||
| meins | meins | Valuation Unit | ||
| waers | waers | Transaction Currency | ||
| erfmg | erfmg | Quantity in UnE | ||
| menge | menge | WarrCountValue | ||
| dmbtr | dmbtr | Loc. amount | ||
| vendor_name | vendor_name | Vendor Name |
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_gr_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_GR_ITEMS_P
CREATE VIEW view_gr_items_p AS
SELECT
mblnr,
mjahr,
zeile,
lifnr,
kunnr,
bukrs,
smbln,
sjahr,
matnr,
ebeln,
ebelp,
shkzg,
werks,
lgort,
charg,
mwskz,
txjcd,
kostl,
prctr,
aktnr,
erfme,
meins,
waers,
erfmg,
menge,
dmbtr,
vendor_name
FROM nsdm_e_mseg
LEFT OUTER JOIN view_PO_items_p AS purchase_order_item ON ebeln = purchase_order_item.ebeln AND ebelp = purchase_order_item.ebelp -- association [0..1]
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 triggering_doc_category_texts.domname = 'WFTYP_V' AND triggering_doc_category_texts.domvalue_l = '17' AND triggering_doc_category_texts.as4local = 'A' -- association [0..*]
LEFT OUTER JOIN view_lfa1_name_p AS vendor_name ON lifnr = vendor_name.vendor_account -- association [0..1]
LEFT OUTER JOIN view_Kna1_name_p AS customer_name ON kunnr = customer_name.customer_account -- association [0..1]
;
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