MB5B_BSEG_PROXY
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)
| Source | Alias | Join 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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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
;
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