P_SG_OperationalAcctgDocItem

DDL: P_SG_OPERATIONALACCTGDOCITEM Type: view COMPOSITE

P_SG_OperationalAcctgDocItem is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_OperationalAcctgDocItem) and exposes 24 fields with key fields CompanyCode, AccountingDocument, FiscalYear, AccountingDocumentItem.

Data Sources (1)

SourceAliasJoin Type
I_OperationalAcctgDocItem I_OperationalAcctgDocItem from

Annotations (7)

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

Fields (24)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode CompanyCode Receiver Company Code
KEY AccountingDocument AccountingDocument Journal Entry
KEY FiscalYear FiscalYear G/L Fiscal Year
KEY AccountingDocumentItem AccountingDocumentItem Posting View Item
TaxCode TaxCode Tax Code
DebitCreditCode DebitCreditCode Single-Character Flag
TransactionCode _JournalEntry TransactionCode Transaction Code
ReferenceDocumentType _JournalEntry ReferenceDocumentType Reference Document Type
AccountingDocumentHeaderText _JournalEntry AccountingDocumentHeaderText Doc.Header Text
BankName
TaxID1 _HouseBank TaxID1 Tax Number 1
PlanningLevel PlanningLevel Planning Level
TransactionTypeDetermination TransactionTypeDetermination Transaction Key
TaxType TaxType Tax Type
ProfitLossAccountType ProfitLossAccountType Profit Loss Account Type
FinancialAccountType FinancialAccountType Fin. Account Type
CompanyCodeCurrencyDetnMethod CompanyCodeCurrencyDetnMethod Co Crcy Detn Meth
Product Product Product Sold
DocumentItemText DocumentItemText Text
IsAutomaticallyCreated IsAutomaticallyCreated Is Automatically Created
CompanyCodeCurrency CompanyCodeCurrency Local Currency
AmountInCompanyCodeCurrency AmountInCompanyCodeCurrency Local Crcy Amt
TransactionCurrency TransactionCurrency Transaction Currency
AmountInTransactionCurrency AmountInTransactionCurrency Pt Crcy Amt

Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.

-- Derived SQL interpretation of CDS view P_SG_OperationalAcctgDocItem.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.

CREATE VIEW P_SG_OperationalAcctgDocItem AS
SELECT
  CompanyCode,
  AccountingDocument,
  FiscalYear,
  AccountingDocumentItem,
  TaxCode,
  DebitCreditCode,
  _JournalEntry.TransactionCode AS TransactionCode,
  _JournalEntry.ReferenceDocumentType AS ReferenceDocumentType,
  _JournalEntry.AccountingDocumentHeaderText AS AccountingDocumentHeaderText,
  _HouseBank._Bank.BankName AS BankName,
  _HouseBank.TaxID1 AS TaxID1,
  PlanningLevel,
  TransactionTypeDetermination,
  TaxType,
  ProfitLossAccountType,
  FinancialAccountType,
  CompanyCodeCurrencyDetnMethod,
  Product,
  DocumentItemText,
  IsAutomaticallyCreated,
  CompanyCodeCurrency,
  AmountInCompanyCodeCurrency,
  TransactionCurrency,
  AmountInTransactionCurrency
FROM I_OperationalAcctgDocItem
;