Fins_acdoca_lines_base
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)
| Source | Alias | Join Type |
|---|---|---|
| acdoca | a | from |
| finsc_ld_cmp | v | inner |
Annotations (5)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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 */
;
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