P_SG_OperationalAcctgDocItem
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)
| Source | Alias | Join Type |
|---|---|---|
| I_OperationalAcctgDocItem | I_OperationalAcctgDocItem | from |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA