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 | G/L Fiscal Year |
| KEY | ReferenceDocument | |||
| KEY | ControllingArea | I_GLAccountLineItemRawData | ControllingArea | Controlling Area |
| KEY | LedgerGLLineItem | I_GLAccountLineItemRawData | LedgerGLLineItem | Journal Entry Item |
| KEY | ReferenceDocumentItem | I_GLAccountLineItemRawData | ReferenceDocumentItem | Reference item |
| CompanyCode | I_GLAccountLineItemRawData | CompanyCode | Receiver Company Code | |
| ReferenceDocumentType | I_GLAccountLineItemRawData | ReferenceDocumentType | Reference Document Type | |
| AccountingDocument | I_GLAccountLineItemRawData | AccountingDocument | Journal Entry | |
| ReferenceDocumentContext | I_GLAccountLineItemRawData | ReferenceDocumentContext | Reference Document Context | |
| TransactionSubitem | I_GLAccountLineItemRawData | TransactionSubitem | Sub Transaction | |
| ControllingDocumentItem | I_GLAccountLineItemRawData | ControllingDocumentItem | Controlling Doc Item | |
| SourceLedger | I_GLAccountLineItemRawData | SourceLedger | Source Ledger | |
| Customer | I_GLAccountLineItemRawData | Customer | Sold-to Party | |
| CustomerGroup | I_GLAccountLineItemRawData | CustomerGroup | Customer Group | |
| CustomerSupplierIndustry | I_GLAccountLineItemRawData | CustomerSupplierIndustry | Industry | |
| CustomerSupplierCountry | I_GLAccountLineItemRawData | CustomerSupplierCountry | Customer or Supplier Country/Region | |
| SalesDistrict | I_GLAccountLineItemRawData | SalesDistrict | Sales District | |
| SoldProduct | I_GLAccountLineItemRawData | SoldProduct | Product Sold | |
| SoldProductGroup | I_GLAccountLineItemRawData | SoldProductGroup | Product Sold Group | |
| SalesOrganization | I_GLAccountLineItemRawData | SalesOrganization | Sales Organization | |
| DistributionChannel | I_GLAccountLineItemRawData | DistributionChannel | RefDistCh-Cust/Mat. | |
| OrganizationDivision | I_GLAccountLineItemRawData | OrganizationDivision | Org. Division | |
| BillToParty | I_GLAccountLineItemRawData | BillToParty | Inv. Recipient | |
| ShipToParty | I_GLAccountLineItemRawData | ShipToParty | Ship-To Party (obsolete) | |
| WBSElementInternalID | I_GLAccountLineItemRawData | WBSElementInternalID | WBS Internal ID | |
| WBSElementExternalID | ||||
| ServiceDocumentType | I_GLAccountLineItemRawData | ServiceDocumentType | Transaction Type | |
| ServiceDocument | I_GLAccountLineItemRawData | ServiceDocument | Transaction ID | |
| ServiceDocumentItem | I_GLAccountLineItemRawData | ServiceDocumentItem | Service Document | |
| FunctionalArea | I_GLAccountLineItemRawData | FunctionalArea | Sendr Fctl Area | |
| PartnerCompanyCode | I_GLAccountLineItemRawData | PartnerCompanyCode | Partner Company Code | |
| ControllingBusTransacType | I_GLAccountLineItemRawData | ControllingBusTransacType | CO Bus. Transaction | |
| BusinessTransactionCategory | I_GLAccountLineItemRawData | BusinessTransactionCategory | Business Transaction Category | |
| OriginCtrlgDebitCreditCode | ||||
| DebitCreditCode | I_GLAccountLineItemRawData | DebitCreditCode | Single-Character Flag |
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 R_CostRevnProfitabilitySegment.
-- 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 R_CostRevnProfitabilitySegment AS
SELECT
_Item.FiscalYear AS FiscalYear,
cast(_Item.ReferenceDocument as referencedocument preserving type) AS ReferenceDocument,
_Item.ControllingArea AS ControllingArea,
_Item.LedgerGLLineItem AS LedgerGLLineItem,
_Item.ReferenceDocumentItem AS ReferenceDocumentItem,
_Item.CompanyCode AS CompanyCode,
_Item.ReferenceDocumentType AS ReferenceDocumentType,
_Item.AccountingDocument AS AccountingDocument,
_Item.ReferenceDocumentContext AS ReferenceDocumentContext,
_Item.TransactionSubitem AS TransactionSubitem,
_Item.ControllingDocumentItem AS ControllingDocumentItem,
_Item.SourceLedger AS SourceLedger,
_Item.Customer AS Customer,
_Item.CustomerGroup AS CustomerGroup,
_Item.CustomerSupplierIndustry AS CustomerSupplierIndustry,
_Item.CustomerSupplierCountry AS CustomerSupplierCountry,
_Item.SalesDistrict AS SalesDistrict,
_Item.SoldProduct AS SoldProduct,
_Item.SoldProductGroup AS SoldProductGroup,
_Item.SalesOrganization AS SalesOrganization,
_Item.DistributionChannel AS DistributionChannel,
_Item.OrganizationDivision AS OrganizationDivision,
_Item.BillToParty AS BillToParty,
_Item.ShipToParty AS ShipToParty,
_Item.WBSElementInternalID AS WBSElementInternalID,
cast(_Item._WBSElementBasicData.WBSElementExternalID as fis_wbsext_no_conv preserving type) AS WBSElementExternalID,
_Item.ServiceDocumentType AS ServiceDocumentType,
_Item.ServiceDocument AS ServiceDocument,
_Item.ServiceDocumentItem AS ServiceDocumentItem,
_Item.FunctionalArea AS FunctionalArea,
_Item.PartnerCompanyCode AS PartnerCompanyCode,
_Item.ControllingBusTransacType AS ControllingBusTransacType,
_Item.BusinessTransactionCategory AS BusinessTransactionCategory,
cast(_Item.OriginCtrlgDebitCreditCode as beknz_mask preserving type ) AS OriginCtrlgDebitCreditCode,
_Item.DebitCreditCode AS DebitCreditCode
FROM I_GLAccountLineItemRawData AS _Item
INNER JOIN I_AccountAssignmentType AS _AccountAssignmentType ON /* join condition not captured in parsed metadata */
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- 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