P_PLANDATA_RT_07
P_PLANDATA_RT_07 is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_FinancialPlanningEntryItem, P_PlanData_RT_06) and exposes 61 fields.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_FinancialPlanningEntryItem | _acdocp | inner |
| P_PlanData_RT_06 | P_PlanData_RT_06 | from |
Parameters (2)
| Name | Type | Default |
|---|---|---|
| P_CreationDateTimeRgFr | timestamp | |
| P_CreationDateTimeRgTo | timestamp |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.sqlViewName | PPLANDATA_07 | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.private | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (61)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| SubItemCategory | Source | SubItemCategory | ||
| SubItem | Source | SubItem | ||
| PartnerConsolidationUnit | Source | PartnerConsolidationUnit | ||
| BaseUnit | Source | BaseUnit | ||
| QuantityInBaseUnit | Source | QuantityInBaseUnit | ||
| FinancialTransactionType | Source | FinancialTransactionType | ||
| FunctionalArea | Source | FunctionalArea | ||
| BusinessArea | Source | BusinessArea | ||
| CostCenter | Source | CostCenter | ||
| GLAccount | Source | GLAccount | ||
| ProfitCenter | Source | ProfitCenter | ||
| Segment | Source | Segment | ||
| AmountInLocalCurrency | Source | AmountInLocalCurrency | ||
| AmountInGroupCurrency | Source | AmountInGroupCurrency | ||
| FinancialStatementItem | Source | FinancialStatementItem | ||
| ConsolidationChartOfAccounts | Source | ConsolidationChartOfAccounts | ||
| ConsolidationUnitLocalCurrency | Source | ConsolidationUnitLocalCurrency | ||
| ConsolidationDimension | Source | ConsolidationDimension | ||
| ConsolidationUnit | Source | ConsolidationUnit | ||
| ConsolidationVersion | Source | ConsolidationVersion | ||
| ConsolidationLedger | Source | ConsolidationLedger | ||
| GroupCurrency | Source | GroupCurrency | ||
| FiscalPeriod | Source | FiscalPeriod | ||
| FiscalYear | Source | FiscalYear | ||
| CompanyCode | I_FinancialPlanningEntryItem | CompanyCode | ||
| ChartOfAccounts | I_FinancialPlanningEntryItem | ChartOfAccounts | ||
| AssignmentReference | ||||
| ControllingArea | I_FinancialPlanningEntryItem | ControllingArea | ||
| PartnerCostCenter | I_FinancialPlanningEntryItem | PartnerCostCenter | ||
| PartnerProfitCenter | I_FinancialPlanningEntryItem | PartnerProfitCenter | ||
| PartnerFunctionalArea | I_FinancialPlanningEntryItem | PartnerFunctionalArea | ||
| PartnerBusinessArea | I_FinancialPlanningEntryItem | PartnerBusinessArea | ||
| PartnerCompany | I_FinancialPlanningEntryItem | PartnerCompany | ||
| PartnerSegment | I_FinancialPlanningEntryItem | PartnerSegment | ||
| OrderID | I_FinancialPlanningEntryItem | OrderID | ||
| Customer | I_FinancialPlanningEntryItem | Customer | ||
| Supplier | ||||
| Material | I_FinancialPlanningEntryItem | Material | ||
| MaterialGroup | I_FinancialPlanningEntryItem | MaterialGroup | ||
| Plant | I_FinancialPlanningEntryItem | Plant | ||
| WBSElementExternalID | I_FinancialPlanningEntryItem | WBSElement | ||
| WBSElement | I_FinancialPlanningEntryItem | WBSElement | ||
| Project | I_FinancialPlanningEntryItem | Project | ||
| BillingDocumentType | I_FinancialPlanningEntryItem | BillingDocumentType | ||
| SalesOrganization | I_FinancialPlanningEntryItem | SalesOrganization | ||
| DistributionChannel | I_FinancialPlanningEntryItem | DistributionChannel | ||
| OrganizationDivision | I_FinancialPlanningEntryItem | OrganizationDivision | ||
| SoldProduct | I_FinancialPlanningEntryItem | SoldProduct | ||
| SoldProductGroup | I_FinancialPlanningEntryItem | SoldProductGroup | ||
| CustomerGroup | I_FinancialPlanningEntryItem | CustomerGroup | ||
| CustomerSupplierCountry | I_FinancialPlanningEntryItem | CustomerSupplierCountry | ||
| CustomerSupplierIndustry | I_FinancialPlanningEntryItem | CustomerSupplierIndustry | ||
| SalesDistrict | I_FinancialPlanningEntryItem | SalesDistrict | ||
| BillToParty | I_FinancialPlanningEntryItem | BillToParty | ||
| ShipToParty | I_FinancialPlanningEntryItem | ShipToParty | ||
| CustomerSupplierCorporateGroup | I_FinancialPlanningEntryItem | CustomerSupplierCorporateGroup | ||
| WBSElementInternalID | I_FinancialPlanningEntryItem | WBSElementInternalID | ||
| CreationDateTime | I_FinancialPlanningEntryItem | FinPlngEntryItemCrtnDateTime | ||
| FinancialPlanningReqTransSqnc | Source | FinancialPlanningReqTransSqnc | ||
| FinancialPlanningDataPacket | Source | FinancialPlanningDataPacket | ||
| FinancialPlanningEntryItem | Source | FinancialPlanningEntryItem |
@AbapCatalog.preserveKey: true
@AbapCatalog.sqlViewName: 'PPLANDATA_07'
@AbapCatalog.compiler.compareFilter: true
@VDM.viewType: #COMPOSITE
@AccessControl.authorizationCheck: #NOT_REQUIRED
@VDM.private:true
@ClientHandling.algorithm: #SESSION_VARIABLE
//@AccessControl.authorizationCheck: #NOT_ALLOWED
@ObjectModel.usageType.serviceQuality: #X
@ObjectModel.usageType.dataClass: #MIXED
@ObjectModel.usageType.sizeCategory: #XL
@AccessControl.personalData.blocking: #NOT_REQUIRED
@Metadata.ignorePropagatedAnnotations: true
define view P_PLANDATA_RT_07
with parameters
P_CreationDateTimeRgFr :timestamp,
P_CreationDateTimeRgTo :timestamp
as select from P_PlanData_RT_06
(P_CreationDateTimeRgFr : :P_CreationDateTimeRgFr,
P_CreationDateTimeRgTo : :P_CreationDateTimeRgTo) as Source
// TF103A: Breakdown info for transaction currency (RTCUR) depending on breakdown category (ITGRP)
left outer to one join I_BreakdownCategoryField tf103a_rtcur on Source.ConsolidationChartOfAccounts = tf103a_rtcur.ConsolidationChartOfAccounts
and Source.BreakdownCategory = tf103a_rtcur.BreakdownCategory
and tf103a_rtcur.BreakdownCatFieldName = 'RTCUR'
// TF160: Cons. unit master data
left outer to one join I_CnsldtnUnit on Source.ConsolidationDimension = I_CnsldtnUnit.ConsolidationDimension
and Source.ConsolidationUnit = I_CnsldtnUnit.ConsolidationUnit
inner join I_FinancialPlanningEntryItem as _acdocp on Source.FinancialPlanningReqTransSqnc = _acdocp.FinancialPlanningReqTransSqnc
and Source.FinancialPlanningDataPacket = _acdocp.FinancialPlanningDataPacket
and Source.FinancialPlanningEntryItem = _acdocp.FinancialPlanningEntryItem
/*association [1..1] to I_FinancialPlanningEntryItem as _acdocp on Source.FinancialPlanningReqTransSqnc = _acdocp.FinancialPlanningReqTransSqnc
and Source.FinancialPlanningDataPacket = _acdocp.FinancialPlanningDataPacket
and Source.FinancialPlanningEntryItem = _acdocp.FinancialPlanningEntryItem*/
{
// Value in transaction currency (TSL): Evaluate breakdown type for RTCUR
case //only 0 and 2 are possible for RTCUR
when tf103a_rtcur.BreakdownType = '0'
or tf103a_rtcur.BreakdownType is null
// no breakdown
then
// TSL is never empty: Set local or group currency as default
case I_CnsldtnUnit.DocumentEntryIsInGroupCurrency
when '' then Source.AmountInLocalCurrency
when 'X' // The cons. unit provides only values in group currency
then Source.AmountInGroupCurrency
end
when tf103a_rtcur.BreakdownType = '2'
// breakdown required, default allowed
then Source.AmountInTransactionCurrency
end as AmountInTransactionCurrency,
// Transaction currency key (RTCUR): Evaluate breakdown type
case //only 0 and 2 are possible for RTCUR
when tf103a_rtcur.BreakdownType = '0'
or tf103a_rtcur.BreakdownType is null
// no breakdown
then
// RTCUR is never empty: Set local or group currency as default
case I_CnsldtnUnit.DocumentEntryIsInGroupCurrency
when '' then Source.ConsolidationUnitLocalCurrency
when 'X' // The cons. unit provides only values in group currency
then Source.GroupCurrency
end
when tf103a_rtcur.BreakdownType = '2'
// breakdown required, default allowed
then Source.BalanceTransactionCurrency
end as BalanceTransactionCurrency,
// case
Source.SubItemCategory,
Source.SubItem,
Source.PartnerConsolidationUnit,
Source.BaseUnit,
Source.QuantityInBaseUnit,
Source.FinancialTransactionType,
Source.FunctionalArea,
Source.BusinessArea,
Source.CostCenter,
Source.GLAccount,
Source.ProfitCenter,
Source.Segment,
Source.AmountInLocalCurrency,
Source.AmountInGroupCurrency,
// I_CnsldtnFinStmntItem
/*Source.BreakdownCategory,*/
// I_FSItemMappingAssgmtWithVers
Source.FinancialStatementItem,
Source.ConsolidationChartOfAccounts,
// P_ConsolidationUnitCurrency
Source.ConsolidationUnitLocalCurrency,
// tfin010
Source.ConsolidationDimension,
Source.ConsolidationUnit,
// tf200
Source.ConsolidationVersion,
// t881
Source.ConsolidationLedger,
Source.GroupCurrency,
// I_FiscalCalendarDate / Or other source
Source.FiscalPeriod,
Source.FiscalYear,
// mandatory standard fields
/*Source.BalanceTransactionCurrency,*/
/*Source.AmountInTransactionCurrency,*/
// additional fields
_acdocp.CompanyCode,
_acdocp.ChartOfAccounts,
cast('' as dzuonr) as AssignmentReference,
_acdocp.ControllingArea,
_acdocp.PartnerCostCenter,
_acdocp.PartnerProfitCenter,
_acdocp.PartnerFunctionalArea,
_acdocp.PartnerBusinessArea,
_acdocp.PartnerCompany,
_acdocp.PartnerSegment,
_acdocp.OrderID,
_acdocp.Customer,
cast('' as lifnr) as Supplier,
_acdocp.Material,
_acdocp.MaterialGroup,
_acdocp.Plant,
_acdocp.WBSElement as WBSElementExternalID,
_acdocp.WBSElement,
_acdocp.Project,
_acdocp.BillingDocumentType,
_acdocp.SalesOrganization,
_acdocp.DistributionChannel,
_acdocp.OrganizationDivision,
_acdocp.SoldProduct,
_acdocp.SoldProductGroup,
_acdocp.CustomerGroup,
_acdocp.CustomerSupplierCountry,
_acdocp.CustomerSupplierIndustry,
_acdocp.SalesDistrict,
_acdocp.BillToParty,
_acdocp.ShipToParty,
_acdocp.CustomerSupplierCorporateGroup,
_acdocp.WBSElementInternalID,
_acdocp.FinPlngEntryItemCrtnDateTime as CreationDateTime,
// specific fileds for this cds view
Source.FinancialPlanningReqTransSqnc,
Source.FinancialPlanningDataPacket,
Source.FinancialPlanningEntryItem
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_BREAKDOWNCATEGORYFIELD",
"I_CNSLDTNUNIT",
"I_FINANCIALPLANNINGENTRYITEM",
"P_PLANDATA_RT_06"
],
"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