JV_ACDOCA_JVSO2_SWITCH
ACDOCA-like view on JVSO2/ACDOCA
JV_ACDOCA_JVSO2_SWITCH is a CDS View that provides data about "ACDOCA-like view on JVSO2/ACDOCA" in SAP S/4HANA. It reads from 2 data sources (JV_ACDOCA_BILLING, JV_ACDOCA_JVSO2) and exposes 107 fields with key fields rbukrs, gjahr, belnr, docln, gjahr. It has 1 association to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| JV_ACDOCA_BILLING | acdoca | from |
| JV_ACDOCA_JVSO2 | jvacd | union |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | jvaonacdocaactiv | act | act.id = 'START' |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CACDOCA_JVSO2_SW | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.dataMaintenance | #DISPLAY_ONLY | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | ACDOCA-like view on JVSO2/ACDOCA | view | |
| ObjectModel.supportedCapabilities | #SQL_DATA_SOURCE | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (107)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | rbukrs | JV_ACDOCA_BILLING | rbukrs | Company Code |
| KEY | gjahr | JV_ACDOCA_BILLING | gjahr | Settlement Year |
| KEY | belnr | JV_ACDOCA_BILLING | belnr | SD Document |
| KEY | docln | JV_ACDOCA_BILLING | docln | Matching Document Line Item |
| buzei | JV_ACDOCA_BILLING | buzei | Posting View Item | |
| co_belnr | JV_ACDOCA_BILLING | co_belnr | Document Number | |
| co_buzei | JV_ACDOCA_BILLING | co_buzei | Posting Row | |
| awref | JV_ACDOCA_BILLING | awref | Reference Doc. | |
| aworg | JV_ACDOCA_BILLING | aworg | Refer. Org.Unit | |
| awitem | JV_ACDOCA_BILLING | awitem | Ref. Doc. Line Item | |
| awtyp | JV_ACDOCA_BILLING | awtyp | Reference Document Type | |
| awsys | JV_ACDOCA_BILLING | awsys | Logical System | |
| ryear | JV_ACDOCA_BILLING | ryear | Ref. Year1 | |
| poper | JV_ACDOCA_BILLING | poper | Posting periods | |
| budat | JV_ACDOCA_BILLING | budat | Posting Date | |
| bldat | JV_ACDOCA_BILLING | bldat | Journal Entry Date | |
| vorgn | JV_ACDOCA_BILLING | vorgn | Transaction | |
| blart | JV_ACDOCA_BILLING | blart | Rep. rec. doc. type | |
| vname | JV_ACDOCA_BILLING | vname | Volatility Name | |
| egrup | JV_ACDOCA_BILLING | egrup | Equity group | |
| btype | JV_ACDOCA_BILLING | btype | ProcurementType | |
| kunnr | JV_ACDOCA_BILLING | kunnr | Stock customer | |
| vptnr | JV_ACDOCA_BILLING | vptnr | Partner | |
| billm | JV_ACDOCA_BILLING | billm | Billing Month | |
| pom | JV_ACDOCA_BILLING | pom | Proc.Oper.Month | |
| jvactivity | JV_ACDOCA_BILLING | jvactivity | JVA Activity | |
| sgtxt | JV_ACDOCA_BILLING | sgtxt | Text | |
| rwcur | JV_ACDOCA_BILLING | rwcur | Transaction Currency | |
| rhcur | JV_ACDOCA_BILLING | rhcur | Local Currency | |
| rkcur | JV_ACDOCA_BILLING | rkcur | Ledger curr. | |
| rocur | JV_ACDOCA_BILLING | rocur | Free Defined Crcy 1 | |
| rvcur | JV_ACDOCA_BILLING | rvcur | Free Defined Crcy 4 | |
| rbcur | JV_ACDOCA_BILLING | rbcur | Free Defined Crcy 3 | |
| rccur | JV_ACDOCA_BILLING | rccur | Third Currency | |
| rdcur | JV_ACDOCA_BILLING | rdcur | Free Defined Crcy 5 | |
| recur | JV_ACDOCA_BILLING | recur | Free Defined Crcy 6 | |
| rfcur | JV_ACDOCA_BILLING | rfcur | Free Defined Crcy 7 | |
| rgcur | JV_ACDOCA_BILLING | rgcur | Free Defined Crcy 8 | |
| drcrk | JV_ACDOCA_BILLING | drcrk | Debit/Credit | |
| wsl | JV_ACDOCA_BILLING | wsl | OrigTrnsCrcyAmt | |
| hsl | JV_ACDOCA_BILLING | hsl | Local Crcy Amt | |
| ksl | JV_ACDOCA_BILLING | ksl | GrpCurr | |
| osl | JV_ACDOCA_BILLING | osl | Other Crcy Amnt | |
| vsl | JV_ACDOCA_BILLING | vsl | Amount in Currency 2 | |
| bsl | JV_ACDOCA_BILLING | bsl | Exchange Key | |
| csl | JV_ACDOCA_BILLING | csl | Amount in Currency 4 | |
| dsl | JV_ACDOCA_BILLING | dsl | Amount in Currency 5 | |
| esl | JV_ACDOCA_BILLING | esl | Amount in Currency 6 | |
| fsl | JV_ACDOCA_BILLING | fsl | Amount in Currency 7 | |
| gsl | JV_ACDOCA_BILLING | gsl | Amount in Currency 8 | |
| usnam | JV_ACDOCA_BILLING | usnam | User Name | |
| timestamp | JV_ACDOCA_BILLING | timestamp | UTC Time Stamp in Short Form (YYYYMMDDhhmmss) | |
| cpudt | JV_ACDOCA_BILLING | cpudt | Imported On | |
| rbukrs | Company Code | |||
| KEY | gjahr | JV_ACDOCA_JVSO2 | gjahr | Settlement Year |
| KEY | belnr | JV_ACDOCA_JVSO2 | belnr | SD Document |
| KEY | docln | JV_ACDOCA_JVSO2 | docln | Matching Document Line Item |
| buzei | JV_ACDOCA_JVSO2 | buzei | Posting View Item | |
| co_belnr | JV_ACDOCA_JVSO2 | co_belnr | Document Number | |
| co_buzei | JV_ACDOCA_JVSO2 | co_buzei | Posting Row | |
| awref | JV_ACDOCA_JVSO2 | awref | Reference Doc. | |
| aworg | JV_ACDOCA_JVSO2 | aworg | Refer. Org.Unit | |
| awitem | JV_ACDOCA_JVSO2 | awitem | Ref. Doc. Line Item | |
| awtyp | JV_ACDOCA_JVSO2 | awtyp | Reference Document Type | |
| awsys | JV_ACDOCA_JVSO2 | awsys | Logical System | |
| ryear | JV_ACDOCA_JVSO2 | ryear | Ref. Year1 | |
| poper | JV_ACDOCA_JVSO2 | poper | Posting periods | |
| budat | JV_ACDOCA_JVSO2 | budat | Posting Date | |
| bldat | JV_ACDOCA_JVSO2 | bldat | Journal Entry Date | |
| vorgn | JV_ACDOCA_JVSO2 | vorgn | Transaction | |
| blart | JV_ACDOCA_JVSO2 | blart | Rep. rec. doc. type | |
| vname | JV_ACDOCA_JVSO2 | vname | Volatility Name | |
| egrup | JV_ACDOCA_JVSO2 | egrup | Equity group | |
| btype | JV_ACDOCA_JVSO2 | btype | ProcurementType | |
| kunnr | JV_ACDOCA_JVSO2 | kunnr | Stock customer | |
| vptnr | JV_ACDOCA_JVSO2 | vptnr | Partner | |
| billm | JV_ACDOCA_JVSO2 | billm | Billing Month | |
| pom | JV_ACDOCA_JVSO2 | pom | Proc.Oper.Month | |
| jvactivity | JV_ACDOCA_JVSO2 | jvactivity | JVA Activity | |
| sgtxt | JV_ACDOCA_JVSO2 | sgtxt | Text | |
| rwcur | JV_ACDOCA_JVSO2 | rwcur | Transaction Currency | |
| rhcur | JV_ACDOCA_JVSO2 | rhcur | Local Currency | |
| rkcur | JV_ACDOCA_JVSO2 | rkcur | Ledger curr. | |
| rocur | JV_ACDOCA_JVSO2 | rocur | Free Defined Crcy 1 | |
| rvcur | JV_ACDOCA_JVSO2 | rvcur | Free Defined Crcy 4 | |
| rbcur | JV_ACDOCA_JVSO2 | rbcur | Free Defined Crcy 3 | |
| rccur | JV_ACDOCA_JVSO2 | rccur | Third Currency | |
| rdcur | JV_ACDOCA_JVSO2 | rdcur | Free Defined Crcy 5 | |
| recur | JV_ACDOCA_JVSO2 | recur | Free Defined Crcy 6 | |
| rfcur | JV_ACDOCA_JVSO2 | rfcur | Free Defined Crcy 7 | |
| rgcur | JV_ACDOCA_JVSO2 | rgcur | Free Defined Crcy 8 | |
| drcrk | JV_ACDOCA_JVSO2 | drcrk | Debit/Credit | |
| wsl | JV_ACDOCA_JVSO2 | wsl | OrigTrnsCrcyAmt | |
| hsl | JV_ACDOCA_JVSO2 | hsl | Local Crcy Amt | |
| ksl | JV_ACDOCA_JVSO2 | ksl | GrpCurr | |
| osl | JV_ACDOCA_JVSO2 | osl | Other Crcy Amnt | |
| vsl | JV_ACDOCA_JVSO2 | vsl | Amount in Currency 2 | |
| bsl | JV_ACDOCA_JVSO2 | bsl | Exchange Key | |
| csl | JV_ACDOCA_JVSO2 | csl | Amount in Currency 4 | |
| dsl | JV_ACDOCA_JVSO2 | dsl | Amount in Currency 5 | |
| esl | JV_ACDOCA_JVSO2 | esl | Amount in Currency 6 | |
| fsl | JV_ACDOCA_JVSO2 | fsl | Amount in Currency 7 | |
| gsl | JV_ACDOCA_JVSO2 | gsl | Amount in Currency 8 | |
| usnam | JV_ACDOCA_JVSO2 | usnam | User Name | |
| timestamp | JV_ACDOCA_JVSO2 | timestamp | UTC Time Stamp in Short Form (YYYYMMDDhhmmss) | |
| cpudt | JV_ACDOCA_JVSO2 | cpudt | Imported On | |
| cputm | JV_ACDOCA_JVSO2 | cputm | Time |
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 JV_ACDOCA_JVSO2_SWITCH.
-- 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: CACDOCA_JVSO2_SW
CREATE VIEW JV_ACDOCA_JVSO2_SWITCH AS
SELECT
acdoca.rbukrs AS rbukrs,
acdoca.gjahr AS gjahr,
acdoca.belnr AS belnr,
acdoca.docln AS docln,
acdoca.buzei AS buzei,
acdoca.co_belnr AS co_belnr,
acdoca.co_buzei AS co_buzei,
acdoca.awref AS awref,
acdoca.aworg AS aworg,
acdoca.awitem AS awitem,
acdoca.awtyp AS awtyp,
acdoca.awsys AS awsys,
acdoca.ryear AS ryear,
acdoca.poper AS poper,
acdoca.budat AS budat,
acdoca.bldat AS bldat,
acdoca.vorgn AS vorgn,
acdoca.blart AS blart,
acdoca.vname AS vname,
acdoca.egrup AS egrup,
acdoca.btype AS btype,
acdoca.kunnr AS kunnr,
acdoca.vptnr AS vptnr,
acdoca.billm AS billm,
acdoca.pom AS pom,
acdoca.jvactivity AS jvactivity,
acdoca.sgtxt AS sgtxt,
acdoca.rwcur AS rwcur,
acdoca.rhcur AS rhcur,
acdoca.rkcur AS rkcur,
acdoca.rocur AS rocur,
acdoca.rvcur AS rvcur,
acdoca.rbcur AS rbcur,
acdoca.rccur AS rccur,
acdoca.rdcur AS rdcur,
acdoca.recur AS recur,
acdoca.rfcur AS rfcur,
acdoca.rgcur AS rgcur,
acdoca.drcrk AS drcrk,
acdoca.wsl AS wsl,
acdoca.hsl AS hsl,
acdoca.ksl AS ksl,
acdoca.osl AS osl,
acdoca.vsl AS vsl,
acdoca.bsl AS bsl,
acdoca.csl AS csl,
acdoca.dsl AS dsl,
acdoca.esl AS esl,
acdoca.fsl AS fsl,
acdoca.gsl AS gsl,
acdoca.usnam AS usnam,
acdoca.timestamp AS timestamp,
acdoca.cpudt AS cpudt,
jvacd.cputm AS cputm
FROM JV_ACDOCA_BILLING AS acdoca
LEFT OUTER JOIN jvaonacdocaactiv AS act ON act.id = 'START' -- association [0..1]
-- UNION with additional select branch(es): JV_ACDOCA_JVSO2
;
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