P_AvgDailyBalACDOCAItem

DDL: P_AVGDAILYBALACDOCAITEM SQL: PADBKFCITEM Type: view COMPOSITE

P_AvgDailyBalACDOCAItem is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_GLAccountLineItem) and exposes 276 fields with key fields Ledger, CompanyCode, FiscalYear, AccountingDocument, LedgerGLLineItem.

Data Sources (1)

SourceAliasJoin Type
I_GLAccountLineItem I_GLAccountLineItem from

Annotations (8)

NameValueLevelField
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.sqlViewName PADBKFCITEM view
VDM.viewType #COMPOSITE view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.private true view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.buffering.status #NOT_ALLOWED view

Fields (276)

KeyFieldSource TableSource FieldDescription
KEY Ledger I_GLAccountLineItem Ledger
KEY CompanyCode I_GLAccountLineItem CompanyCode
KEY FiscalYear I_GLAccountLineItem FiscalYear
KEY AccountingDocument I_GLAccountLineItem AccountingDocument
KEY LedgerGLLineItem I_GLAccountLineItem LedgerGLLineItem
SourceLedger I_GLAccountLineItem SourceLedger
LedgerFiscalYear I_GLAccountLineItem LedgerFiscalYear
FlowOfFundsLedgerFiscalYear
GLRecordType I_GLAccountLineItem GLRecordType
FinancialTransactionType I_GLAccountLineItem FinancialTransactionType
ControllingBusTransacType I_GLAccountLineItem ControllingBusTransacType
BusinessTransactionType I_GLAccountLineItem BusinessTransactionType
ReferenceDocumentContext I_GLAccountLineItem ReferenceDocumentContext
ReferenceDocument I_GLAccountLineItem ReferenceDocument
ReferenceDocumentItem I_GLAccountLineItem ReferenceDocumentItem
ReferenceDocumentItemGroup I_GLAccountLineItem ReferenceDocumentItemGroup
TransactionSubitem TransactionSubitem
IsReversal I_GLAccountLineItem IsReversal
IsReversed I_GLAccountLineItem IsReversed
ReversalReferenceDocumentCntxt I_GLAccountLineItem ReversalReferenceDocumentCntxt
ReversalReferenceDocument I_GLAccountLineItem ReversalReferenceDocument
IsSettlement I_GLAccountLineItem IsSettlement
IsSettled I_GLAccountLineItem IsSettled
PredecessorReferenceDocType I_GLAccountLineItem PredecessorReferenceDocType
PredecessorReferenceDocCntxt I_GLAccountLineItem PredecessorReferenceDocCntxt
PredecessorReferenceDocument I_GLAccountLineItem PredecessorReferenceDocument
PredecessorReferenceDocItem I_GLAccountLineItem PredecessorReferenceDocItem
SourceReferenceDocumentType I_GLAccountLineItem SourceReferenceDocumentType
SourceLogicalSystem I_GLAccountLineItem SourceLogicalSystem
SourceReferenceDocumentCntxt I_GLAccountLineItem SourceReferenceDocumentCntxt
SourceReferenceDocument I_GLAccountLineItem SourceReferenceDocument
SourceReferenceDocumentItem I_GLAccountLineItem SourceReferenceDocumentItem
SourceReferenceDocSubitem I_GLAccountLineItem SourceReferenceDocSubitem
IsCommitment I_GLAccountLineItem IsCommitment
JrnlEntryItemObsoleteReason I_GLAccountLineItem JrnlEntryItemObsoleteReason
BalanceTransactionCurrency I_GLAccountLineItem BalanceTransactionCurrency
CompanyCodeCurrency I_GLAccountLineItem CompanyCodeCurrency
GlobalCurrency I_GLAccountLineItem GlobalCurrency
FunctionalCurrency I_GLAccountLineItem FunctionalCurrency
FreeDefinedCurrency1 I_GLAccountLineItem FreeDefinedCurrency1
FreeDefinedCurrency2 I_GLAccountLineItem FreeDefinedCurrency2
FreeDefinedCurrency3 I_GLAccountLineItem FreeDefinedCurrency3
FreeDefinedCurrency4 I_GLAccountLineItem FreeDefinedCurrency4
FreeDefinedCurrency5 I_GLAccountLineItem FreeDefinedCurrency5
FreeDefinedCurrency6 I_GLAccountLineItem FreeDefinedCurrency6
FreeDefinedCurrency7 I_GLAccountLineItem FreeDefinedCurrency7
FreeDefinedCurrency8 I_GLAccountLineItem FreeDefinedCurrency8
ControllingObjectCurrency I_GLAccountLineItem ControllingObjectCurrency
BaseUnit I_GLAccountLineItem BaseUnit
CostSourceUnit I_GLAccountLineItem CostSourceUnit
GLAccount I_GLAccountLineItem GLAccount
CostCenter I_GLAccountLineItem CostCenter
ProfitCenter I_GLAccountLineItem ProfitCenter
FunctionalArea I_GLAccountLineItem FunctionalArea
BusinessArea I_GLAccountLineItem BusinessArea
Segment I_GLAccountLineItem Segment
ControllingArea I_GLAccountLineItem ControllingArea
PartnerCostCenter I_GLAccountLineItem PartnerCostCenter
PartnerProfitCenter I_GLAccountLineItem PartnerProfitCenter
PartnerFunctionalArea I_GLAccountLineItem PartnerFunctionalArea
PartnerBusinessArea I_GLAccountLineItem PartnerBusinessArea
PartnerCompany I_GLAccountLineItem PartnerCompany
PartnerSegment I_GLAccountLineItem PartnerSegment
AmountInBalanceTransacCrcy I_GLAccountLineItem AmountInBalanceTransacCrcy
AmountInCompanyCodeCurrency I_GLAccountLineItem AmountInCompanyCodeCurrency
AmountInGlobalCurrency I_GLAccountLineItem AmountInGlobalCurrency
AmountInFunctionalCurrency I_GLAccountLineItem AmountInFunctionalCurrency
AmountInFreeDefinedCurrency1 I_GLAccountLineItem AmountInFreeDefinedCurrency1
AmountInFreeDefinedCurrency2 I_GLAccountLineItem AmountInFreeDefinedCurrency2
AmountInFreeDefinedCurrency3 I_GLAccountLineItem AmountInFreeDefinedCurrency3
AmountInFreeDefinedCurrency4 I_GLAccountLineItem AmountInFreeDefinedCurrency4
AmountInFreeDefinedCurrency5 I_GLAccountLineItem AmountInFreeDefinedCurrency5
AmountInFreeDefinedCurrency6 I_GLAccountLineItem AmountInFreeDefinedCurrency6
AmountInFreeDefinedCurrency7 I_GLAccountLineItem AmountInFreeDefinedCurrency7
AmountInFreeDefinedCurrency8 I_GLAccountLineItem AmountInFreeDefinedCurrency8
TotalPriceVarcInGlobalCrcy I_GLAccountLineItem TotalPriceVarcInGlobalCrcy
FixedPriceVarcInGlobalCrcy I_GLAccountLineItem FixedPriceVarcInGlobalCrcy
Quantity I_GLAccountLineItem Quantity
ValuationQuantity I_GLAccountLineItem ValuationQuantity
DebitCreditCode I_GLAccountLineItem DebitCreditCode
FiscalPeriod I_GLAccountLineItem FiscalPeriod
FiscalYearVariant I_GLAccountLineItem FiscalYearVariant
FiscalYearPeriod I_GLAccountLineItem FiscalYearPeriod
DocumentDate I_GLAccountLineItem DocumentDate
AccountingDocumentType I_GLAccountLineItem AccountingDocumentType
AccountingDocumentItem I_GLAccountLineItem AccountingDocumentItem
AssignmentReference I_GLAccountLineItem AssignmentReference
PostingKey I_GLAccountLineItem PostingKey
AccountingDocumentCategory I_GLAccountLineItem AccountingDocumentCategory
TransactionTypeDetermination I_GLAccountLineItem TransactionTypeDetermination
SubLedgerAcctLineItemType I_GLAccountLineItem SubLedgerAcctLineItemType
AccountingDocCreatedByUser I_GLAccountLineItem AccountingDocCreatedByUser
LastChangeDateTime I_GLAccountLineItem LastChangeDateTime
EliminationProfitCenter I_GLAccountLineItem EliminationProfitCenter
OriginObjectType I_GLAccountLineItem OriginObjectType
GLAccountType I_GLAccountLineItem GLAccountType
ChartOfAccounts I_GLAccountLineItem ChartOfAccounts
AlternativeGLAccount I_GLAccountLineItem AlternativeGLAccount
CountryChartOfAccounts I_GLAccountLineItem CountryChartOfAccounts
InvoiceReference I_GLAccountLineItem InvoiceReference
InvoiceReferenceFiscalYear I_GLAccountLineItem InvoiceReferenceFiscalYear
FollowOnDocumentType I_GLAccountLineItem FollowOnDocumentType
InvoiceItemReference I_GLAccountLineItem InvoiceItemReference
ReferencePurchaseOrderCategory I_GLAccountLineItem ReferencePurchaseOrderCategory
PurchasingDocument I_GLAccountLineItem PurchasingDocument
PurchasingDocumentItem I_GLAccountLineItem PurchasingDocumentItem
AccountAssignmentNumber I_GLAccountLineItem AccountAssignmentNumber
DocumentItemText I_GLAccountLineItem DocumentItemText
SalesDocument I_GLAccountLineItem SalesDocument
SalesDocumentItem I_GLAccountLineItem SalesDocumentItem
Product I_GLAccountLineItem Product
Plant I_GLAccountLineItem Plant
Supplier I_GLAccountLineItem Supplier
Customer I_GLAccountLineItem Customer
ServicesRenderedDate I_GLAccountLineItem ServicesRenderedDate
ConditionContract I_GLAccountLineItem ConditionContract
FinancialAccountType I_GLAccountLineItem FinancialAccountType
SpecialGLCode I_GLAccountLineItem SpecialGLCode
TaxCode I_GLAccountLineItem TaxCode
HouseBank I_GLAccountLineItem HouseBank
HouseBankAccount I_GLAccountLineItem HouseBankAccount
IsOpenItemManaged I_GLAccountLineItem IsOpenItemManaged
ClearingDate I_GLAccountLineItem ClearingDate
ClearingAccountingDocument I_GLAccountLineItem ClearingAccountingDocument
ClearingDocFiscalYear I_GLAccountLineItem ClearingDocFiscalYear
AssetDepreciationArea I_GLAccountLineItem AssetDepreciationArea
MasterFixedAsset I_GLAccountLineItem MasterFixedAsset
FixedAsset I_GLAccountLineItem FixedAsset
AssetValueDate I_GLAccountLineItem AssetValueDate
AssetTransactionType I_GLAccountLineItem AssetTransactionType
AssetAcctTransClassfctn I_GLAccountLineItem AssetAcctTransClassfctn
DepreciationFiscalPeriod I_GLAccountLineItem DepreciationFiscalPeriod
GroupMasterFixedAsset I_GLAccountLineItem GroupMasterFixedAsset
GroupFixedAsset I_GLAccountLineItem GroupFixedAsset
AssetClass I_GLAccountLineItem AssetClass
CostEstimate I_GLAccountLineItem CostEstimate
InventorySpecialStockValnType I_GLAccountLineItem InventorySpecialStockValnType
InventorySpecialStockType I_GLAccountLineItem InventorySpecialStockType
InventorySpclStkSalesDocument I_GLAccountLineItem InventorySpclStkSalesDocument
InventorySpclStkSalesDocItm I_GLAccountLineItem InventorySpclStkSalesDocItm
InvtrySpclStockWBSElmntIntID I_GLAccountLineItem InvtrySpclStockWBSElmntIntID
InventorySpclStockWBSElement
InventorySpecialStockSupplier I_GLAccountLineItem InventorySpecialStockSupplier
InventoryValuationType I_GLAccountLineItem InventoryValuationType
ValuationArea I_GLAccountLineItem ValuationArea
SenderGLAccount I_GLAccountLineItem SenderGLAccount
SenderAccountAssignment I_GLAccountLineItem SenderAccountAssignment
SenderAccountAssignmentType I_GLAccountLineItem SenderAccountAssignmentType
CostOriginGroup I_GLAccountLineItem CostOriginGroup
OriginSenderObject I_GLAccountLineItem OriginSenderObject
ControllingDebitCreditCode I_GLAccountLineItem ControllingDebitCreditCode
ControllingObjectDebitType I_GLAccountLineItem ControllingObjectDebitType
QuantityIsIncomplete I_GLAccountLineItem QuantityIsIncomplete
OffsettingAccount I_GLAccountLineItem OffsettingAccount
OffsettingAccountType I_GLAccountLineItem OffsettingAccountType
OffsettingChartOfAccounts I_GLAccountLineItem OffsettingChartOfAccounts
LineItemIsCompleted I_GLAccountLineItem LineItemIsCompleted
PersonnelNumber I_GLAccountLineItem PersonnelNumber
ControllingObjectClass I_GLAccountLineItem ControllingObjectClass
PartnerCompanyCode I_GLAccountLineItem PartnerCompanyCode
PartnerControllingObjectClass I_GLAccountLineItem PartnerControllingObjectClass
OriginCostCenter I_GLAccountLineItem OriginCostCenter
OriginProfitCenter I_GLAccountLineItem OriginProfitCenter
OriginCostCtrActivityType I_GLAccountLineItem OriginCostCtrActivityType
AccountAssignment I_GLAccountLineItem AccountAssignment
AccountAssignmentType I_GLAccountLineItem AccountAssignmentType
CostCtrActivityType I_GLAccountLineItem CostCtrActivityType
OrderID I_GLAccountLineItem OrderID
OrderCategory I_GLAccountLineItem OrderCategory
WBSElementInternalID I_GLAccountLineItem WBSElementInternalID
ProjectNetwork I_GLAccountLineItem ProjectNetwork
RelatedNetworkActivity I_GLAccountLineItem RelatedNetworkActivity
BusinessProcess I_GLAccountLineItem BusinessProcess
CostObject I_GLAccountLineItem CostObject
BillableControl I_GLAccountLineItem BillableControl
CostAnalysisResource I_GLAccountLineItem CostAnalysisResource
CustomerServiceNotification I_GLAccountLineItem CustomerServiceNotification
OperatingConcern I_GLAccountLineItem OperatingConcern
PartnerAccountAssignment I_GLAccountLineItem PartnerAccountAssignment
PartnerAccountAssignmentType I_GLAccountLineItem PartnerAccountAssignmentType
PartnerCostCtrActivityType I_GLAccountLineItem PartnerCostCtrActivityType
PartnerOrder I_GLAccountLineItem PartnerOrder
PartnerOrderCategory I_GLAccountLineItem PartnerOrderCategory
PartnerSalesDocument I_GLAccountLineItem PartnerSalesDocument
PartnerSalesDocumentItem I_GLAccountLineItem PartnerSalesDocumentItem
PartnerProjectNetwork I_GLAccountLineItem PartnerProjectNetwork
PartnerProjectNetworkActivity I_GLAccountLineItem PartnerProjectNetworkActivity
PartnerBusinessProcess I_GLAccountLineItem PartnerBusinessProcess
PartnerCostObject I_GLAccountLineItem PartnerCostObject
WorkItem I_GLAccountLineItem WorkItem
WorkCenterInternalID I_GLAccountLineItem WorkCenterInternalID
OrderOperation I_GLAccountLineItem OrderOperation
OrderItem I_GLAccountLineItem OrderItem
OrderSuboperation I_GLAccountLineItem OrderSuboperation
Equipment I_GLAccountLineItem Equipment
FunctionalLocation I_GLAccountLineItem FunctionalLocation
Assembly I_GLAccountLineItem Assembly
MaintenanceActivityType I_GLAccountLineItem MaintenanceActivityType
MaintenanceOrderPlanningCode I_GLAccountLineItem MaintenanceOrderPlanningCode
MaintPriorityType I_GLAccountLineItem MaintPriorityType
MaintPriority I_GLAccountLineItem MaintPriority
SuperiorOrder I_GLAccountLineItem SuperiorOrder
ProductGroup I_GLAccountLineItem ProductGroup
MaintenanceOrderIsPlanned I_GLAccountLineItem MaintenanceOrderIsPlanned
BillingDocumentType I_GLAccountLineItem BillingDocumentType
SalesOrganization I_GLAccountLineItem SalesOrganization
DistributionChannel I_GLAccountLineItem DistributionChannel
OrganizationDivision I_GLAccountLineItem OrganizationDivision
SoldProduct I_GLAccountLineItem SoldProduct
SoldProductGroup I_GLAccountLineItem SoldProductGroup
CustomerGroup I_GLAccountLineItem CustomerGroup
CustomerSupplierCountry I_GLAccountLineItem CustomerSupplierCountry
CustomerSupplierIndustry I_GLAccountLineItem CustomerSupplierIndustry
SalesDistrict I_GLAccountLineItem SalesDistrict
BillToParty I_GLAccountLineItem BillToParty
ShipToParty I_GLAccountLineItem ShipToParty
CustomerSupplierCorporateGroup I_GLAccountLineItem CustomerSupplierCorporateGroup
CashLedgerCompanyCode I_GLAccountLineItem CashLedgerCompanyCode
CashLedgerAccount I_GLAccountLineItem CashLedgerAccount
FinancialManagementArea I_GLAccountLineItem FinancialManagementArea
FundsCenter I_GLAccountLineItem FundsCenter
FundedProgram I_GLAccountLineItem FundedProgram
Fund I_GLAccountLineItem Fund
GrantID I_GLAccountLineItem GrantID
BudgetPeriod I_GLAccountLineItem BudgetPeriod
PartnerFund I_GLAccountLineItem PartnerFund
PartnerGrant I_GLAccountLineItem PartnerGrant
PartnerBudgetPeriod I_GLAccountLineItem PartnerBudgetPeriod
FinancialServicesProductGroup I_GLAccountLineItem FinancialServicesProductGroup
FinancialServicesBranch I_GLAccountLineItem FinancialServicesBranch
FinancialDataSource I_GLAccountLineItem FinancialDataSource
JointVenture I_GLAccountLineItem JointVenture
JointVentureEquityGroup I_GLAccountLineItem JointVentureEquityGroup
JointVentureCostRecoveryCode I_GLAccountLineItem JointVentureCostRecoveryCode
JointVenturePartner I_GLAccountLineItem JointVenturePartner
JointVentureBillingType I_GLAccountLineItem JointVentureBillingType
JointVentureEquityType I_GLAccountLineItem JointVentureEquityType
JointVentureProductionDate I_GLAccountLineItem JointVentureProductionDate
JointVentureBillingDate I_GLAccountLineItem JointVentureBillingDate
JointVentureOperationalDate I_GLAccountLineItem JointVentureOperationalDate
CutbackRun I_GLAccountLineItem CutbackRun
JointVentureAccountingActivity I_GLAccountLineItem JointVentureAccountingActivity
PartnerVenture I_GLAccountLineItem PartnerVenture
PartnerEquityGroup I_GLAccountLineItem PartnerEquityGroup
SenderCostRecoveryCode I_GLAccountLineItem SenderCostRecoveryCode
CutbackAccount I_GLAccountLineItem CutbackAccount
CutbackCostObject I_GLAccountLineItem CutbackCostObject
REBusinessEntity REBusinessEntity
RealEstateBuilding RealEstateBuilding
RealEstateProperty RealEstateProperty
RERentalObject RERentalObject
RealEstateContract RealEstateContract
REServiceChargeKey REServiceChargeKey
RESettlementUnitID RESettlementUnitID
SettlementReferenceDate SettlementReferenceDate
REPartnerBusinessEntity REPartnerBusinessEntity
RealEstatePartnerBuilding RealEstatePartnerBuilding
RealEstatePartnerProperty RealEstatePartnerProperty
REPartnerRentalObject REPartnerRentalObject
RealEstatePartnerContract RealEstatePartnerContract
REPartnerServiceChargeKey REPartnerServiceChargeKey
REPartnerSettlementUnitID REPartnerSettlementUnitID
PartnerSettlementReferenceDate PartnerSettlementReferenceDate
AccrualObjectType I_GLAccountLineItem AccrualObjectType
AccrualObject I_GLAccountLineItem AccrualObject
AccrualSubobject I_GLAccountLineItem AccrualSubobject
AccrualItemType I_GLAccountLineItem AccrualItemType
ServiceDocument I_GLAccountLineItem ServiceDocument
ServiceDocumentType I_GLAccountLineItem ServiceDocumentType
ConsolidationUnit I_GLAccountLineItem ConsolidationUnit
PartnerConsolidationUnit I_GLAccountLineItem PartnerConsolidationUnit
Company I_GLAccountLineItem Company
ConsolidationChartOfAccounts I_GLAccountLineItem ConsolidationChartOfAccounts
CnsldtnFinancialStatementItem I_GLAccountLineItem CnsldtnFinancialStatementItem
CnsldtnSubitemCategory I_GLAccountLineItem CnsldtnSubitemCategory
CnsldtnSubitem I_GLAccountLineItem CnsldtnSubitem
@AbapCatalog.preserveKey: true
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.sqlViewName: 'PADBKFCITEM'
@VDM.viewType: #COMPOSITE
@AccessControl.authorizationCheck: #NOT_REQUIRED
@VDM.private:true
@ClientHandling.algorithm: #SESSION_VARIABLE
@AbapCatalog.buffering.status: #NOT_ALLOWED

define view P_AvgDailyBalACDOCAItem
  as select from    I_GLAccountLineItem as I_GLAccountLineItem
    left outer to one join I_FiscalYearPeriod  as fip  on  fip.FiscalYearVariant = I_GLAccountLineItem.FiscalYearVariant
                                                and fip.FiscalYear        = I_GLAccountLineItem.LedgerFiscalYear
                                                and fip.FiscalPeriod      = I_GLAccountLineItem.FiscalPeriod
    left outer to one join I_FiscalYearPeriod  as fip0 on  fip0.FiscalYearVariant = I_GLAccountLineItem.FiscalYearVariant
                                                and fip0.FiscalYear        = I_GLAccountLineItem.LedgerFiscalYear
                                                and fip0.FiscalPeriod      = '001'

{
  key I_GLAccountLineItem.Ledger as Ledger,
  key I_GLAccountLineItem.CompanyCode,
  key I_GLAccountLineItem.FiscalYear,
  key I_GLAccountLineItem.AccountingDocument,
  key I_GLAccountLineItem.LedgerGLLineItem,

  I_GLAccountLineItem.SourceLedger as SourceLedger,

      I_GLAccountLineItem.LedgerFiscalYear,
      cast( I_GLAccountLineItem.LedgerFiscalYear as fis_ryear_flow preserving type ) as FlowOfFundsLedgerFiscalYear,
      I_GLAccountLineItem.GLRecordType,
      I_GLAccountLineItem.FinancialTransactionType,
      I_GLAccountLineItem.ControllingBusTransacType,
      I_GLAccountLineItem.BusinessTransactionType,
      I_GLAccountLineItem.ReferenceDocumentContext,
      I_GLAccountLineItem.ReferenceDocument,
      I_GLAccountLineItem.ReferenceDocumentItem,
      I_GLAccountLineItem.ReferenceDocumentItemGroup,
      TransactionSubitem,
      I_GLAccountLineItem.IsReversal,
      I_GLAccountLineItem.IsReversed,
      I_GLAccountLineItem.ReversalReferenceDocumentCntxt,
      I_GLAccountLineItem.ReversalReferenceDocument,
      I_GLAccountLineItem.IsSettlement,
      I_GLAccountLineItem.IsSettled,
      I_GLAccountLineItem.PredecessorReferenceDocType,
      I_GLAccountLineItem.PredecessorReferenceDocCntxt,
      I_GLAccountLineItem.PredecessorReferenceDocument,
      I_GLAccountLineItem.PredecessorReferenceDocItem,
      I_GLAccountLineItem.SourceReferenceDocumentType,
      I_GLAccountLineItem.SourceLogicalSystem,
      I_GLAccountLineItem.SourceReferenceDocumentCntxt,
      I_GLAccountLineItem.SourceReferenceDocument,
      I_GLAccountLineItem.SourceReferenceDocumentItem,
      I_GLAccountLineItem.SourceReferenceDocSubitem,
      I_GLAccountLineItem.IsCommitment,
      I_GLAccountLineItem.JrnlEntryItemObsoleteReason,
      I_GLAccountLineItem.BalanceTransactionCurrency,
      I_GLAccountLineItem.CompanyCodeCurrency,
      I_GLAccountLineItem.GlobalCurrency,
      I_GLAccountLineItem.FunctionalCurrency,
      I_GLAccountLineItem.FreeDefinedCurrency1,
      I_GLAccountLineItem.FreeDefinedCurrency2,
      I_GLAccountLineItem.FreeDefinedCurrency3,
      I_GLAccountLineItem.FreeDefinedCurrency4,
      I_GLAccountLineItem.FreeDefinedCurrency5,
      I_GLAccountLineItem.FreeDefinedCurrency6,
      I_GLAccountLineItem.FreeDefinedCurrency7,
      I_GLAccountLineItem.FreeDefinedCurrency8,
      I_GLAccountLineItem.ControllingObjectCurrency,
      I_GLAccountLineItem.BaseUnit,
      I_GLAccountLineItem.CostSourceUnit,
      I_GLAccountLineItem.GLAccount,
      I_GLAccountLineItem.CostCenter,
      I_GLAccountLineItem.ProfitCenter,
      I_GLAccountLineItem.FunctionalArea,
      I_GLAccountLineItem.BusinessArea,
      I_GLAccountLineItem.Segment,
      I_GLAccountLineItem.ControllingArea,
      I_GLAccountLineItem.PartnerCostCenter,
      I_GLAccountLineItem.PartnerProfitCenter,
      I_GLAccountLineItem.PartnerFunctionalArea,
      I_GLAccountLineItem.PartnerBusinessArea,
      I_GLAccountLineItem.PartnerCompany,
      I_GLAccountLineItem.PartnerSegment,
      I_GLAccountLineItem.AmountInBalanceTransacCrcy,
      I_GLAccountLineItem.AmountInCompanyCodeCurrency,
      I_GLAccountLineItem.AmountInGlobalCurrency,
      I_GLAccountLineItem.AmountInFunctionalCurrency,
      I_GLAccountLineItem.AmountInFreeDefinedCurrency1,
      I_GLAccountLineItem.AmountInFreeDefinedCurrency2,
      I_GLAccountLineItem.AmountInFreeDefinedCurrency3,
      I_GLAccountLineItem.AmountInFreeDefinedCurrency4,
      I_GLAccountLineItem.AmountInFreeDefinedCurrency5,
      I_GLAccountLineItem.AmountInFreeDefinedCurrency6,
      I_GLAccountLineItem.AmountInFreeDefinedCurrency7,
      I_GLAccountLineItem.AmountInFreeDefinedCurrency8,
      I_GLAccountLineItem.TotalPriceVarcInGlobalCrcy,
      I_GLAccountLineItem.FixedPriceVarcInGlobalCrcy,
      I_GLAccountLineItem.Quantity,
      I_GLAccountLineItem.ValuationQuantity,
      I_GLAccountLineItem.DebitCreditCode,
      I_GLAccountLineItem.FiscalPeriod,
      I_GLAccountLineItem.FiscalYearVariant,
      I_GLAccountLineItem.FiscalYearPeriod,
      case
        when PostingDate = '00000000'
        then case
             when I_GLAccountLineItem.FiscalPeriod = '000'
             then fip0.FiscalPeriodStartDate
             else fip.FiscalPeriodStartDate
             end
        else PostingDate
        end                                                                                          as PostingDate,
      case
      when I_GLAccountLineItem.FiscalPeriod = '000'
      then fip0.FiscalPeriodStartDate
      else dats_add_days( fip.FiscalPeriodEndDate, 1, 'NULL' )
      end                                                                                            as next_period_start,
      I_GLAccountLineItem.DocumentDate,
      I_GLAccountLineItem.AccountingDocumentType,
      I_GLAccountLineItem.AccountingDocumentItem,
      I_GLAccountLineItem.AssignmentReference,
      I_GLAccountLineItem.PostingKey,
      I_GLAccountLineItem.AccountingDocumentCategory,
      I_GLAccountLineItem.TransactionTypeDetermination,
      I_GLAccountLineItem.SubLedgerAcctLineItemType,
      I_GLAccountLineItem.AccountingDocCreatedByUser,
      I_GLAccountLineItem.LastChangeDateTime,
      I_GLAccountLineItem.EliminationProfitCenter,
      I_GLAccountLineItem.OriginObjectType,
      I_GLAccountLineItem.GLAccountType,
      I_GLAccountLineItem.ChartOfAccounts,
      I_GLAccountLineItem.AlternativeGLAccount,
      I_GLAccountLineItem.CountryChartOfAccounts,
      I_GLAccountLineItem.InvoiceReference,
      I_GLAccountLineItem.InvoiceReferenceFiscalYear,
      I_GLAccountLineItem.FollowOnDocumentType,
      I_GLAccountLineItem.InvoiceItemReference,
      I_GLAccountLineItem.ReferencePurchaseOrderCategory,
      I_GLAccountLineItem.PurchasingDocument,
      I_GLAccountLineItem.PurchasingDocumentItem,
      I_GLAccountLineItem.AccountAssignmentNumber,
      I_GLAccountLineItem.DocumentItemText,
      I_GLAccountLineItem.SalesDocument,
      I_GLAccountLineItem.SalesDocumentItem,
      I_GLAccountLineItem.Product,
      I_GLAccountLineItem.Plant,
      I_GLAccountLineItem.Supplier,
      I_GLAccountLineItem.Customer,
      I_GLAccountLineItem.ServicesRenderedDate,
      I_GLAccountLineItem.ConditionContract,
      I_GLAccountLineItem.FinancialAccountType,
      I_GLAccountLineItem.SpecialGLCode,
      //       '_TaxCode'

      I_GLAccountLineItem.TaxCode,
      I_GLAccountLineItem.HouseBank,
      I_GLAccountLineItem.HouseBankAccount,
      I_GLAccountLineItem.IsOpenItemManaged,
      I_GLAccountLineItem.ClearingDate,
      I_GLAccountLineItem.ClearingAccountingDocument,
      I_GLAccountLineItem.ClearingDocFiscalYear,
      I_GLAccountLineItem.AssetDepreciationArea,
      I_GLAccountLineItem.MasterFixedAsset,
      I_GLAccountLineItem.FixedAsset,
      I_GLAccountLineItem.AssetValueDate,
      I_GLAccountLineItem.AssetTransactionType,
      I_GLAccountLineItem.AssetAcctTransClassfctn,
      I_GLAccountLineItem.DepreciationFiscalPeriod,
      I_GLAccountLineItem.GroupMasterFixedAsset,
      I_GLAccountLineItem.GroupFixedAsset,
      I_GLAccountLineItem.AssetClass,
      I_GLAccountLineItem.CostEstimate,
      I_GLAccountLineItem.InventorySpecialStockValnType,
      //xobew,

      I_GLAccountLineItem.InventorySpecialStockType,
      I_GLAccountLineItem.InventorySpclStkSalesDocument, //  as InventorySpecialStockSalesDocument,

      I_GLAccountLineItem.InventorySpclStkSalesDocItm, //  as InventorySpecialStockSalesDocumentItem,

      I_GLAccountLineItem.InvtrySpclStockWBSElmntIntID,
      cast( I_GLAccountLineItem.InventorySpclStockWBSElement as fis_invspstock_wbs preserving type ) as InventorySpclStockWBSElement, //  as InventorySpecialStockWBSElement,

      I_GLAccountLineItem.InventorySpecialStockSupplier,
      I_GLAccountLineItem.InventoryValuationType,
      I_GLAccountLineItem.ValuationArea,
      I_GLAccountLineItem.SenderGLAccount,
      I_GLAccountLineItem.SenderAccountAssignment,
      I_GLAccountLineItem.SenderAccountAssignmentType,
      I_GLAccountLineItem.CostOriginGroup,
      I_GLAccountLineItem.OriginSenderObject,
      I_GLAccountLineItem.ControllingDebitCreditCode,
      I_GLAccountLineItem.ControllingObjectDebitType,
      I_GLAccountLineItem.QuantityIsIncomplete,
      I_GLAccountLineItem.OffsettingAccount,
      I_GLAccountLineItem.OffsettingAccountType,
      I_GLAccountLineItem.OffsettingChartOfAccounts,
      I_GLAccountLineItem.LineItemIsCompleted,
      I_GLAccountLineItem.PersonnelNumber,
      I_GLAccountLineItem.ControllingObjectClass,
      I_GLAccountLineItem.PartnerCompanyCode,
      I_GLAccountLineItem.PartnerControllingObjectClass,
      I_GLAccountLineItem.OriginCostCenter,
      I_GLAccountLineItem.OriginProfitCenter,
      I_GLAccountLineItem.OriginCostCtrActivityType,
      I_GLAccountLineItem.AccountAssignment,
      I_GLAccountLineItem.AccountAssignmentType,
      I_GLAccountLineItem.CostCtrActivityType,
      I_GLAccountLineItem.OrderID,
      I_GLAccountLineItem.OrderCategory,
      I_GLAccountLineItem.WBSElementInternalID,
      I_GLAccountLineItem.ProjectNetwork,
      I_GLAccountLineItem.RelatedNetworkActivity,
      I_GLAccountLineItem.BusinessProcess,
      I_GLAccountLineItem.CostObject,
      I_GLAccountLineItem.BillableControl,
      I_GLAccountLineItem.CostAnalysisResource,
      I_GLAccountLineItem.CustomerServiceNotification,
      I_GLAccountLineItem.OperatingConcern,
      I_GLAccountLineItem.PartnerAccountAssignment,
      I_GLAccountLineItem.PartnerAccountAssignmentType,
      I_GLAccountLineItem.PartnerCostCtrActivityType,
      I_GLAccountLineItem.PartnerOrder,
      I_GLAccountLineItem.PartnerOrderCategory,
      I_GLAccountLineItem.PartnerSalesDocument,
      I_GLAccountLineItem.PartnerSalesDocumentItem,
      I_GLAccountLineItem.PartnerProjectNetwork,
      I_GLAccountLineItem.PartnerProjectNetworkActivity,
      I_GLAccountLineItem.PartnerBusinessProcess,
      I_GLAccountLineItem.PartnerCostObject,
      I_GLAccountLineItem.WorkItem,
      I_GLAccountLineItem.WorkCenterInternalID,
      I_GLAccountLineItem.OrderOperation,
      I_GLAccountLineItem.OrderItem,
      I_GLAccountLineItem.OrderSuboperation,
      I_GLAccountLineItem.Equipment,
      I_GLAccountLineItem.FunctionalLocation,
      I_GLAccountLineItem.Assembly,
      I_GLAccountLineItem.MaintenanceActivityType,
      I_GLAccountLineItem.MaintenanceOrderPlanningCode,
      I_GLAccountLineItem.MaintPriorityType,
      I_GLAccountLineItem.MaintPriority,
      I_GLAccountLineItem.SuperiorOrder,
      I_GLAccountLineItem.ProductGroup,
      I_GLAccountLineItem.MaintenanceOrderIsPlanned,
      I_GLAccountLineItem.BillingDocumentType,
      I_GLAccountLineItem.SalesOrganization,
      I_GLAccountLineItem.DistributionChannel,
      I_GLAccountLineItem.OrganizationDivision,
      I_GLAccountLineItem.SoldProduct,
      I_GLAccountLineItem.SoldProductGroup,
      I_GLAccountLineItem.CustomerGroup,
      I_GLAccountLineItem.CustomerSupplierCountry,
      I_GLAccountLineItem.CustomerSupplierIndustry,
      I_GLAccountLineItem.SalesDistrict,
      I_GLAccountLineItem.BillToParty,
      I_GLAccountLineItem.ShipToParty,
      I_GLAccountLineItem.CustomerSupplierCorporateGroup,
      I_GLAccountLineItem.CashLedgerCompanyCode,
      I_GLAccountLineItem.CashLedgerAccount,
      I_GLAccountLineItem.FinancialManagementArea,
      I_GLAccountLineItem.FundsCenter,
      I_GLAccountLineItem.FundedProgram,
      I_GLAccountLineItem.Fund,
      I_GLAccountLineItem.GrantID,
      I_GLAccountLineItem.BudgetPeriod,
      I_GLAccountLineItem.PartnerFund,
      I_GLAccountLineItem.PartnerGrant,
      I_GLAccountLineItem.PartnerBudgetPeriod,

      ///////////////////////////////////////////////////////////////////////

      // .INCLUDE ACDOC_SI_JVA  Universal Journal Entry: Fields for Financial Services

      ///////////////////////////////////////////////////////////////////////

      I_GLAccountLineItem.FinancialServicesProductGroup,
      I_GLAccountLineItem.FinancialServicesBranch,
      I_GLAccountLineItem.FinancialDataSource,

      I_GLAccountLineItem.JointVenture,
      I_GLAccountLineItem.JointVentureEquityGroup,
      I_GLAccountLineItem.JointVentureCostRecoveryCode,
      I_GLAccountLineItem.JointVenturePartner,
      I_GLAccountLineItem.JointVentureBillingType,
      I_GLAccountLineItem.JointVentureEquityType,
      I_GLAccountLineItem.JointVentureProductionDate,
      I_GLAccountLineItem.JointVentureBillingDate,
      I_GLAccountLineItem.JointVentureOperationalDate,
      I_GLAccountLineItem.CutbackRun,
      I_GLAccountLineItem.JointVentureAccountingActivity,
      I_GLAccountLineItem.PartnerVenture,
      I_GLAccountLineItem.PartnerEquityGroup,
      I_GLAccountLineItem.SenderCostRecoveryCode,
      I_GLAccountLineItem.CutbackAccount,
      I_GLAccountLineItem.CutbackCostObject,
      REBusinessEntity,
      RealEstateBuilding,
      RealEstateProperty,
      RERentalObject,
      RealEstateContract,
      REServiceChargeKey,
      RESettlementUnitID,
      SettlementReferenceDate,
      REPartnerBusinessEntity,
      RealEstatePartnerBuilding,
      RealEstatePartnerProperty,
      REPartnerRentalObject,
      RealEstatePartnerContract,
      REPartnerServiceChargeKey,
      REPartnerSettlementUnitID,
      PartnerSettlementReferenceDate,
      I_GLAccountLineItem.AccrualObjectType,
      // '_AccrualObject'

      I_GLAccountLineItem.AccrualObject,
      // '_AccrualSubobject'

      I_GLAccountLineItem.AccrualSubobject,
      // '_AccrualItemType'

      I_GLAccountLineItem.AccrualItemType,
      I_GLAccountLineItem.ServiceDocument,
      I_GLAccountLineItem.ServiceDocumentType,

      /////////////////////////////////////////////////////////////////////////////

      // .INCLUDE ACDOC_SI_FINCS   Universal Journal Entry: Fields for Group Reporting

      ////////////////////////////////////////////////////////////////////////////

      I_GLAccountLineItem.ConsolidationUnit,
      I_GLAccountLineItem.PartnerConsolidationUnit,
      I_GLAccountLineItem.Company,
      I_GLAccountLineItem.ConsolidationChartOfAccounts,
      I_GLAccountLineItem.CnsldtnFinancialStatementItem,
      I_GLAccountLineItem.CnsldtnSubitemCategory,
      I_GLAccountLineItem.CnsldtnSubitem
}
;