P_EngmntProjGLAcctRawData

DDL: P_ENGMNTPROJGLACCTRAWDATA Type: view COMPOSITE

P_EngmntProjGLAcctRawData is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_GLAccountLineItemRawData) and exposes 303 fields with key fields SourceLedger, CompanyCode, FiscalYear, AccountingDocument, LedgerGLLineItem.

Data Sources (1)

SourceAliasJoin Type
I_GLAccountLineItemRawData I_GLAccountLineItemRawData from

Annotations (14)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.sqlViewName PEPGLACCTRDATA view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AbapCatalog.buffering.status #NOT_ALLOWED view
AccessControl.authorizationCheck #NOT_REQUIRED view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MIXED view
VDM.private true view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #NONE view
Metadata.ignorePropagatedAnnotations true view

Fields (303)

KeyFieldSource TableSource FieldDescription
KEY SourceLedger
KEY CompanyCode CompanyCode
KEY FiscalYear FiscalYear
KEY AccountingDocument AccountingDocument
KEY LedgerGLLineItem LedgerGLLineItem
LedgerFiscalYear LedgerFiscalYear
GLRecordType GLRecordType
ChartOfAccounts ChartOfAccounts
ControllingArea ControllingArea
FinancialTransactionType FinancialTransactionType
BusinessTransactionType BusinessTransactionType
ControllingBusTransacType ControllingBusTransacType
ReferenceDocumentType ReferenceDocumentType
LogicalSystem LogicalSystem
ReferenceDocumentContext ReferenceDocumentContext
ReferenceDocument ReferenceDocument
ReferenceDocumentItem ReferenceDocumentItem
ReferenceDocumentItemGroup ReferenceDocumentItemGroup
IsReversal IsReversal
IsReversed IsReversed
ReversalReferenceDocumentCntxt ReversalReferenceDocumentCntxt
ReversalReferenceDocument ReversalReferenceDocument
IsSettlement IsSettlement
IsSettled IsSettled
PredecessorReferenceDocType PredecessorReferenceDocType
PredecessorReferenceDocCntxt PredecessorReferenceDocCntxt
PredecessorReferenceDocument PredecessorReferenceDocument
PredecessorReferenceDocItem PredecessorReferenceDocItem
SourceReferenceDocumentType SourceReferenceDocumentType
SourceLogicalSystem SourceLogicalSystem
SourceReferenceDocumentCntxt SourceReferenceDocumentCntxt
SourceReferenceDocument SourceReferenceDocument
SourceReferenceDocumentItem SourceReferenceDocumentItem
SourceReferenceDocSubitem SourceReferenceDocSubitem
IsCommitment IsCommitment
JrnlEntryItemObsoleteReason JrnlEntryItemObsoleteReason
GLAccount GLAccount
CostCenter CostCenter
ProfitCenter ProfitCenter
FunctionalArea FunctionalArea
BusinessArea BusinessArea
Segment Segment
PartnerCostCenter PartnerCostCenter
PartnerProfitCenter PartnerProfitCenter
PartnerFunctionalArea PartnerFunctionalArea
PartnerBusinessArea PartnerBusinessArea
PartnerCompany PartnerCompany
PartnerSegment PartnerSegment
BalanceTransactionCurrency BalanceTransactionCurrency
AmountInBalanceTransacCrcy AmountInBalanceTransacCrcy
TransactionCurrency TransactionCurrency
AmountInTransactionCurrency AmountInTransactionCurrency
CompanyCodeCurrency CompanyCodeCurrency
AmountInCompanyCodeCurrency AmountInCompanyCodeCurrency
GlobalCurrency GlobalCurrency
AmountInGlobalCurrency AmountInGlobalCurrency
FreeDefinedCurrency1 FreeDefinedCurrency1
AmountInFreeDefinedCurrency1 AmountInFreeDefinedCurrency1
FreeDefinedCurrency2 FreeDefinedCurrency2
AmountInFreeDefinedCurrency2 AmountInFreeDefinedCurrency2
FreeDefinedCurrency3 FreeDefinedCurrency3
AmountInFreeDefinedCurrency3 AmountInFreeDefinedCurrency3
FreeDefinedCurrency4 FreeDefinedCurrency4
AmountInFreeDefinedCurrency4 AmountInFreeDefinedCurrency4
FreeDefinedCurrency5 FreeDefinedCurrency5
AmountInFreeDefinedCurrency5 AmountInFreeDefinedCurrency5
FreeDefinedCurrency6 FreeDefinedCurrency6
AmountInFreeDefinedCurrency6 AmountInFreeDefinedCurrency6
FreeDefinedCurrency7 FreeDefinedCurrency7
AmountInFreeDefinedCurrency7 AmountInFreeDefinedCurrency7
FreeDefinedCurrency8 FreeDefinedCurrency8
AmountInFreeDefinedCurrency8 AmountInFreeDefinedCurrency8
FixedAmountInGlobalCrcy FixedAmountInGlobalCrcy
GrpValnFixedAmtInGlobCrcy GrpValnFixedAmtInGlobCrcy
PrftCtrValnFxdAmtInGlobCrcy PrftCtrValnFxdAmtInGlobCrcy
TotalPriceVarcInGlobalCrcy TotalPriceVarcInGlobalCrcy
GrpValnTotPrcVarcInGlobCrcy GrpValnTotPrcVarcInGlobCrcy
PrftCtrValnTotPrcVarcInGlbCrcy PrftCtrValnTotPrcVarcInGlbCrcy
FixedPriceVarcInGlobalCrcy FixedPriceVarcInGlobalCrcy
GrpValnFixedPrcVarcInGlobCrcy GrpValnFixedPrcVarcInGlobCrcy
PrftCtrValnFxdPrcVarcInGlbCrcy PrftCtrValnFxdPrcVarcInGlbCrcy
ControllingObjectCurrency ControllingObjectCurrency
AmountInObjectCurrency AmountInObjectCurrency
BaseUnit BaseUnit
Quantity Quantity
FixedQuantity FixedQuantity
CostSourceUnit CostSourceUnit
ValuationQuantity ValuationQuantity
ValuationFixedQuantity ValuationFixedQuantity
AdditionalQuantity1Unit AdditionalQuantity1Unit
AdditionalQuantity1 AdditionalQuantity1
AdditionalQuantity2Unit AdditionalQuantity2Unit
AdditionalQuantity2 AdditionalQuantity2
AdditionalQuantity3Unit AdditionalQuantity3Unit
AdditionalQuantity3 AdditionalQuantity3
DebitCreditCode DebitCreditCode
FiscalPeriod FiscalPeriod
FiscalYearVariant FiscalYearVariant
FiscalYearPeriod FiscalYearPeriod
PostingDate PostingDate
DocumentDate DocumentDate
AccountingDocumentType AccountingDocumentType
AccountingDocumentItem AccountingDocumentItem
AssignmentReference AssignmentReference
AccountingDocumentCategory AccountingDocumentCategory
PostingKey PostingKey
TransactionTypeDetermination TransactionTypeDetermination
SubLedgerAcctLineItemType SubLedgerAcctLineItemType
AccountingDocCreatedByUser AccountingDocCreatedByUser
LastChangeDateTime LastChangeDateTime
CreationDateTime CreationDateTime
CreationDate CreationDate
EliminationProfitCenter EliminationProfitCenter
OriginObjectType OriginObjectType
GLAccountType GLAccountType
AlternativeGLAccount AlternativeGLAccount
CountryChartOfAccounts CountryChartOfAccounts
InvoiceReference InvoiceReference
InvoiceReferenceFiscalYear InvoiceReferenceFiscalYear
FollowOnDocumentType FollowOnDocumentType
InvoiceItemReference InvoiceItemReference
ReferencePurchaseOrderCategory ReferencePurchaseOrderCategory
PurchasingDocument PurchasingDocument
PurchasingDocumentItem PurchasingDocumentItem
AccountAssignmentNumber AccountAssignmentNumber
DocumentItemText DocumentItemText
SalesDocument
SalesDocumentItem
Product Product
Plant Plant
Supplier Supplier
Customer Customer
ServicesRenderedDate ServicesRenderedDate
ConditionContract ConditionContract
ExchangeRateDate ExchangeRateDate
FinancialAccountType FinancialAccountType
SpecialGLCode SpecialGLCode
TaxCode TaxCode
HouseBank HouseBank
HouseBankAccount HouseBankAccount
IsOpenItemManaged IsOpenItemManaged
ClearingDate ClearingDate
ClearingAccountingDocument ClearingJournalEntry
ClearingDocFiscalYear ClearingJournalEntryFiscalYear
AssetDepreciationArea AssetDepreciationArea
MasterFixedAsset MasterFixedAsset
FixedAsset FixedAsset
AssetValueDate AssetValueDate
AssetTransactionType AssetTransactionType
AssetAcctTransClassfctn AssetAcctTransClassfctn
DepreciationFiscalPeriod DepreciationFiscalPeriod
GroupMasterFixedAsset GroupMasterFixedAsset
GroupFixedAsset GroupFixedAsset
AssetClass AssetClass
CostEstimate CostEstimate
InventorySpecialStockValnType InventorySpecialStockValnType
InventorySpecialStockType InventorySpecialStockType
InventorySpclStkSalesDocument InventorySpclStkSalesDocument
InventorySpclStkSalesDocItm InventorySpclStkSalesDocItm
InvtrySpclStockWBSElmntIntID InvtrySpclStockWBSElmntIntID
InventorySpclStockWBSElement _InvtrySpclStkWBSElmntBscData WBSElementInternalID
InventorySpecialStockSupplier InventorySpecialStockSupplier
InventoryValuationType InventoryValuationType
ValuationArea ValuationArea
SenderCompanyCode SenderCompanyCode
SenderGLAccount SenderGLAccount
SenderAccountAssignment SenderAccountAssignment
SenderAccountAssignmentType SenderAccountAssignmentType
ControllingObject ControllingObject
CostOriginGroup CostOriginGroup
OriginSenderObject OriginSenderObject
ControllingDebitCreditCode ControllingDebitCreditCode
ControllingObjectDebitType ControllingObjectDebitType
QuantityIsIncomplete QuantityIsIncomplete
OffsettingAccount OffsettingAccount
OffsettingAccountType OffsettingAccountType
OffsettingChartOfAccounts OffsettingChartOfAccounts
LineItemIsCompleted LineItemIsCompleted
PersonnelNumber PersonnelNumber
ControllingObjectClass ControllingObjectClass
PartnerCompanyCode PartnerCompanyCode
PartnerControllingObjectClass PartnerControllingObjectClass
OriginCostCenter OriginCostCenter
OriginProfitCenter OriginProfitCenter
OriginCostCtrActivityType OriginCostCtrActivityType
AccountAssignment AccountAssignment
AccountAssignmentType AccountAssignmentType
CostCtrActivityType CostCtrActivityType
OrderID OrderID
OrderCategory OrderCategory
WBSElementInternalID WBSElementInternalID
WBSElement _WBSElementBasicData WBSElement
PartnerWBSElementInternalID PartnerWBSElementInternalID
PartnerWBSElement _PartnerWBSElementBasicData WBSElementInternalID
ProjectInternalID ProjectInternalID
Project Project
PartnerProjectInternalID PartnerProjectInternalID
PartnerProject _PartnerProjectBasicData ProjectInternalID
OperatingConcern OperatingConcern
ProjectNetwork ProjectNetwork
RelatedNetworkActivity RelatedNetworkActivity
BusinessProcess BusinessProcess
CostObject CostObject
BillableControl BillableControl
CostAnalysisResource CostAnalysisResource
CustomerServiceNotification CustomerServiceNotification
ServiceDocumentType ServiceDocumentType
ServiceDocument ServiceDocument
ServiceDocumentItem ServiceDocumentItem
PartnerServiceDocumentType PartnerServiceDocumentType
PartnerServiceDocument PartnerServiceDocument
PartnerServiceDocumentItem PartnerServiceDocumentItem
ServiceContractType ServiceContractType
ServiceContract ServiceContract
ServiceContractItem ServiceContractItem
TimeSheetOvertimeCategory TimeSheetOvertimeCategory
PartnerAccountAssignment PartnerAccountAssignment
PartnerAccountAssignmentType PartnerAccountAssignmentType
WorkPackage WorkPackage
WorkItem WorkItem
PartnerCostCtrActivityType PartnerCostCtrActivityType
PartnerOrder PartnerOrder
PartnerOrderCategory PartnerOrderCategory
PartnerSalesDocument PartnerSalesDocument
PartnerSalesDocumentItem PartnerSalesDocumentItem
PartnerProjectNetwork PartnerProjectNetwork
PartnerProjectNetworkActivity PartnerProjectNetworkActivity
PartnerBusinessProcess PartnerBusinessProcess
PartnerCostObject PartnerCostObject
BillingDocumentType BillingDocumentType
SalesOrganization SalesOrganization
DistributionChannel DistributionChannel
OrganizationDivision OrganizationDivision
SoldProduct SoldProduct
SoldProductGroup SoldProductGroup
CustomerGroup CustomerGroup
CustomerSupplierCountry CustomerSupplierCountry
CustomerSupplierIndustry CustomerSupplierIndustry
SalesDistrict SalesDistrict
BillToParty BillToParty
ShipToParty ShipToParty
CustomerSupplierCorporateGroup CustomerSupplierCorporateGroup
CashLedgerCompanyCode CashLedgerCompanyCode
CashLedgerAccount CashLedgerAccount
FinancialManagementArea FinancialManagementArea
FundsCenter FundsCenter
FundedProgram FundedProgram
Fund Fund
GrantID GrantID
BudgetPeriod BudgetPeriod
PartnerFund PartnerFund
PartnerGrant PartnerGrant
PartnerBudgetPeriod PartnerBudgetPeriod
PubSecBudgetAccount PubSecBudgetAccount
PubSecBudgetAccountCoCode PubSecBudgetAccountCoCode
PubSecBudgetCnsmpnDate PubSecBudgetCnsmpnDate
PubSecBudgetCnsmpnFsclPeriod PubSecBudgetCnsmpnFsclPeriod
PubSecBudgetCnsmpnFsclYear PubSecBudgetCnsmpnFsclYear
PubSecBudgetIsRelevant PubSecBudgetIsRelevant
PubSecBudgetCnsmpnType PubSecBudgetCnsmpnType
PubSecBudgetCnsmpnAmtType PubSecBudgetCnsmpnAmtType
JointVenture JointVenture
JointVentureEquityGroup JointVentureEquityGroup
JointVentureCostRecoveryCode JointVentureCostRecoveryCode
JointVenturePartner JointVenturePartner
JointVentureBillingType JointVentureBillingType
JointVentureEquityType JointVentureEquityType
JointVentureProductionDate JointVentureProductionDate
JointVentureBillingDate JointVentureBillingDate
JointVentureOperationalDate JointVentureOperationalDate
CutbackRun CutbackRun
JointVentureAccountingActivity JointVentureAccountingActivity
PartnerVenture PartnerVenture
PartnerEquityGroup PartnerEquityGroup
SenderCostRecoveryCode SenderCostRecoveryCode
CutbackAccount CutbackAccount
CutbackCostObject CutbackCostObject
SettlementReferenceDate SettlementReferenceDate
AccrualObjectType AccrualObjectType
AccrualObject AccrualObject
AccrualSubobject AccrualSubobject
AccrualItemType AccrualItemType
AccrualValueDate AccrualValueDate
FinancialValuationObjectType FinancialValuationObjectType
FinancialValuationObject FinancialValuationObject
FinancialValuationSubobject FinancialValuationSubobject
NetDueDate NetDueDate
CreditRiskClass CreditRiskClass
WorkCenterInternalID WorkCenterInternalID
OrderOperation OrderOperation
OrderItem OrderItem
OrderSuboperation OrderSuboperation
Equipment Equipment
FunctionalLocation FunctionalLocation
Assembly Assembly
MaintenanceActivityType MaintenanceActivityType
MaintenanceOrderPlanningCode MaintenanceOrderPlanningCode
MaintPriorityType MaintPriorityType
MaintPriority MaintPriority
SuperiorOrder SuperiorOrder
ProductGroup ProductGroup
MaintenanceOrderIsPlanned MaintenanceOrderIsPlanned
MaterialGroup _Product ProductGroup
@ClientHandling.algorithm: #SESSION_VARIABLE
@AbapCatalog: {
    sqlViewName: 'PEPGLACCTRDATA',
    compiler.compareFilter: true,
    preserveKey: true,
    buffering.status: #NOT_ALLOWED
}
@AccessControl: {
    authorizationCheck: #NOT_REQUIRED,
    personalData.blocking: #BLOCKED_DATA_EXCLUDED
}
@ObjectModel: {
    usageType.serviceQuality: #D,
    usageType.sizeCategory: #XXL,
    usageType.dataClass: #MIXED
}

@VDM: {
    private: true,
    viewType: #COMPOSITE,
    lifecycle.contract.type: #NONE
}
@Metadata.ignorePropagatedAnnotations: true

define view P_EngmntProjGLAcctRawData
  as select from I_GLAccountLineItemRawData {

key cast(SourceLedger as fis_rldnr) as SourceLedger,
key CompanyCode,
key FiscalYear,
key AccountingDocument,
key LedgerGLLineItem,
LedgerFiscalYear,
GLRecordType,
ChartOfAccounts,
ControllingArea,
FinancialTransactionType,
BusinessTransactionType,
ControllingBusTransacType,
ReferenceDocumentType,
LogicalSystem,
ReferenceDocumentContext,
ReferenceDocument,
ReferenceDocumentItem,
ReferenceDocumentItemGroup,
IsReversal,
IsReversed,
ReversalReferenceDocumentCntxt,
ReversalReferenceDocument,
IsSettlement,
IsSettled,
PredecessorReferenceDocType,
PredecessorReferenceDocCntxt,
PredecessorReferenceDocument,
PredecessorReferenceDocItem,
SourceReferenceDocumentType,
SourceLogicalSystem,
SourceReferenceDocumentCntxt,
SourceReferenceDocument,
SourceReferenceDocumentItem,
SourceReferenceDocSubitem,
IsCommitment,
JrnlEntryItemObsoleteReason,
GLAccount,
CostCenter,
ProfitCenter,
FunctionalArea,
BusinessArea,
Segment,
PartnerCostCenter,
PartnerProfitCenter,
PartnerFunctionalArea,
PartnerBusinessArea,
PartnerCompany,
PartnerSegment,

BalanceTransactionCurrency,

AmountInBalanceTransacCrcy,

TransactionCurrency,

AmountInTransactionCurrency,

CompanyCodeCurrency,

AmountInCompanyCodeCurrency,

GlobalCurrency,

AmountInGlobalCurrency,
FreeDefinedCurrency1,
AmountInFreeDefinedCurrency1,
FreeDefinedCurrency2,
AmountInFreeDefinedCurrency2,
FreeDefinedCurrency3,
AmountInFreeDefinedCurrency3,
FreeDefinedCurrency4,
AmountInFreeDefinedCurrency4,
FreeDefinedCurrency5,
AmountInFreeDefinedCurrency5,
FreeDefinedCurrency6,
AmountInFreeDefinedCurrency6,
FreeDefinedCurrency7,
AmountInFreeDefinedCurrency7,
FreeDefinedCurrency8,
AmountInFreeDefinedCurrency8,

FixedAmountInGlobalCrcy,

GrpValnFixedAmtInGlobCrcy,

PrftCtrValnFxdAmtInGlobCrcy,

TotalPriceVarcInGlobalCrcy,

GrpValnTotPrcVarcInGlobCrcy,

PrftCtrValnTotPrcVarcInGlbCrcy,

FixedPriceVarcInGlobalCrcy,

GrpValnFixedPrcVarcInGlobCrcy,

PrftCtrValnFxdPrcVarcInGlbCrcy,
ControllingObjectCurrency,
AmountInObjectCurrency,

BaseUnit,

Quantity,

FixedQuantity,
CostSourceUnit,

ValuationQuantity,

ValuationFixedQuantity,

AdditionalQuantity1Unit,

AdditionalQuantity1,

AdditionalQuantity2Unit,

AdditionalQuantity2,

AdditionalQuantity3Unit,

AdditionalQuantity3,
DebitCreditCode,
FiscalPeriod,
FiscalYearVariant,
FiscalYearPeriod,
PostingDate,
DocumentDate,
AccountingDocumentType,
AccountingDocumentItem,
AssignmentReference,
AccountingDocumentCategory,
PostingKey,
TransactionTypeDetermination,
SubLedgerAcctLineItemType,
AccountingDocCreatedByUser,
LastChangeDateTime,
CreationDateTime,
CreationDate,
EliminationProfitCenter,
OriginObjectType,
GLAccountType,
AlternativeGLAccount,
CountryChartOfAccounts,
InvoiceReference,
InvoiceReferenceFiscalYear,
FollowOnDocumentType,
InvoiceItemReference,
ReferencePurchaseOrderCategory,
PurchasingDocument,
PurchasingDocumentItem,
AccountAssignmentNumber,
DocumentItemText,
cast(SalesDocument as vdm_sales_order) as SalesDocument,
cast(SalesDocumentItem as sales_order_item ) as SalesDocumentItem,
Product,
Plant,
Supplier,
Customer,
ServicesRenderedDate,
ConditionContract,
ExchangeRateDate,
FinancialAccountType,
SpecialGLCode,
TaxCode,
HouseBank,
HouseBankAccount,
IsOpenItemManaged,
ClearingDate,
ClearingJournalEntry as ClearingAccountingDocument,
ClearingJournalEntryFiscalYear as ClearingDocFiscalYear,
AssetDepreciationArea,
MasterFixedAsset,
FixedAsset,
AssetValueDate,
AssetTransactionType,
AssetAcctTransClassfctn,
DepreciationFiscalPeriod,
GroupMasterFixedAsset,
GroupFixedAsset,
AssetClass,
CostEstimate,
InventorySpecialStockValnType,
InventorySpecialStockType,
InventorySpclStkSalesDocument,
InventorySpclStkSalesDocItm,
InvtrySpclStockWBSElmntIntID,
_InvtrySpclStkWBSElmntBscData.WBSElementInternalID as InventorySpclStockWBSElement,
InventorySpecialStockSupplier,
InventoryValuationType,
ValuationArea,
SenderCompanyCode,
SenderGLAccount,
SenderAccountAssignment,
SenderAccountAssignmentType,
ControllingObject,
CostOriginGroup,
OriginSenderObject,
ControllingDebitCreditCode,
ControllingObjectDebitType,
QuantityIsIncomplete,
OffsettingAccount,
OffsettingAccountType,
OffsettingChartOfAccounts,
LineItemIsCompleted,
PersonnelNumber,
ControllingObjectClass,
PartnerCompanyCode,
PartnerControllingObjectClass,
OriginCostCenter,
OriginProfitCenter,
OriginCostCtrActivityType,
AccountAssignment,
AccountAssignmentType,
CostCtrActivityType,
OrderID,
OrderCategory,
WBSElementInternalID,
_WBSElementBasicData.WBSElement as WBSElement,
PartnerWBSElementInternalID,
_PartnerWBSElementBasicData.WBSElementInternalID as PartnerWBSElement,
ProjectInternalID,
Project,
PartnerProjectInternalID,
_PartnerProjectBasicData.ProjectInternalID as PartnerProject,
OperatingConcern,
ProjectNetwork,
RelatedNetworkActivity,
BusinessProcess,
CostObject,
BillableControl,
CostAnalysisResource,
CustomerServiceNotification,
ServiceDocumentType,
ServiceDocument,
ServiceDocumentItem,
PartnerServiceDocumentType,
PartnerServiceDocument,
PartnerServiceDocumentItem,
ServiceContractType,
ServiceContract,
ServiceContractItem,
TimeSheetOvertimeCategory,
PartnerAccountAssignment,
PartnerAccountAssignmentType,
WorkPackage,
WorkItem,
PartnerCostCtrActivityType,
PartnerOrder,
PartnerOrderCategory,
PartnerSalesDocument,
PartnerSalesDocumentItem,
PartnerProjectNetwork,
PartnerProjectNetworkActivity,
PartnerBusinessProcess,
PartnerCostObject,
BillingDocumentType,
SalesOrganization,
DistributionChannel,
OrganizationDivision,
SoldProduct,
SoldProductGroup,
CustomerGroup,
CustomerSupplierCountry,
CustomerSupplierIndustry,
SalesDistrict,
BillToParty,
ShipToParty,
CustomerSupplierCorporateGroup,
CashLedgerCompanyCode,
CashLedgerAccount,
FinancialManagementArea,
FundsCenter,
FundedProgram,
Fund,
GrantID,
BudgetPeriod,
PartnerFund,
PartnerGrant,
PartnerBudgetPeriod,
PubSecBudgetAccount,
PubSecBudgetAccountCoCode,
PubSecBudgetCnsmpnDate,
PubSecBudgetCnsmpnFsclPeriod,
PubSecBudgetCnsmpnFsclYear,
PubSecBudgetIsRelevant,
PubSecBudgetCnsmpnType,
PubSecBudgetCnsmpnAmtType,
JointVenture,
JointVentureEquityGroup,
JointVentureCostRecoveryCode,
JointVenturePartner,
JointVentureBillingType,
JointVentureEquityType,
JointVentureProductionDate,
JointVentureBillingDate,
JointVentureOperationalDate,
CutbackRun,
JointVentureAccountingActivity,
PartnerVenture,
PartnerEquityGroup,
SenderCostRecoveryCode,
CutbackAccount,
CutbackCostObject,
SettlementReferenceDate,
AccrualObjectType,
AccrualObject,
AccrualSubobject,
AccrualItemType,
AccrualValueDate,
FinancialValuationObjectType,
FinancialValuationObject,
FinancialValuationSubobject,
NetDueDate,
CreditRiskClass,
WorkCenterInternalID,
OrderOperation,
OrderItem,
OrderSuboperation,
Equipment,
FunctionalLocation,
Assembly,
MaintenanceActivityType,
MaintenanceOrderPlanningCode,
MaintPriorityType,
MaintPriority,
SuperiorOrder,
ProductGroup,
MaintenanceOrderIsPlanned,
_Product.ProductGroup      as MaterialGroup

}   where 
    BusinessTransactionType     <> 'TBRR'
and BusinessTransactionType     <> 'RFCV'
and AccountAssignmentType       =  'PR'
and Product   <> 'A001' 
and Product   <> 'A002'
and (
        ( FiscalPeriod > '000' )
        or 
        ( FiscalPeriod = '000' and AccountingDocumentCategory = 'J') 
    )
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_GLACCOUNTLINEITEMRAWDATA",
"I_PRODUCT",
"I_PROJECTBASICDATA",
"I_WBSELEMENTBASICDATA"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/