JV_JVSO2_ACDOCA

DDL: JV_JVSO2_ACDOCA SQL: CJVSO2_ACD Type: view Package: GJVA_MIG

JVSO2-like view on ACDOCA

JV_JVSO2_ACDOCA is a CDS View that provides data about "JVSO2-like view on ACDOCA" in SAP S/4HANA. It reads from 2 data sources (acdoca, t001) and exposes 81 fields with key fields rclnt, gl_sirid, rldnr, rrcty, rvers. It has 4 associations to related views. Part of development package GJVA_MIG.

Data Sources (2)

SourceAliasJoin Type
acdoca acdoca from
t001 t001 inner

Associations (4)

CardinalityTargetAliasCondition
[0..1] t881 t881_4b t881_4b.rldnr = '4B'
[0..1] t882 t882_4b t882_4b.rldnr = '4B' and t882_4b.bukrs = acdoca.rbukrs
[0..1] t881 t881_4d t881_4d.rldnr = '4D'
[0..1] t882 t882_4d t882_4d.rldnr = '4D' and t882_4d.bukrs = acdoca.rbukrs

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName CJVSO2_ACD 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 JVSO2-like view on ACDOCA view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.serviceQuality #X view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (81)

KeyFieldSource TableSource FieldDescription
KEY rclnt acdoca rclnt Client
KEY gl_sirid
KEY rldnr
KEY rrcty acdoca rrcty Record Type
KEY rvers
KEY ryear acdoca gjahr Settlement Year
KEY rtcur
KEY drcrk acdoca drcrk Debit/Credit
KEY poper acdoca poper Posting periods
KEY docct
KEY docnr acdoca belnr SD Document
KEY docln_acd acdoca docln Matching Document Line Item
KEY rbukrs acdoca rbukrs Company Code
docln
rjvnam acdoca vname Volatility Name
regrou acdoca egrup Equity group
rbilid acdoca btype ProcurementType
rprojk acdoca ps_psp_pnr WBS Element
rdpom
rdbillm
curt1_4b
curr1_4b
curt2_4b
curr2_4b
tsl acdoca wsl OrigTrnsCrcyAmt
hsl acdoca hsl Local Crcy Amt
sgtxt acdoca sgtxt Text
autom
docty acdoca blart Rep. rec. doc. type
bvorg
budat acdoca budat Posting Date
wsdat acdoca wwert Translatn Date
usnam acdoca usnam User Name
bldat acdoca bldat Journal Entry Date
billm acdoca billm Billing Month
pom acdoca pom Proc.Oper.Month
awtyp acdoca awtyp Reference Document Type
aworg acdoca aworg Refer. Org.Unit
logsys
refawtyp
refawref
refaworg
reflogsys
rldnr_gl acdoca rldnr Ledger (Compat.)
ryear_gl acdoca ryear Ref. Year1
buzei acdoca buzei Posting View Item
mig_source acdoca mig_source Migr. Source
mig_docln acdoca mig_docln Migr. Line Item ID
vptnr acdoca vptnr Partner
ps_pspid acdoca ps_pspid Project def.
rhcur acdoca rhcur Local Currency
tsl_acd acdoca tsl Trans. Currency
rkcur_acd acdoca rkcur Ledger curr.
ksl_acd acdoca ksl GrpCurr
rocur_acd acdoca rocur Free Defined Crcy 1
osl_acd acdoca osl Other Crcy Amnt
rvcur_acd acdoca rvcur Free Defined Crcy 4
vsl_acd acdoca vsl Amount in Currency 2
rbcur_acd acdoca rbcur Free Defined Crcy 3
bsl_acd acdoca bsl Exchange Key
rccur_acd acdoca rccur Third Currency
csl_acd acdoca csl Amount in Currency 4
rdcur_acd acdoca rdcur Free Defined Crcy 5
dsl_acd acdoca dsl Amount in Currency 5
recur_acd acdoca recur Free Defined Crcy 6
esl_acd acdoca esl Amount in Currency 6
rfcur_acd acdoca rfcur Free Defined Crcy 7
fsl_acd acdoca fsl Amount in Currency 7
rgcur_acd acdoca rgcur Free Defined Crcy 8
gsl_acd acdoca gsl Amount in Currency 8
curtph finsc_ld_cmp curtph Field Name
curtpk finsc_ld_cmp curtpk Field Name
curtpo finsc_ld_cmp curtpo FreeDef Crcy 1
curtpv finsc_ld_cmp curtpv FreeDef Crcy 2
curtpb finsc_ld_cmp curtpb FreeDef Crcy 3
curtpc finsc_ld_cmp curtpc FreeDef Crcy 4
curtpd finsc_ld_cmp curtpd FreeDef Crcy 5
curtpe finsc_ld_cmp curtpe FreeDef Crcy 6
curtpf finsc_ld_cmp curtpf FreeDef Crcy 7
curtpg finsc_ld_cmp curtpg FreeDef Crcy 8
timestamp acdoca timestamp UTC Time Stamp in Short Form (YYYYMMDDhhmmss)

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_JVSO2_ACDOCA.
-- 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: CJVSO2_ACD

CREATE VIEW JV_JVSO2_ACDOCA AS
SELECT
  acdoca.rclnt AS rclnt,
  cast( ' ' as gu_recid preserving type ) AS gl_sirid,
  cast( '4B' as rldnr preserving type ) AS rldnr,
  acdoca.rrcty AS rrcty,
  cast( '001' as rvers ) AS rvers,
  acdoca.gjahr AS ryear,
  cast( acdoca.rwcur as rtcur preserving type ) AS rtcur,
  acdoca.drcrk AS drcrk,
  acdoca.poper AS poper,
  cast( 'J' as docct preserving type ) AS docct,
  acdoca.belnr AS docnr,
  acdoca.docln AS docln_acd,
  acdoca.rbukrs AS rbukrs,
  cast( substring(acdoca.docln,4,3) as jv_docln ) AS docln,
  acdoca.vname AS rjvnam,
  acdoca.egrup AS regrou,
  acdoca.btype AS rbilid,
  acdoca.ps_psp_pnr AS rprojk,
  cast( ' ' as jv_dpom preserving type ) AS rdpom,
  cast( ' ' as jv_dbillm preserving type ) AS rdbillm,
  coalesce( t881_4b.curt1, finsc_ld_cmp.curtph ) AS curt1_4b,
  coalesce( t882_4b.curr1, acdoca.rhcur ) AS curr1_4b,
  coalesce( t881_4b.curt2, finsc_ld_cmp.curtpk ) AS curt2_4b,
  coalesce( t882_4b.curr2, acdoca.rkcur ) AS curr2_4b,
  acdoca.wsl AS tsl,
  acdoca.hsl AS hsl,
  acdoca.sgtxt AS sgtxt,
  cast( ' ' as autom preserving type ) AS autom,
  acdoca.blart AS docty,
  cast( ' ' as bvorg preserving type ) AS bvorg,
  acdoca.budat AS budat,
  acdoca.wwert AS wsdat,
  acdoca.usnam AS usnam,
  acdoca.bldat AS bldat,
  acdoca.billm AS billm,
  acdoca.pom AS pom,
  acdoca.awtyp AS awtyp,
  acdoca.aworg AS aworg,
  cast( acdoca.awsys as logsys preserving type ) AS logsys,
  cast( acdoca.prec_awtyp as awtyp preserving type ) AS refawtyp,
  cast( acdoca.prec_awref as awref preserving type ) AS refawref,
  cast( acdoca.prec_aworg as aworg preserving type ) AS refaworg,
  cast( acdoca.prec_awsys as logsys preserving type ) AS reflogsys,
  acdoca.rldnr AS rldnr_gl,
  acdoca.ryear AS ryear_gl,
  acdoca.buzei AS buzei,
  acdoca.mig_source AS mig_source,
  acdoca.mig_docln AS mig_docln,
  acdoca.vptnr AS vptnr,
  acdoca.ps_pspid AS ps_pspid,
  acdoca.rhcur AS rhcur,
  acdoca.tsl AS tsl_acd,
  acdoca.rkcur AS rkcur_acd,
  acdoca.ksl AS ksl_acd,
  acdoca.rocur AS rocur_acd,
  acdoca.osl AS osl_acd,
  acdoca.rvcur AS rvcur_acd,
  acdoca.vsl AS vsl_acd,
  acdoca.rbcur AS rbcur_acd,
  acdoca.bsl AS bsl_acd,
  acdoca.rccur AS rccur_acd,
  acdoca.csl AS csl_acd,
  acdoca.rdcur AS rdcur_acd,
  acdoca.dsl AS dsl_acd,
  acdoca.recur AS recur_acd,
  acdoca.esl AS esl_acd,
  acdoca.rfcur AS rfcur_acd,
  acdoca.fsl AS fsl_acd,
  acdoca.rgcur AS rgcur_acd,
  acdoca.gsl AS gsl_acd,
  finsc_ld_cmp.curtph AS curtph,
  finsc_ld_cmp.curtpk AS curtpk,
  finsc_ld_cmp.curtpo AS curtpo,
  finsc_ld_cmp.curtpv AS curtpv,
  finsc_ld_cmp.curtpb AS curtpb,
  finsc_ld_cmp.curtpc AS curtpc,
  finsc_ld_cmp.curtpd AS curtpd,
  finsc_ld_cmp.curtpe AS curtpe,
  finsc_ld_cmp.curtpf AS curtpf,
  finsc_ld_cmp.curtpg AS curtpg,
  acdoca.timestamp AS timestamp
FROM acdoca
INNER JOIN t001 ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN t881 AS t881_4b ON t881_4b.rldnr = '4B'  -- association [0..1]
LEFT OUTER JOIN t882 AS t882_4b ON t882_4b.rldnr = '4B' AND t882_4b.bukrs = acdoca.rbukrs  -- association [0..1]
LEFT OUTER JOIN t881 AS t881_4d ON t881_4d.rldnr = '4D'  -- association [0..1]
LEFT OUTER JOIN t882 AS t882_4d ON t882_4d.rldnr = '4D' AND t882_4d.bukrs = acdoca.rbukrs  -- association [0..1]
;