MB5B_BSEG_PROXY

DDL: MB5B_BSEG_PROXY Type: view_entity

MB5B fetch FI data from ACDOCA

MB5B_BSEG_PROXY is a CDS View that provides data about "MB5B fetch FI data from ACDOCA" in SAP S/4HANA. It reads from 5 data sources (bseg, fmlv_logistic_currency, fmlv_logistic_currency, P_Materialledger_Curtp_Lit, P_ACDOCA) and exposes 36 fields.

Data Sources (5)

SourceAliasJoin Type
bseg b inner
fmlv_logistic_currency f inner
fmlv_logistic_currency f inner
P_Materialledger_Curtp_Lit it from
P_ACDOCA it union_all

Annotations (6)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label MB5B fetch FI data from ACDOCA view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view

Fields (36)

KeyFieldSource TableSource FieldDescription
bukrs P_ACDOCA rbukrs Company Code
bwkey P_ACDOCA bwkey Valuation Area
matnr P_ACDOCA matnr Vehicle Model
bwtar P_ACDOCA bwtar Valuation Type
shkzg Returns
vmsl0thenHelseSendasshkzg
meins P_ACDOCA rvunit Valuation Unit
budat P_ACDOCA budat Posting Date
blart P_ACDOCA blart Rep. rec. doc. type
buzei Posting View Item
awkey RefKey GJE
belnr P_ACDOCA belnr SD Document
gjahr P_ACDOCA gjahr Settlement Year
menge WarrCountValue
dmbtr Loc. amount
awtyp P_ACDOCA awtyp Reference Document Type
bldat P_ACDOCA bldat Journal Entry Date
waers P_ACDOCA rhcur Local Currency
bwkey bseg bwkey Valuation Area
matnr P_ACDOCA matnr Vehicle Model
bwtar bseg bwtar Valuation Type
shkzg bseg shkzg Returns
meins bseg meins Valuation Unit
budat P_ACDOCA budat Posting Date
blart P_ACDOCA blart Rep. rec. doc. type
buzei P_ACDOCA buzei Posting View Item
awkey bseg awkey RefKey GJE
belnr P_ACDOCA belnr SD Document
gjahr P_ACDOCA gjahr Settlement Year
menge bseg menge WarrCountValue
dmbtr bseg dmbtr Loc. amount
squan bseg squan Qty +/- Sign
awtyp P_ACDOCA awtyp Reference Document Type
bldat P_ACDOCA bldat Journal Entry Date
waers P_ACDOCA rhcur Local Currency
hkont P_ACDOCA racct GL Account From

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 MB5B_BSEG_PROXY.
-- 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.

CREATE VIEW MB5B_BSEG_PROXY AS
SELECT
  it.rbukrs AS bukrs,
  it.bwkey AS bwkey,
  it.matnr AS matnr,
  it.bwtar AS bwtar,
  case when it.hsl < 0 then 'H' when it.hsl = 0 and it.vmsl > 0 then 'S' when it.hsl = 0 and it.vmsl < 0 then 'H' else 'S' end as shkzg AS vmsl0thenHelseSendasshkzg,
  it.rvunit AS meins,
  it.budat AS budat,
  it.blart AS blart,
  cast( right(it.docln, 3) as buzei) AS buzei,
  concat(it.awref, it.aworg) AS awkey,
  it.belnr AS belnr,
  it.gjahr AS gjahr,
  cast(abs(it.vmsl) as menge_d) AS menge,
  abs(it.hsl) AS dmbtr,
  it.awtyp AS awtyp,
  it.bldat AS bldat,
  it.rhcur AS waers,
  b.shkzg AS shkzg,
  b.squan AS squan,
  it.racct AS hkont
FROM P_Materialledger_Curtp_Lit AS it
INNER JOIN fmlv_logistic_currency AS f ON /* join condition not captured in parsed metadata */
INNER JOIN bseg AS b ON /* join condition not captured in parsed metadata */
-- UNION ALL with additional select branch(es): P_ACDOCA
;