P_RO_SAFTOplAcctgDocItmExc
Bseg Exclude 8/9 GL accounts
P_RO_SAFTOplAcctgDocItmExc is a Consumption CDS View that provides data about "Bseg Exclude 8/9 GL accounts" in SAP S/4HANA. It reads from 2 data sources (I_RO_SAFTAccountMapping, P_RO_SAFTOplAcctgDocItmBase) and exposes 49 fields with key fields CompanyCode, FiscalYear, AccountingDocument, AccountingDocumentItem.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_RO_SAFTAccountMapping | Account | inner |
| P_RO_SAFTOplAcctgDocItmBase | P_RO_SAFTOplAcctgDocItmBase | from |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_AlternativeGLAccountIsUsed | saft_ro_alt_gl_account_flag |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PROSAFTOADIE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| VDM.private | true | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_INCLUDED | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Bseg Exclude 8/9 GL accounts | view |
Fields (49)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | Item | CompanyCode | Receiver Company Code |
| KEY | FiscalYear | Item | FiscalYear | G/L Fiscal Year |
| KEY | AccountingDocument | Item | AccountingDocument | Journal Entry |
| KEY | AccountingDocumentItem | Item | AccountingDocumentItem | Posting View Item |
| AccountingDocumentType | Item | AccountingDocumentType | Journal Entry Type | |
| Product | Item | Product | Product Sold | |
| BaseUnit | Item | BaseUnit | Unit of Measure | |
| TransactionTypeDetermination | Item | TransactionTypeDetermination | Transaction Key | |
| PostingDate | Item | PostingDate | Posting Date for GR | |
| CompanyCodeCurrency | Item | CompanyCodeCurrency | Local Currency | |
| TransactionCurrency | Item | TransactionCurrency | Transaction Currency | |
| IsNegativePosting | Item | IsNegativePosting | Negative Posting | |
| DebitCreditCode | Item | DebitCreditCode | Single-Character Flag | |
| BsegDebitCreditCode | Item | BsegDebitCreditCode | ||
| OriginalTaxBaseAmount | Item | OriginalTaxBaseAmount | ||
| AmountInTransactionCurrency | Item | AmountInTransactionCurrency | Pt Crcy Amt | |
| OriglTaxBaseAmountInCoCodeCrcy | Item | OriglTaxBaseAmountInCoCodeCrcy | ||
| AmountInCompanyCodeCurrency | Item | AmountInCompanyCodeCurrency | Local Crcy Amt | |
| DocumentItemText | Item | DocumentItemText | Text | |
| Quantity | Item | Quantity | Value | |
| ChartOfAccounts | Item | ChartOfAccounts | Node Class | |
| GLAccount | Item | GLAccount | General Ledger | |
| CountryChartOfAccounts | Item | CountryChartOfAccounts | Chart of Accts | |
| AlternativeGLAccount | Item | AlternativeGLAccount | Group Account | |
| ActiveChartOfAccounts | Item | ActiveChartOfAccounts | ||
| ActiveGLAccount | Item | ActiveGLAccount | ||
| FinancialAccountType | Item | FinancialAccountType | Fin. Account Type | |
| SpecialGLCode | Item | SpecialGLCode | Special G/L Ind | |
| AccountingDocumentItemType | Item | AccountingDocumentItemType | Line Item ID | |
| VATRegistration | Item | VATRegistration | VAT Registration No. | |
| Customer | Item | Customer | Sold-to Party | |
| Supplier | Item | Supplier | Supplier | |
| PaymentTerms | Item | PaymentTerms | Pyt Terms | |
| PaymentMethod | Item | PaymentMethod | Pymt Meth. | |
| TaxCode | Item | TaxCode | Tax Code | |
| ControllingArea | Item | ControllingArea | Controlling Area | |
| ProfitCenter | Item | ProfitCenter | Profit Center | |
| _ProfitCenterText | Item | _ProfitCenterText | ||
| CostCenter | Item | CostCenter | Cost Center | |
| _CostCenterText | Item | _CostCenterText | ||
| Segment | Item | Segment | Segment number | |
| _SegmentText | Item | _SegmentText | ||
| WBSElementInternalID | Item | WBSElementInternalID | WBS Internal ID | |
| _WBSElementBasicData | Item | _WBSElementBasicData | ||
| _WBSElementBasicDataText | Item | _WBSElementBasicDataText | ||
| OrderID | Item | OrderID | Order ID | |
| _Order | Item | _Order | ||
| RO_SAFTStandardAccount | I_RO_SAFTAccountMapping | RO_SAFTStandardAccount | St. Account ID | |
| RO_SAFTIsDefaultZeroQuantity | I_RO_SAFTAccountMapping | RO_SAFTIsDefaultZeroQuantity | Def Zero Quantity |
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_RO_SAFTOplAcctgDocItmExc.
-- 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.
-- SQL view name: PROSAFTOADIE
-- Parameters: P_AlternativeGLAccountIsUsed : saft_ro_alt_gl_account_flag
CREATE VIEW P_RO_SAFTOplAcctgDocItmExc AS
SELECT
Item.CompanyCode AS CompanyCode,
Item.FiscalYear AS FiscalYear,
Item.AccountingDocument AS AccountingDocument,
Item.AccountingDocumentItem AS AccountingDocumentItem,
Item.AccountingDocumentType AS AccountingDocumentType,
Item.Product AS Product,
Item.BaseUnit AS BaseUnit,
Item.TransactionTypeDetermination AS TransactionTypeDetermination,
Item.PostingDate AS PostingDate,
Item.CompanyCodeCurrency AS CompanyCodeCurrency,
Item.TransactionCurrency AS TransactionCurrency,
Item.IsNegativePosting AS IsNegativePosting,
Item.DebitCreditCode AS DebitCreditCode,
Item.BsegDebitCreditCode AS BsegDebitCreditCode,
Item.OriginalTaxBaseAmount AS OriginalTaxBaseAmount,
Item.AmountInTransactionCurrency AS AmountInTransactionCurrency,
Item.OriglTaxBaseAmountInCoCodeCrcy AS OriglTaxBaseAmountInCoCodeCrcy,
Item.AmountInCompanyCodeCurrency AS AmountInCompanyCodeCurrency,
Item.DocumentItemText AS DocumentItemText,
Item.Quantity AS Quantity,
Item.ChartOfAccounts AS ChartOfAccounts,
Item.GLAccount AS GLAccount,
Item.CountryChartOfAccounts AS CountryChartOfAccounts,
Item.AlternativeGLAccount AS AlternativeGLAccount,
Item.ActiveChartOfAccounts AS ActiveChartOfAccounts,
Item.ActiveGLAccount AS ActiveGLAccount,
Item.FinancialAccountType AS FinancialAccountType,
Item.SpecialGLCode AS SpecialGLCode,
Item.AccountingDocumentItemType AS AccountingDocumentItemType,
Item.VATRegistration AS VATRegistration,
Item.Customer AS Customer,
Item.Supplier AS Supplier,
Item.PaymentTerms AS PaymentTerms,
Item.PaymentMethod AS PaymentMethod,
Item.TaxCode AS TaxCode,
Item.ControllingArea AS ControllingArea,
Item.ProfitCenter AS ProfitCenter,
Item._ProfitCenterText AS _ProfitCenterText,
Item.CostCenter AS CostCenter,
Item._CostCenterText AS _CostCenterText,
Item.Segment AS Segment,
Item._SegmentText AS _SegmentText,
Item.WBSElementInternalID AS WBSElementInternalID,
Item._WBSElementBasicData AS _WBSElementBasicData,
Item._WBSElementBasicDataText AS _WBSElementBasicDataText,
Item.OrderID AS OrderID,
Item._Order AS _Order,
Account.RO_SAFTStandardAccount AS RO_SAFTStandardAccount,
Account.RO_SAFTIsDefaultZeroQuantity AS RO_SAFTIsDefaultZeroQuantity
FROM P_RO_SAFTOplAcctgDocItmBase
INNER JOIN I_RO_SAFTAccountMapping AS Account ON /* join condition not captured in parsed metadata */
;
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