view_ds_gr_par

DDL: CDS_DS_GR_PAR SQL: CDS_DS_GR_PAR Type: view Package: WCB_SETTL_MODEL

Det. Stmt. of CCS with Goods Receipts as Bus. Vol. Docs

view_ds_gr_par is a CDS View that provides data about "Det. Stmt. of CCS with Goods Receipts as Bus. Vol. Docs" in SAP S/4HANA. It reads from 1 data source (wb2_d_bvdetail) and exposes 70 fields with key fields num, wbeln, posnr, doc_type, doc_id. It has 6 associations to related views. Part of development package WCB_SETTL_MODEL.

Data Sources (1)

SourceAliasJoin Type
wb2_d_bvdetail bvd from

Parameters (1)

NameTypeDefault
p_language spras

Associations (6)

CardinalityTargetAliasCondition
[1..1] view_ab_head_p agbu_head_settle $projection.wbeln = agbu_head_settle.wbeln
[1..1] view_ab_items_p agbu_item_settle $projection.wbeln = agbu_item_settle.wbeln and $projection.posnr = agbu_item_settle.posnr
[1..1] view_gr_head_p gr_head $projection.doc_id = gr_head.mblnr and $projection.doc_id2 = gr_head.mjahr
[1..1] view_gr_items_p gr_item $projection.doc_id = gr_item.mblnr and $projection.doc_id2 = gr_item.mjahr and $projection.doc_item = gr_item.zeile
[1..1] view_cc_head_p coco_head $projection.num = coco_head.num
[0..*] dd07t bvd_doc_type_texts $projection.doc_type = bvd_doc_type_texts.domvalue_l and bvd_doc_type_texts.domname = 'WB2_DOC_TYPE_BUSVOL' and bvd_doc_type_texts.as4local = 'A'

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName CDS_DS_GR_PAR view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
EndUserText.label Det. Stmt. of CCS with Goods Receipts as Bus. Vol. Docs view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.sizeCategory #XXL view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.type #INHERITED view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (70)

KeyFieldSource TableSource FieldDescription
KEY num wb2_d_bvdetail num Total Members
KEY wbeln wb2_d_bvdetail wbeln Sett. Doc. List
KEY posnr wb2_d_bvdetail posnr WBS Element
KEY doc_type wb2_d_bvdetail doc_type VAT Document Type
KEY doc_id wb2_d_bvdetail doc_id Reference Doc Number
KEY doc_id2 wb2_d_bvdetail doc_id2 Document ID 2
KEY doc_id3 wb2_d_bvdetail doc_id3 Document ID 3
KEY doc_item wb2_d_bvdetail doc_item Item Number
cc_type coco_head contract_type Document Type
bv_date wb2_d_bvdetail bv_date Date for Settlement
menge wb2_d_bvdetail menge WarrCountValue
meina wb2_d_bvdetail meina Unit of measure
busvol_1 wb2_d_bvdetail busvol_1 Business Volume 1
busvol_2 wb2_d_bvdetail busvol_2 Business Volume 2
busvol_3 wb2_d_bvdetail busvol_3 Business Volume 3
busvol_4 wb2_d_bvdetail busvol_4 Business Volume 4
waers wb2_d_bvdetail waers Transaction Currency
ntgew wb2_d_bvdetail ntgew Net Weight
brgew wb2_d_bvdetail brgew Weight
gewei wb2_d_bvdetail gewei Weight Unit
volum wb2_d_bvdetail volum Volume
voleh wb2_d_bvdetail voleh Volume Unit
anzpu wb2_d_bvdetail anzpu Points
punei wb2_d_bvdetail punei Points Unit
cc_category coco_head category Violation Category
cc_reference coco_head reference Value
bukrs_settle agbu_head_settle bukrs Value
bldat_settle agbu_head_settle bldat Journal Entry Date
wfdat_settle agbu_head_settle wfdat Posting Date
waerl_settle agbu_head_settle waerl Doc. Currency
matnr_settle agbu_item_settle matnr Vehicle Model
arktx_settle agbu_item_settle arktx Short Text
rfbsk_settle agbu_head_settle rfbsk Posting Status
fksto_settle agbu_head_settle fksto Doc. Reversed
wrart_settle agbu_head_settle wrart Settl Proc Type
lfgru_settle agbu_item_settle lfgru Activity Reason
ekorg_settle agbu_head_settle ekorg Purchasing Org.
ekgrp_settle agbu_head_settle ekgrp Sub. purchasing grp
vkorg_settle agbu_head_settle vkorg SD Sales Org.
vtweg_settle agbu_head_settle vtweg RefDistCh-Cust/Mat.
spart_settle agbu_head_settle spart Source supplier
lfart_settle agbu_head_settle lfart Settl Doc Type
ekorg_coco coco_head ekorg Purchasing Org.
ekgrp_coco coco_head ekgrp Sub. purchasing grp
vkorg_coco coco_head vkorg SD Sales Org.
vtweg_coco coco_head vtweg RefDistCh-Cust/Mat.
spart_coco coco_head spart Source supplier
doc_category
lfart
lifnr gr_item lifnr Vendor no.
kunnr gr_item kunnr Stock customer
bukrs gr_item bukrs Value
rfbsk
wfdat gr_head budat Posting Date
bldat gr_head bldat Journal Entry Date
erdat gr_head cpudt Imported On
xblnr
lfaks gr_item smbln Reversed Mat Doc
lfaks_jahr gr_item sjahr Reversed Doc Year
matnr gr_item matnr Vehicle Model
werks gr_item werks Receiving Plant
lgort gr_item lgort Sublocation
charg gr_item charg Chargeable Proc.
mwskz gr_item mwskz Tax Code
txjcd gr_item txjcd Tax Jurisdict.
kostl gr_item kostl Substitute CC
prctr gr_item prctr Profit Centers
wbeln_v gr_item ebeln Source PurchDoc
posnr_v
aktnr gr_item aktnr Promotion

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_ds_gr_par.
-- 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_DS_GR_PAR
-- Parameters: p_language : spras

CREATE VIEW view_ds_gr_par AS
SELECT
  bvd.num AS num,
  bvd.wbeln AS wbeln,
  bvd.posnr AS posnr,
  bvd.doc_type AS doc_type,
  bvd.doc_id AS doc_id,
  bvd.doc_id2 AS doc_id2,
  bvd.doc_id3 AS doc_id3,
  bvd.doc_item AS doc_item,
  coco_head.contract_type AS cc_type,
  bvd.bv_date AS bv_date,
  bvd.menge AS menge,
  bvd.meina AS meina,
  bvd.busvol_1 AS busvol_1,
  bvd.busvol_2 AS busvol_2,
  bvd.busvol_3 AS busvol_3,
  bvd.busvol_4 AS busvol_4,
  bvd.waers AS waers,
  bvd.ntgew AS ntgew,
  bvd.brgew AS brgew,
  bvd.gewei AS gewei,
  bvd.volum AS volum,
  bvd.voleh AS voleh,
  bvd.anzpu AS anzpu,
  bvd.punei AS punei,
  coco_head.category AS cc_category,
  coco_head.reference AS cc_reference,
  agbu_head_settle.bukrs AS bukrs_settle,
  agbu_head_settle.bldat AS bldat_settle,
  agbu_head_settle.wfdat AS wfdat_settle,
  agbu_head_settle.waerl AS waerl_settle,
  agbu_item_settle.matnr AS matnr_settle,
  agbu_item_settle.arktx AS arktx_settle,
  agbu_head_settle.rfbsk AS rfbsk_settle,
  agbu_head_settle.fksto AS fksto_settle,
  agbu_head_settle.wrart AS wrart_settle,
  agbu_item_settle.lfgru AS lfgru_settle,
  agbu_head_settle.ekorg AS ekorg_settle,
  agbu_head_settle.ekgrp AS ekgrp_settle,
  agbu_head_settle.vkorg AS vkorg_settle,
  agbu_head_settle.vtweg AS vtweg_settle,
  agbu_head_settle.spart AS spart_settle,
  agbu_head_settle.lfart AS lfart_settle,
  coco_head.ekorg AS ekorg_coco,
  coco_head.ekgrp AS ekgrp_coco,
  coco_head.vkorg AS vkorg_coco,
  coco_head.vtweg AS vtweg_coco,
  coco_head.spart AS spart_coco,
  cast( gr_head.vgart as abap.char( 2 ) ) AS doc_category,
  cast( gr_head.blart as abap.char( 4 ) ) AS lfart,
  gr_item.lifnr AS lifnr,
  gr_item.kunnr AS kunnr,
  gr_item.bukrs AS bukrs,
  cast( 'C' as abap.char( 2 ) ) AS rfbsk,
  gr_head.budat AS wfdat,
  gr_head.bldat AS bldat,
  gr_head.cpudt AS erdat,
  cast( gr_head.xblnr as abap.char( 30 ) ) AS xblnr,
  gr_item.smbln AS lfaks,
  gr_item.sjahr AS lfaks_jahr,
  gr_item.matnr AS matnr,
  gr_item.werks AS werks,
  gr_item.lgort AS lgort,
  gr_item.charg AS charg,
  gr_item.mwskz AS mwskz,
  gr_item.txjcd AS txjcd,
  gr_item.kostl AS kostl,
  gr_item.prctr AS prctr,
  gr_item.ebeln AS wbeln_v,
  cast( concat( '0', gr_item.ebelp ) as abap.numc( 6 ) ) AS posnr_v,
  gr_item.aktnr AS aktnr
FROM wb2_d_bvdetail AS bvd
LEFT OUTER JOIN view_ab_head_p AS agbu_head_settle ON wbeln = agbu_head_settle.wbeln  -- association [1..1]
LEFT OUTER JOIN view_ab_items_p AS agbu_item_settle ON wbeln = agbu_item_settle.wbeln AND posnr = agbu_item_settle.posnr  -- association [1..1]
LEFT OUTER JOIN view_gr_head_p AS gr_head ON doc_id = gr_head.mblnr AND doc_id2 = gr_head.mjahr  -- association [1..1]
LEFT OUTER JOIN view_gr_items_p AS gr_item ON doc_id = gr_item.mblnr AND doc_id2 = gr_item.mjahr AND doc_item = gr_item.zeile  -- association [1..1]
LEFT OUTER JOIN view_cc_head_p AS coco_head ON num = coco_head.num  -- association [1..1]
LEFT OUTER JOIN dd07t AS bvd_doc_type_texts ON doc_type = bvd_doc_type_texts.domvalue_l AND bvd_doc_type_texts.domname = 'WB2_DOC_TYPE_BUSVOL' AND bvd_doc_type_texts.as4local = 'A'  -- association [0..*]
;