FINS_REV_REC_COS_ACT_DIST_REF
Distinct AWREF for data with CO objects
FINS_REV_REC_COS_ACT_DIST_REF is a CDS View that provides data about "Distinct AWREF for data with CO objects" in SAP S/4HANA. It reads from 1 data source (finsc_ld_cmp) and exposes 21 fields. Part of development package FINS_REV_REC_UTIL.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| finsc_ld_cmp | v | inner |
Annotations (5)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Distinct AWREF for data with CO objects | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view |
Fields (21)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| rldnr | a | rldnr | ||
| awref | a | awref | ||
| awtyp | a | awtyp | ||
| aworg | a | aworg | ||
| awsys | a | awsys | ||
| awitem | a | awitem | ||
| objnr | a | objnr | ||
| ps_posid | a | ps_posid | ||
| ps_psp_pnr | a | ps_psp_pnr | ||
| paobjnr | a | paobjnr | ||
| aufnr | a | aufnr | ||
| kdauf | a | kdauf | ||
| kdpos | a | kdpos | ||
| vtkey | a | vtkey | ||
| vtpos | a | vtpos | ||
| gjahr | a | ryear | ||
| poper | a | poper | ||
| fiscyearper | a | fiscyearper | ||
| budat | a | budat | ||
| bttype | a | bttype | ||
| bttype_tec |
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Distinct AWREF for data with CO objects'
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.sizeCategory: #XXL
@ObjectModel.usageType.dataClass: #MIXED
//ACDOCA view which selects distinct awref, awtyp, aworg, awsys, but without revenue recognition documents
//Selects from ACDOCA
define view entity FINS_REV_REC_COS_ACT_DIST_REF
as select distinct
from acdoca as a
inner join finsc_ld_cmp as v on a.rbukrs = v.bukrs
and a.rldnr = v.rldnr --- Ledger space is obsolete or a.rldnr = '' )
{
a.rldnr as rldnr,
a.awref,
a.awtyp,
a.aworg,
a.awsys,
a.awitem,
a.objnr,
a.ps_posid,
a.ps_psp_pnr,
a.paobjnr,
a.aufnr,
a.kdauf,
a.kdpos,
a.service_doc_id,
a.service_doc_item_id,
a.service_contract_id,
a.service_contract_item_id,
a.vtkey,
a.vtpos,
a.ryear as gjahr,
a.poper,
a.fiscyearper,
a.budat,
a.accasty,
a.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
}
where
(
a.objnr <> ''
and a.glaccount_type <> 'X'
and not(
a.accasty is null
or a.accasty = ''
)
or(
a.mig_source = 'C'
and a.bstat = 'C'
)
or(
a.mig_source = ' '
and a.bstat = 'C'
)
)
and a.vorgn <> 'TBRR'
// and not (a.bstat = 'C' and a.poper = '000')
and(
a.mig_source <> ' '
or(
a.mig_source = ' '
and not(
a.bstat = 'C'
and a.poper = '000'
)
)
)
group by
a.rldnr,
a.awref,
a.awtyp,
a.aworg,
a.awsys,
a.awitem,
a.objnr,
a.ps_posid,
a.ps_psp_pnr,
a.paobjnr,
a.aufnr,
a.kdauf,
a.kdpos,
a.service_doc_id,
a.service_doc_item_id,
a.service_contract_id,
a.service_contract_item_id,
a.vtkey,
a.vtpos,
a.ryear,
a.poper,
a.fiscyearper,
a.budat,
a.racct,
a.gkont,
a.slalittype,
a.rbukrs,
a.accasty,
a.bttype,
a.vorgn,
a.vrgng
;
Learn More
- 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 Annotations — A Complete Guide
- 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