P_PlanBalFlowDateFunc

DDL: P_PLANBALFLOWDATEFUNC Type: view_entity COMPOSITE Package: FINS_FIS_FICO

P_PlanBalFlowDateFunc

P_PlanBalFlowDateFunc is a Composite CDS View that provides data about "P_PlanBalFlowDateFunc" in SAP S/4HANA. It reads from 2 data sources (I_FinancialPlanningEntryItem, P_FiscalDateFunctionValueFY) 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
P_FiscalDateFunctionValueFY P_FiscalDateFunctionValueFY 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 P_FiscalDateFunctionValueFY 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
OrderID I_FinancialPlanningEntryItem OrderID
SalesDocument I_FinancialPlanningEntryItem SalesDocument
Supplier
GlobalCurrency I_FinancialPlanningEntryItem GlobalCurrency
AmountInGlobalCurrency I_FinancialPlanningEntryItem AmountInGlobalCurrency
FixedAmountInGlobalCrcy I_FinancialPlanningEntryItem FixedAmountInGlobalCrcy
_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_PlanBalFlowDateFunc as select from I_FinancialPlanningEntryItem as I_FinancialPlanningEntryItem
              inner join   P_FiscalDateFunctionValueFY   on (     P_FiscalDateFunctionValueFY.FiscalYearVariant        = I_FinancialPlanningEntryItem.FiscalYearVariant
                                                              and P_FiscalDateFunctionValueFY.DateFunctionValidityDate = $session.system_date
                                                              and P_FiscalDateFunctionValueFY.FiscalYearStartDate     <= I_FinancialPlanningEntryItem.PostingDate
                                                              and P_FiscalDateFunctionValueFY.DateFunctionEndDate     >= I_FinancialPlanningEntryItem.PostingDate )
                                                         or (     P_FiscalDateFunctionValueFY.FiscalYearVariant        = I_FinancialPlanningEntryItem.FiscalYearVariant 
                                                              and P_FiscalDateFunctionValueFY.DateFunctionValidityDate = $session.system_date
                                                              and P_FiscalDateFunctionValueFY.StartFiscalYear         <= I_FinancialPlanningEntryItem.LedgerFiscalYear
                                                              and P_FiscalDateFunctionValueFY.EndFiscalYear           >= I_FinancialPlanningEntryItem.LedgerFiscalYear 
                                                              and                                                        I_FinancialPlanningEntryItem.FiscalPeriod = '000' )
{
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 P_FiscalDateFunctionValueFY.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,   
   
   I_FinancialPlanningEntryItem.OrderID,
   I_FinancialPlanningEntryItem.SalesDocument,

   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'} }        
   case when I_FinancialPlanningEntryItem.PostingDate <> '00000000' then I_FinancialPlanningEntryItem.AmountInGlobalCurrency    
                                       else cast (0 as fis_ksl)
   end
   as KslwoBCF,
      
   @Aggregation.default: #SUM
   @Semantics: { amount : {currencyCode: 'GlobalCurrency'} }        
   case when I_FinancialPlanningEntryItem.PostingDate = '00000000' then I_FinancialPlanningEntryItem.AmountInGlobalCurrency    
                                      else cast (0 as fis_ksl)
   end
   as KslonlyBCF,     
   
   I_FinancialPlanningEntryItem._GlobalCurrency,
   I_FinancialPlanningEntryItem._FiscalCalendarDate,
   I_FinancialPlanningEntryItem._GLAccountInChartOfAccounts,
   I_FinancialPlanningEntryItem._FiscalYearVariant     
                                     
}