Fins_acdoca_lines_base

DDL: FINS_ACDOCA_LINES_BASE Type: view_entity Package: FINS_REV_REC_UTIL

Base view for number of document items

Fins_acdoca_lines_base is a CDS View that provides data about "Base view for number of document items" in SAP S/4HANA. It reads from 2 data sources (acdoca, finsc_ld_cmp) and exposes 18 fields. Part of development package FINS_REV_REC_UTIL.

Data Sources (2)

SourceAliasJoin Type
acdoca a from
finsc_ld_cmp v inner

Annotations (5)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Base view for number of document items view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MIXED view

Fields (18)

KeyFieldSource TableSource FieldDescription
rldnr acdoca rldnr Ledger (Compat.)
rbukrs acdoca rbukrs Company Code
docyear acdoca gjahr Settlement Year
belnr acdoca belnr SD Document
docln acdoca docln Matching Document Line Item
rmvct acdoca rmvct Transact. Type
vorgn acdoca vorgn Transaction
vrgng acdoca vrgng Bus.Transaction
bttype acdoca bttype Business Transaction Type
bttype_tec
awtyp acdoca awtyp Reference Document Type
awsys acdoca awsys Logical System
aworg acdoca aworg Refer. Org.Unit
awref acdoca awref Reference Doc.
awitem acdoca awitem Ref. Doc. Line Item
budat acdoca budat Posting Date
bldat acdoca bldat Journal Entry Date
no_of_lines

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 Fins_acdoca_lines_base.
-- 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 Fins_acdoca_lines_base AS
SELECT
  a.rldnr AS rldnr,
  a.rbukrs AS rbukrs,
  a.gjahr AS docyear,
  a.belnr AS belnr,
  a.docln AS docln,
  a.rmvct AS rmvct,
  a.vorgn AS vorgn,
  a.vrgng AS vrgng,
  a.bttype AS bttype,
  cast( case a.bttype when 'RFCV' then a.bttype else ( case a.vrgng when '' then a.vorgn when 'COIE' then a.vorgn when 'COIN' then a.vorgn else a.vrgng end ) end as fins_trr_bttype ) AS bttype_tec,
  a.awtyp AS awtyp,
  a.awsys AS awsys,
  a.aworg AS aworg,
  a.awref AS awref,
  a.awitem AS awitem,
  a.budat AS budat,
  a.bldat AS bldat,
  cast(1 as fins_acdoca_lines) AS no_of_lines
FROM acdoca AS a
INNER JOIN finsc_ld_cmp AS v ON /* join condition not captured in parsed metadata */
;