Deprecated
This CDS view is deprecated in S/4HANA. Use I_JournalEntryItem instead. View all deprecated CDS views →

I_SAFTCustomerOpenItem

DDL: I_SAFTCUSTOMEROPENITEM SQL: ISAFTCOI Type: view COMPOSITE

SAF-T Customer Open Items

I_SAFTCustomerOpenItem is a Composite CDS View that provides data about "SAF-T Customer Open Items" in SAP S/4HANA. It reads from 2 data sources (I_JournalEntryItem, I_NO_SAFTSpecialGLMap) and exposes 6 fields with key fields CompanyCode, Customer, Ledger.

Data Sources (2)

SourceAliasJoin Type
I_JournalEntryItem CustomerOpenItem from
I_NO_SAFTSpecialGLMap SpGL inner

Parameters (1)

NameTypeDefault
P_FromPostingDate budat

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName ISAFTCOI view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
AccessControl.personalData.blocking #BLOCKED_DATA_INCLUDED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #COMPOSITE view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label SAF-T Customer Open Items view
VDM.lifecycle.status #DEPRECATED view
VDM.lifecycle.successor I_JournalEntryItem view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode I_JournalEntryItem CompanyCode Receiver Company Code
KEY Customer I_JournalEntryItem Customer Sold-to Party
KEY Ledger I_JournalEntryItem Ledger Ledger
CompanyCodeCurrency I_JournalEntryItem CompanyCodeCurrency Local Currency
DebitAmountInCoCodeCrcy
CreditAmountInCoCodeCrcy

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 I_SAFTCustomerOpenItem.
-- 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: ISAFTCOI
-- Parameters: P_FromPostingDate : budat

CREATE VIEW I_SAFTCustomerOpenItem AS
SELECT
  CustomerOpenItem.CompanyCode AS CompanyCode,
  CustomerOpenItem.Customer AS Customer,
  CustomerOpenItem.Ledger AS Ledger,
  CustomerOpenItem.CompanyCodeCurrency AS CompanyCodeCurrency,
  sum(CustomerOpenItem.DebitAmountInCoCodeCrcy) AS DebitAmountInCoCodeCrcy,
  sum(CustomerOpenItem.CreditAmountInCoCodeCrcy) AS CreditAmountInCoCodeCrcy
FROM I_JournalEntryItem AS CustomerOpenItem
INNER JOIN I_NO_SAFTSpecialGLMap AS SpGL ON /* join condition not captured in parsed metadata */
;