C_BillingProfitCtrToSlsOrdItem
Assgmt of Billing PrftCtr to SlsOrd Item
C_BillingProfitCtrToSlsOrdItem is a Consumption CDS View that provides data about "Assgmt of Billing PrftCtr to SlsOrd Item" in SAP S/4HANA. It reads from 1 data source (I_BillingProfitCtrToSlsOrdItem) and exposes 29 fields with key fields OrganizationalChangeObjectType, SalesDocument, SalesDocumentItem, ValidityStartDate. It has 2 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_BillingProfitCtrToSlsOrdItem | _BillingProfitCtrToSlsOrdItem | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_ProfitCenterText | _ProfitCenterBfrOrglChangeText | _BillingProfitCtrToSlsOrdItem.ControllingArea = _ProfitCenterBfrOrglChangeText.ControllingArea and _BillingProfitCtrToSlsOrdItem.ProfitCenterBeforeOrglChange = _ProfitCenterBfrOrglChangeText.ProfitCenter and _ProfitCenterBfrOrglChangeText.ValidityEndDate = '99991231' |
| [0..*] | I_ProfitCenterText | _ProfitCenterByOrglChangeText | _BillingProfitCtrToSlsOrdItem.ControllingArea = _ProfitCenterByOrglChangeText.ControllingArea and _BillingProfitCtrToSlsOrdItem.ProfitCenter = _ProfitCenterByOrglChangeText.ProfitCenter and _ProfitCenterByOrglChangeText.ValidityEndDate = '99991231' |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| Metadata.allowExtensions | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| EndUserText.label | Assgmt of Billing PrftCtr to SlsOrd Item | view |
Fields (29)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | OrganizationalChangeObjectType | |||
| KEY | SalesDocument | SalesDocument | SD Document | |
| KEY | SalesDocumentItem | SalesDocumentItem | Sales Document Item | |
| KEY | ValidityStartDate | ValidityStartDate | Validity Start Date | |
| ValidityEndDate | ValidityEndDate | ValidTo | ||
| SalesDocumentItemText | _SalesDocumentItem | SalesDocumentItemText | Item Descr. | |
| ControllingArea | ControllingArea | Controlling Area | ||
| ControllingAreaName | _ControllingArea | ControllingAreaName | Long Text | |
| CompanyCode | CompanyCode | Receiver Company Code | ||
| CompanyCodeName | _CompanyCode | CompanyCodeName | Company Name | |
| ProfitCenterBeforeOrglChange | ProfitCenterBeforeOrglChange | Old Profit Center | ||
| ProfitCenterByOrglChange | ProfitCenter | Profit Center | ||
| OrganizationalChange | OrganizationalChange | Organizational Change | ||
| OrglChangeReassignmentStatus | OrglChangeReassignmentStatus | Status | ||
| ProfitCenterDerivationSrceType | ProfitCenterDerivationSrceType | Profit Center Source | ||
| SegmentByOrglChange | _ProfitCtr | Segment | Segment number | |
| SegmentBeforeOrglChange | _PrftCtrBfrOrglChgBfrEffctvDte | Segment | Segment number | |
| SegmentNameendasSegmentByOrglChangeName | ||||
| _OrglChgReassignmentStatus | _OrglChgReassignmentStatus | |||
| _ProfitCtrDerivationSrceType | _ProfitCtrDerivationSrceType | |||
| _SalesDocument | _SalesDocument | |||
| _SalesDocumentItem | _SalesDocumentItem | |||
| _OrglChange | _OrglChange | |||
| _CompanyCode | _CompanyCode | |||
| _ControllingArea | _ControllingArea | |||
| _ProfitCtr | _ProfitCtr | |||
| OrglChangeEffectiveDate | I_BillingProfitCtrToSlsOrdItem | OrglChangeEffectiveDate | Effective Date | |
| OrglChgLastDateBeforeEffDate | I_BillingProfitCtrToSlsOrdItem | OrglChgLastDateBeforeEffDate | ||
| _ProfitCenterBeforeOrglChange | _ProfitCenterBeforeOrglChange |
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 C_BillingProfitCtrToSlsOrdItem.
-- 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 C_BillingProfitCtrToSlsOrdItem AS
SELECT
'VX' AS OrganizationalChangeObjectType,
SalesDocument,
SalesDocumentItem,
ValidityStartDate,
ValidityEndDate,
_SalesDocumentItem.SalesDocumentItemText AS SalesDocumentItemText,
ControllingArea,
_ControllingArea.ControllingAreaName AS ControllingAreaName,
CompanyCode,
_CompanyCode.CompanyCodeName AS CompanyCodeName,
ProfitCenterBeforeOrglChange,
ProfitCenter AS ProfitCenterByOrglChange,
OrganizationalChange,
OrglChangeReassignmentStatus,
ProfitCenterDerivationSrceType,
_ProfitCtr.Segment AS SegmentByOrglChange,
_PrftCtrBfrOrglChgBfrEffctvDte.Segment AS SegmentBeforeOrglChange,
case when _ProfitCtr._Segment._Text[1:Language=$session.system_language].SegmentName is null then _ProfitCtr._Segment._Text[1:Language='E'].SegmentName else _ProfitCtr._Segment._Text[1:Language=$session.system_language].SegmentName end as SegmentByOrglChangeName AS SegmentNameendasSegmentByOrglChangeName,
_BillingProfitCtrToSlsOrdItem.OrglChangeEffectiveDate AS OrglChangeEffectiveDate,
_BillingProfitCtrToSlsOrdItem.OrglChgLastDateBeforeEffDate AS OrglChgLastDateBeforeEffDate
FROM I_BillingProfitCtrToSlsOrdItem AS _BillingProfitCtrToSlsOrdItem
LEFT OUTER JOIN I_ProfitCenterText AS _ProfitCenterBfrOrglChangeText ON _BillingProfitCtrToSlsOrdItem.ControllingArea = _ProfitCenterBfrOrglChangeText.ControllingArea AND _BillingProfitCtrToSlsOrdItem.ProfitCenterBeforeOrglChange = _ProfitCenterBfrOrglChangeText.ProfitCenter AND _ProfitCenterBfrOrglChangeText.ValidityEndDate = '99991231' -- association [0..*]
LEFT OUTER JOIN I_ProfitCenterText AS _ProfitCenterByOrglChangeText ON _BillingProfitCtrToSlsOrdItem.ControllingArea = _ProfitCenterByOrglChangeText.ControllingArea AND _BillingProfitCtrToSlsOrdItem.ProfitCenter = _ProfitCenterByOrglChangeText.ProfitCenter AND _ProfitCenterByOrglChangeText.ValidityEndDate = '99991231' -- association [0..*]
;
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