view_gr_items_p

DDL: CDS_GR_ITEMS_P SQL: CDS_GR_ITEMS_P Type: view

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)

SourceAliasJoin Type
nsdm_e_mseg nsdm_e_mseg from

Associations (5)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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]
;