P_PositionIdentifierCompCode
P_PositionIdentifierCompCode is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_PositionIdentifier) and exposes 53 fields with key field TrsyPositionIdentificationUUID.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_PositionIdentifier | dift | from |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| AbapCatalog.sqlViewName | PPOSIDENTCOCODE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view |
Fields (53)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | TrsyPositionIdentificationUUID | TrsyPositionIdentificationUUID | ||
| TreasuryPosition | TreasuryPosition | |||
| TreasuryValuationArea | TreasuryValuationArea | Valuation Area | ||
| FinancialInstrValuationClass | FinancialInstrValuationClass | |||
| TreasuryValuationClass | TreasuryValuationClass | |||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| CompanyCodeName | _CompanyCode | CompanyCodeName | Company Name | |
| ChartOfAccounts | _CompanyCode | ChartOfAccounts | Node Class | |
| ControllingArea | _CompanyCode | ControllingArea | Controlling Area | |
| FinancialManagementArea | _CompanyCode | FinancialManagementArea | FM Area | |
| FinancialInstrumentProductType | FinancialInstrumentProductType | Product Type | ||
| SecurityAccount | SecurityAccount | |||
| SecurityClass | SecurityClass | |||
| DifferentiationPortfolio | DifferentiationPortfolio | |||
| Trader | Trader | Trader | ||
| SecurityAccountGroup | SecurityAccountGroup | |||
| LoanContract | LoanContract | |||
| TreasuryPositionAccount | TreasuryPositionAccount | |||
| TreasuryPositionLongShortCode | TreasuryPositionLongShortCode | |||
| TreasuryPositionLot | TreasuryPositionLot | Lot | ||
| FinancialTransaction | FinancialTransaction | Transaction | ||
| Fund | Fund | Sender Fund | ||
| GrantID | GrantID | Sender Grant | ||
| WBSElementExternalID | _WBSElementBasicData | WBSElementExternalID | WBS Element External ID | |
| ProfitCenter | ProfitCenter | Profit Center | ||
| CostCenter | CostCenter | Cost Center | ||
| FunctionalArea | FunctionalArea | Sendr Fctl Area | ||
| TrsyPosCustomDiffntnTerm1 | TrsyPosCustomDiffntnTerm1 | |||
| TrsyPosCustomDiffntnTerm2 | TrsyPosCustomDiffntnTerm2 | |||
| TrsyPosCustomDiffntnTerm3 | TrsyPosCustomDiffntnTerm3 | |||
| TrsyPosCustomDiffntnTerm4 | TrsyPosCustomDiffntnTerm4 | |||
| TrsyPosCustomDiffntnTerm5 | TrsyPosCustomDiffntnTerm5 | |||
| CentralClearingAccount | CentralClearingAccount | |||
| CentralClearingAccountCurrency | CentralClearingAccountCurrency | |||
| TreasuryPositionContext | TreasuryPositionContext | Rev Context | ||
| TreasuryAccountingCode | TreasuryAccountingCode | Accounting Code | ||
| FinancialExposureItem | FinancialExposureItem | Exposure Item ID | ||
| FinancialExposureSubItem | FinancialExposureSubItem | Exposure Subitem ID | ||
| _CompanyCode | _CompanyCode | |||
| _ControllingArea | _CompanyCode | _ControllingArea | ||
| _LoanContract | _LoanContract | |||
| _TreasuryPositionAccount | _TreasuryPositionAccount | |||
| _TreasuryValuationArea | _TreasuryValuationArea | |||
| _CentralClearingAccount | _CentralClearingAccount | |||
| _SecurityAccountGroup | _SecurityAccountGroup | |||
| _DifferentiationPortfolioText | _DifferentiationPortfolioText | |||
| _SecurityAccount | _SecurityAccount | |||
| _FinancialInstrProdTypeText | _FinancialInstrProdTypeText | |||
| _FinancialInstrProdType | _FinancialInstrProdType | |||
| _SecurityClass | _SecurityClass | |||
| _TreasuryValuationClassText | _TreasuryValuationClassText | |||
| _FinancialInstrValuationClass | _FinancialInstrValuationClass | |||
| _FinancialInstrValClassText | _FinancialInstrValClassText |
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_PositionIdentifierCompCode.
-- 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.
-- SQL view name: PPOSIDENTCOCODE
CREATE VIEW P_PositionIdentifierCompCode AS
SELECT
TrsyPositionIdentificationUUID,
TreasuryPosition,
TreasuryValuationArea,
FinancialInstrValuationClass,
TreasuryValuationClass,
CompanyCode,
_CompanyCode.CompanyCodeName AS CompanyCodeName,
_CompanyCode.ChartOfAccounts AS ChartOfAccounts,
_CompanyCode.ControllingArea AS ControllingArea,
_CompanyCode.FinancialManagementArea AS FinancialManagementArea,
FinancialInstrumentProductType,
SecurityAccount,
SecurityClass,
DifferentiationPortfolio,
Trader,
SecurityAccountGroup,
LoanContract,
TreasuryPositionAccount,
TreasuryPositionLongShortCode,
TreasuryPositionLot,
FinancialTransaction,
Fund,
GrantID,
_WBSElementBasicData.WBSElementExternalID AS WBSElementExternalID,
ProfitCenter,
CostCenter,
FunctionalArea,
TrsyPosCustomDiffntnTerm1,
TrsyPosCustomDiffntnTerm2,
TrsyPosCustomDiffntnTerm3,
TrsyPosCustomDiffntnTerm4,
TrsyPosCustomDiffntnTerm5,
CentralClearingAccount,
CentralClearingAccountCurrency,
TreasuryPositionContext,
TreasuryAccountingCode,
FinancialExposureItem,
FinancialExposureSubItem,
_CompanyCode._ControllingArea AS _ControllingArea
FROM I_PositionIdentifier AS dift
;
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