R_CostRevnProfitabilitySegment
Cost Revenue Reassignment Profitability Segment
R_CostRevnProfitabilitySegment is a Composite CDS View that provides data about "Cost Revenue Reassignment Profitability Segment" in SAP S/4HANA. It reads from 2 data sources (I_AccountAssignmentType, I_GLAccountLineItemRawData) and exposes 35 fields with key fields FiscalYear, ReferenceDocument, ControllingArea, LedgerGLLineItem, ReferenceDocumentItem.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_AccountAssignmentType | _AccountAssignmentType | inner |
| I_GLAccountLineItemRawData | _Item | from |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| EndUserText.label | Cost Revenue Reassignment Profitability Segment | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view |
Fields (35)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | FiscalYear | I_GLAccountLineItemRawData | FiscalYear | |
| KEY | ReferenceDocument | |||
| KEY | ControllingArea | I_GLAccountLineItemRawData | ControllingArea | |
| KEY | LedgerGLLineItem | I_GLAccountLineItemRawData | LedgerGLLineItem | |
| KEY | ReferenceDocumentItem | I_GLAccountLineItemRawData | ReferenceDocumentItem | |
| CompanyCode | I_GLAccountLineItemRawData | CompanyCode | ||
| ReferenceDocumentType | I_GLAccountLineItemRawData | ReferenceDocumentType | ||
| AccountingDocument | I_GLAccountLineItemRawData | AccountingDocument | ||
| ReferenceDocumentContext | I_GLAccountLineItemRawData | ReferenceDocumentContext | ||
| TransactionSubitem | I_GLAccountLineItemRawData | TransactionSubitem | ||
| ControllingDocumentItem | I_GLAccountLineItemRawData | ControllingDocumentItem | ||
| SourceLedger | I_GLAccountLineItemRawData | SourceLedger | ||
| Customer | I_GLAccountLineItemRawData | Customer | ||
| CustomerGroup | I_GLAccountLineItemRawData | CustomerGroup | ||
| CustomerSupplierIndustry | I_GLAccountLineItemRawData | CustomerSupplierIndustry | ||
| CustomerSupplierCountry | I_GLAccountLineItemRawData | CustomerSupplierCountry | ||
| SalesDistrict | I_GLAccountLineItemRawData | SalesDistrict | ||
| SoldProduct | I_GLAccountLineItemRawData | SoldProduct | ||
| SoldProductGroup | I_GLAccountLineItemRawData | SoldProductGroup | ||
| SalesOrganization | I_GLAccountLineItemRawData | SalesOrganization | ||
| DistributionChannel | I_GLAccountLineItemRawData | DistributionChannel | ||
| OrganizationDivision | I_GLAccountLineItemRawData | OrganizationDivision | ||
| BillToParty | I_GLAccountLineItemRawData | BillToParty | ||
| ShipToParty | I_GLAccountLineItemRawData | ShipToParty | ||
| WBSElementInternalID | I_GLAccountLineItemRawData | WBSElementInternalID | ||
| WBSElementExternalID | ||||
| ServiceDocumentType | I_GLAccountLineItemRawData | ServiceDocumentType | ||
| ServiceDocument | I_GLAccountLineItemRawData | ServiceDocument | ||
| ServiceDocumentItem | I_GLAccountLineItemRawData | ServiceDocumentItem | ||
| FunctionalArea | I_GLAccountLineItemRawData | FunctionalArea | ||
| PartnerCompanyCode | I_GLAccountLineItemRawData | PartnerCompanyCode | ||
| ControllingBusTransacType | I_GLAccountLineItemRawData | ControllingBusTransacType | ||
| BusinessTransactionCategory | I_GLAccountLineItemRawData | BusinessTransactionCategory | ||
| OriginCtrlgDebitCreditCode | ||||
| DebitCreditCode | I_GLAccountLineItemRawData | DebitCreditCode |
@AbapCatalog.viewEnhancementCategory: [#NONE]
@AccessControl: {
authorizationCheck: #CHECK,
personalData.blocking: #NOT_REQUIRED
}
@EndUserText.label: 'Cost Revenue Reassignment Profitability Segment'
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.usageType:{
serviceQuality: #C,
sizeCategory: #XXL,
dataClass: #MIXED
}
@VDM: {
viewType: #COMPOSITE,
lifecycle.contract.type:#SAP_INTERNAL_API
}
define view entity R_CostRevnProfitabilitySegment
as select from I_GLAccountLineItemRawData as _Item
inner join I_AccountAssignmentType as _AccountAssignmentType on _AccountAssignmentType.AccountAssignmentType = _Item.AccountAssignmentType
{
key _Item.FiscalYear,
key cast(_Item.ReferenceDocument as referencedocument preserving type) as ReferenceDocument,
key _Item.ControllingArea,
key _Item.LedgerGLLineItem,
key _Item.ReferenceDocumentItem,
_Item.CompanyCode,
_Item.ReferenceDocumentType,
_Item.AccountingDocument,
_Item.ReferenceDocumentContext,
_Item.TransactionSubitem,
_Item.ControllingDocumentItem,
_Item.SourceLedger,
_Item.Customer,
_Item.CustomerGroup,
_Item.CustomerSupplierIndustry,
_Item.CustomerSupplierCountry,
_Item.SalesDistrict,
_Item.SoldProduct,
_Item.SoldProductGroup,
_Item.SalesOrganization,
_Item.DistributionChannel,
_Item.OrganizationDivision,
_Item.BillToParty,
_Item.ShipToParty,
//WBS Element
_Item.WBSElementInternalID,
cast(_Item._WBSElementBasicData.WBSElementExternalID as fis_wbsext_no_conv preserving type) as WBSElementExternalID,
_Item.ServiceDocumentType,
_Item.ServiceDocument,
_Item.ServiceDocumentItem,
_Item.FunctionalArea,
_Item.PartnerCompanyCode,
_Item.ControllingBusTransacType,
_Item.BusinessTransactionCategory,
cast(_Item.OriginCtrlgDebitCreditCode as beknz_mask preserving type ) as OriginCtrlgDebitCreditCode,
_Item.DebitCreditCode
}
where
(
_Item.ControllingBusTransacType = 'RKU1'
or _Item.ControllingBusTransacType = 'KAMV'
or _Item.ControllingBusTransacType = 'RKU2'
)
and (_Item.AccountAssignmentType = 'EO' or _Item.PartnerAccountAssignmentType = 'EO')
and _Item.ReferenceDocumentType = 'COBK'
and _Item._Ledger.IsLeadingLedger = 'X'
and _Item.ControllingObject <> ''
and _Item.JournalEntryIsSecondaryEntry = ''
and _Item.LogicalSystem = ''
and _Item._JournalEntry.SenderLogicalSystem = ''
and (_Item.SourceLedger = _Item._JournalEntry.LedgerGroup or _Item._JournalEntry.LedgerGroup = '' )
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_ACCOUNTASSIGNMENTTYPE",
"I_GLACCOUNTLINEITEMRAWDATA",
"I_JOURNALENTRY",
"I_LEDGER",
"I_WBSELEMENTBASICDATA"
],
"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