P_PlanBalFlowDateFunc2

DDL: P_PLANBALFLOWDATEFUNC2 Type: view_entity COMPOSITE Package: FINS_FIS_FICO

P_PlanBalFlowDateFunc2

P_PlanBalFlowDateFunc2 is a Composite CDS View that provides data about "P_PlanBalFlowDateFunc2" in SAP S/4HANA. It reads from 2 data sources (I_FinancialPlanningEntryItem, I_FiscalDateFunctionValue) and exposes 36 fields with key fields ActualPlanCode, PlanningCategory, Ledger, CompanyCode, DateFunction. Part of development package FINS_FIS_FICO.

Data Sources (2)

SourceAliasJoin Type
I_FinancialPlanningEntryItem I_FinancialPlanningEntryItem from
I_FiscalDateFunctionValue I_FiscalDateFunctionValue inner

Annotations (5)

NameValueLevelField
AbapCatalog.entityBuffer.definitionAllowed false view
AccessControl.authorizationCheck #CHECK view
VDM.viewType #COMPOSITE view
VDM.private true view
Metadata.ignorePropagatedAnnotations true view

Fields (36)

KeyFieldSource TableSource FieldDescription
KEY ActualPlanCode
KEY PlanningCategory I_FinancialPlanningEntryItem PlanningCategory
KEY Ledger I_FinancialPlanningEntryItem Ledger
KEY CompanyCode I_FinancialPlanningEntryItem CompanyCode
KEY DateFunction I_FiscalDateFunctionValue DateFunction
KEY FiscalYearPeriod I_FinancialPlanningEntryItem FiscalYearPeriod
KEY GLAccountFlowType
FiscalYearVariant I_FinancialPlanningEntryItem FiscalYearVariant
LedgerFiscalYear I_FinancialPlanningEntryItem LedgerFiscalYear
FiscalYear I_FinancialPlanningEntryItem FiscalYear
FiscalPeriod I_FinancialPlanningEntryItem FiscalPeriod
PostingDate I_FinancialPlanningEntryItem PostingDate
ChartOfAccounts I_FinancialPlanningEntryItem ChartOfAccounts
GLAccount I_FinancialPlanningEntryItem GLAccount
ControllingArea I_FinancialPlanningEntryItem ControllingArea
CostCenter I_FinancialPlanningEntryItem CostCenter
ProfitCenter I_FinancialPlanningEntryItem ProfitCenter
FunctionalArea I_FinancialPlanningEntryItem FunctionalArea
BusinessArea I_FinancialPlanningEntryItem BusinessArea
Segment I_FinancialPlanningEntryItem Segment
Product I_FinancialPlanningEntryItem Product
ProductGroup I_FinancialPlanningEntryItem ProductGroup
SoldProduct I_FinancialPlanningEntryItem SoldProduct
SoldProductGroup I_FinancialPlanningEntryItem SoldProductGroup
Customer I_FinancialPlanningEntryItem Customer
CustomerGroup I_FinancialPlanningEntryItem CustomerGroup
Supplier
GlobalCurrency I_FinancialPlanningEntryItem GlobalCurrency
AmountInGlobalCurrency I_FinancialPlanningEntryItem AmountInGlobalCurrency
FixedAmountInGlobalCrcy I_FinancialPlanningEntryItem FixedAmountInGlobalCrcy
KslwoBCF I_FinancialPlanningEntryItem AmountInGlobalCurrency
KslonlyBCF
_GlobalCurrency I_FinancialPlanningEntryItem _GlobalCurrency
_FiscalCalendarDate I_FinancialPlanningEntryItem _FiscalCalendarDate
_GLAccountInChartOfAccounts I_FinancialPlanningEntryItem _GLAccountInChartOfAccounts
_FiscalYearVariant I_FinancialPlanningEntryItem _FiscalYearVariant
 @AbapCatalog.entityBuffer.definitionAllowed: false
 @AbapCatalog.viewEnhancementCategory: [#PROJECTION_LIST, #UNION]
@AccessControl.authorizationCheck: #CHECK
@VDM.viewType: #COMPOSITE
@VDM.private:true
@Metadata.ignorePropagatedAnnotations: true
define view entity P_PlanBalFlowDateFunc2 as select from I_FinancialPlanningEntryItem as I_FinancialPlanningEntryItem                                                              
              inner join   I_FiscalDateFunctionValue     on       I_FiscalDateFunctionValue.FiscalYearVariant        = I_FinancialPlanningEntryItem.FiscalYearVariant
                                                              and I_FiscalDateFunctionValue.DateFunctionValidityDate = $session.system_date
                                                              and I_FiscalDateFunctionValue.DateFunctionStartDate   <= I_FinancialPlanningEntryItem.PostingDate
                                                              and I_FiscalDateFunctionValue.DateFunctionEndDate     >= I_FinancialPlanningEntryItem.PostingDate                                                                
                                                         
{
key cast( 'P' as fis_actual_plan_code preserving type )   as ActualPlanCode,
key I_FinancialPlanningEntryItem.PlanningCategory,
key I_FinancialPlanningEntryItem.Ledger,
key I_FinancialPlanningEntryItem.CompanyCode,
key I_FiscalDateFunctionValue.DateFunction,
key I_FinancialPlanningEntryItem.FiscalYearPeriod,  
key cast(cast( '2         ' as abap.char(10) ) as fis_glaccount_flow_type preserving type )   as GLAccountFlowType,      

// *************    


   I_FinancialPlanningEntryItem.FiscalYearVariant,
   I_FinancialPlanningEntryItem.LedgerFiscalYear,
   I_FinancialPlanningEntryItem.FiscalYear,

   I_FinancialPlanningEntryItem.FiscalPeriod,                                                               
   I_FinancialPlanningEntryItem.PostingDate,
   
   I_FinancialPlanningEntryItem.ChartOfAccounts,
   I_FinancialPlanningEntryItem.GLAccount,
   
   I_FinancialPlanningEntryItem.ControllingArea,
   I_FinancialPlanningEntryItem.CostCenter,
   I_FinancialPlanningEntryItem.ProfitCenter,
   I_FinancialPlanningEntryItem.FunctionalArea,
   I_FinancialPlanningEntryItem.BusinessArea,
   I_FinancialPlanningEntryItem.Segment,
   
// use Sold...   

   I_FinancialPlanningEntryItem.Product,           // MATNR

   I_FinancialPlanningEntryItem.ProductGroup,      // MATKL_MM 

   
   I_FinancialPlanningEntryItem.SoldProduct,       // MATNR_COPA

   I_FinancialPlanningEntryItem.SoldProductGroup,  // MATKL

   
   I_FinancialPlanningEntryItem.Customer,
   I_FinancialPlanningEntryItem.CustomerGroup,   

   cast( '          ' as md_supplier preserving type ) as Supplier,         
   
   @ObjectModel.foreignKey.association: '_GlobalCurrency'
   I_FinancialPlanningEntryItem.GlobalCurrency,
   @Aggregation.default: #SUM
   @Semantics: { amount : {currencyCode: 'GlobalCurrency'} }
   I_FinancialPlanningEntryItem.AmountInGlobalCurrency,
   @Aggregation.default: #SUM
   @Semantics: { amount : {currencyCode: 'GlobalCurrency'} }
   I_FinancialPlanningEntryItem.FixedAmountInGlobalCrcy,   
   
   @Aggregation.default: #SUM
   @Semantics: { amount : {currencyCode: 'GlobalCurrency'} }         
   I_FinancialPlanningEntryItem.AmountInGlobalCurrency as KslwoBCF,
      
   @Aggregation.default: #SUM
   @Semantics: { amount : {currencyCode: 'GlobalCurrency'} }        
   cast (0 as fis_ksl) as KslonlyBCF,    
   
   I_FinancialPlanningEntryItem._GlobalCurrency,
   I_FinancialPlanningEntryItem._FiscalCalendarDate,
   I_FinancialPlanningEntryItem._GLAccountInChartOfAccounts,
   I_FinancialPlanningEntryItem._FiscalYearVariant     
                                     
}