FINOC_RULE_OI
OrgChange-Rule: Non-Assigned Open Items
FINOC_RULE_OI is a CDS View that provides data about "OrgChange-Rule: Non-Assigned Open Items" in SAP S/4HANA. It reads from 2 data sources (bseg, fagl_splinfo) and exposes 9 fields with key field orgl_change.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| bseg | bseg | inner |
| fagl_splinfo | spl | from |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | FINOCV_RULE_OI | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| EndUserText.label | OrgChange-Rule: Non-Assigned Open Items | view |
Fields (9)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | orgl_change | |||
| kokrs | bseg | kokrs | ||
| bukrs | fagl_splinfo | bukrs | ||
| prctr_old | fagl_splinfo | prctr | ||
| prctr | ||||
| belnr | fagl_splinfo | belnr | ||
| gjahr | fagl_splinfo | gjahr | ||
| buzei | fagl_splinfo | buzei | ||
| spl_no | fagl_splinfo | spl_no |
@AbapCatalog.sqlViewName: 'FINOCV_RULE_OI'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@ObjectModel.usageType.serviceQuality: #X
@ObjectModel.usageType.sizeCategory: #XL
@ObjectModel.usageType.dataClass: #MIXED
@EndUserText.label: 'OrgChange-Rule: Non-Assigned Open Items'
define view FINOC_RULE_OI
as select from fagl_splinfo as spl
inner join bseg as bseg on bseg.bukrs = spl.bukrs
and bseg.belnr = spl.belnr
and bseg.gjahr = spl.gjahr
and bseg.buzei = spl.buzei
{
key case when spl.open_item_id is not initial
then spl.open_item_id
else concat(concat(concat(spl.belnr, spl.gjahr), concat(spl.bukrs, spl.buzei)), spl.spl_no)
end as open_item_id,
key cast(' ' as finoc_orgl_change preserving type) as orgl_change,
bseg.kokrs as kokrs,
spl.bukrs as bukrs,
spl.prctr as prctr_old,
cast(' ' as prctr preserving type) as prctr,
case when spl.prctr_drvtn_source_type is not initial
then spl.prctr_drvtn_source_type
else cast('OI' as finoc_prctr_drvtn_source_type preserving type)
end as prctr_drvtn_source_type,
spl.belnr as belnr,
spl.gjahr as gjahr,
spl.buzei as buzei,
spl.spl_no as spl_no
}
where bseg.xopvw = 'X'
and bseg.augbl is initial
and ( bseg.koart = 'K'
or bseg.koart = 'D' ) // no OI managed G/L accounts
and ( spl.prctr_drvtn_source_type is initial
or spl.prctr_drvtn_source_type = 'OI' )
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"BSEG",
"FAGL_SPLINFO"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
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