P_ProfitabilitySegment
Profitability Segment
P_ProfitabilitySegment is a Basic CDS View that provides data about "Profitability Segment" in SAP S/4HANA. It reads from 3 data sources (ce4a000, ce4a000_acct, fcopa_prof_seg) and exposes 104 fields with key field paobjnr. Part of development package FINS_COPA_PROF_SEGMENT.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| ce4a000 | ce4a000 | union_all |
| ce4a000_acct | ce4a000_acct | union_all |
| fcopa_prof_seg | fcopa_prof_seg | from |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Profitability Segment | view | |
| VDM.private | true | view | |
| VDM.viewType | #BASIC | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (104)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | paobjnr | paobjnr | Profit. segment | |
| bukrs | bukrs | Value | ||
| copa_kostl | copa_kostl | Cost center | ||
| fkber | fkber | Functional Area | ||
| gsber | gsber | Business Area | ||
| kaufn | kaufn | SettlementOrder | ||
| kdpos | kdpos | Sales Ord. Item | ||
| kndnr | kndnr | Customer | ||
| kokrs | kokrs | Org. Value | ||
| kstrg | kstrg | Cost Objects | ||
| pprctr | pprctr | Partner PC | ||
| prctr | prctr | Profit Centers | ||
| pspnr | pspnr | WBS Element | ||
| segment | segment | Segment number | ||
| vtkey | vtkey | Contract | ||
| vtpos | vtpos | Item | ||
| werks | werks | Receiving Plant | ||
| AUFNR | rkaufnr | Order | ||
| artnr | artnr | Product | ||
| brsch | brsch | Industry | ||
| bzirk | bzirk | Sales District | ||
| fkart | fkart | Ship. cost type | ||
| kdgrp | kdgrp | Customer group | ||
| kunre | kunre | Bill-to Party | ||
| kunwe | kunwe | Ship-to Party | ||
| land1 | land1 | Trip Ctry/Reg | ||
| matkl | matkl | Product Sold Group | ||
| spart | spart | Source supplier | ||
| vkorg | vkorg | SD Sales Org. | ||
| vtweg | vtweg | RefDistCh-Cust/Mat. | ||
| meinh | meinh | Unit of Measure | ||
| qunit1 | qunit1 | Add Unit Meas 1 | ||
| qunit2 | qunit2 | Add Unit Meas 2 | ||
| qunit3 | qunit3 | Add Unit Meas 3 | ||
| timestamp | timestamp | UTC Time Stamp in Short Form (YYYYMMDDhhmmss) | ||
| bukrs | bukrs | Value | ||
| copa_kostl | copa_kostl | Cost center | ||
| fkber | fkber | Functional Area | ||
| gsber | gsber | Business Area | ||
| kaufn | kaufn | SettlementOrder | ||
| kdpos | kdpos | Sales Ord. Item | ||
| kndnr | kndnr | Customer | ||
| kokrs | kokrs | Org. Value | ||
| kstrg | kstrg | Cost Objects | ||
| pprctr | pprctr | Partner PC | ||
| prctr | prctr | Profit Centers | ||
| pspnr | pspnr | WBS Element | ||
| segment | segment | Segment number | ||
| vtkey | vtkey | Contract | ||
| vtpos | vtpos | Item | ||
| werks | werks | Receiving Plant | ||
| aufnr | aufnr | SettlementOrder | ||
| artnr | artnr | Product | ||
| brsch | brsch | Industry | ||
| bzirk | bzirk | Sales District | ||
| fkart | fkart | Ship. cost type | ||
| kdgrp | kdgrp | Customer group | ||
| kunre | kunre | Bill-to Party | ||
| kunwe | kunwe | Ship-to Party | ||
| land1 | land1 | Trip Ctry/Reg | ||
| matkl | matkl | Product Sold Group | ||
| spart | spart | Source supplier | ||
| vkorg | vkorg | SD Sales Org. | ||
| vtweg | vtweg | RefDistCh-Cust/Mat. | ||
| meinh | meinh | Unit of Measure | ||
| QUNIT1 | ||||
| QUNIT2 | ||||
| QUNIT3 | ||||
| timestamp | 0 | UTC Time Stamp in Short Form (YYYYMMDDhhmmss) | ||
| bukrs | bukrs | Value | ||
| copa_kostl | copa_kostl | Cost center | ||
| fkber | fkber | Functional Area | ||
| gsber | gsber | Business Area | ||
| kaufn | kaufn | SettlementOrder | ||
| kdpos | kdpos | Sales Ord. Item | ||
| kndnr | kndnr | Customer | ||
| kokrs | kokrs | Org. Value | ||
| kstrg | kstrg | Cost Objects | ||
| pprctr | pprctr | Partner PC | ||
| prctr | prctr | Profit Centers | ||
| pspnr | pspnr | WBS Element | ||
| segment | segment | Segment number | ||
| vtkey | vtkey | Contract | ||
| vtpos | vtpos | Item | ||
| werks | werks | Receiving Plant | ||
| aufnr | aufnr | SettlementOrder | ||
| artnr | artnr | Product | ||
| brsch | brsch | Industry | ||
| bzirk | bzirk | Sales District | ||
| fkart | fkart | Ship. cost type | ||
| kdgrp | kdgrp | Customer group | ||
| kunre | kunre | Bill-to Party | ||
| kunwe | kunwe | Ship-to Party | ||
| land1 | land1 | Trip Ctry/Reg | ||
| matkl | matkl | Product Sold Group | ||
| spart | spart | Source supplier | ||
| vkorg | vkorg | SD Sales Org. | ||
| vtweg | vtweg | RefDistCh-Cust/Mat. | ||
| meinh | meinh | Unit of Measure | ||
| qunit1 | qunit1 | Add Unit Meas 1 | ||
| qunit2 | qunit2 | Add Unit Meas 2 | ||
| qunit3 | qunit3 | Add Unit Meas 3 | ||
| timestamp | 0 | UTC Time Stamp in Short Form (YYYYMMDDhhmmss) | ||
| Origin |
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 P_ProfitabilitySegment.
-- 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 P_ProfitabilitySegment AS
SELECT
paobjnr,
bukrs,
copa_kostl,
fkber,
gsber,
kaufn,
kdpos,
kndnr,
kokrs,
kstrg,
pprctr,
prctr,
pspnr,
segment,
vtkey,
vtpos,
werks,
rkaufnr AS AUFNR,
artnr,
brsch,
bzirk,
fkart,
kdgrp,
kunre,
kunwe,
land1,
matkl,
spart,
vkorg,
vtweg,
meinh,
qunit1,
qunit2,
qunit3,
timestamp,
cast( '4' as abap.char(1) ) AS Origin
FROM fcopa_prof_seg
-- UNION ALL with additional select branch(es): ce4a000_acct, ce4a000
;
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