P_CustomerLineItemPayer_10

DDL: P_CUSTOMERLINEITEMPAYER_10 Type: view_entity COMPOSITE Package: ODATA_CUSTOMER_LINE_ITEMS

P view P_CustomerLineItemPayer_10

P_CustomerLineItemPayer_10 is a Composite CDS View that provides data about "P view P_CustomerLineItemPayer_10" in SAP S/4HANA. It reads from 1 data source (I_OperationalAcctgDocItem) and exposes 11 fields with key fields CompanyCode, FiscalYear, AccountingDocument, AccountingDocumentItem. Part of development package ODATA_CUSTOMER_LINE_ITEMS.

Data Sources (1)

SourceAliasJoin Type
I_OperationalAcctgDocItem bseg from

Annotations (3)

NameValueLevelField
VDM.viewType #COMPOSITE view
VDM.private true view
AccessControl.authorizationCheck #NOT_REQUIRED view

Fields (11)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode CompanyCode Receiver Company Code
KEY FiscalYear FiscalYear G/L Fiscal Year
KEY AccountingDocument AccountingDocument Journal Entry
KEY AccountingDocumentItem AccountingDocumentItem Posting View Item
Customer I_OperationalAcctgDocItem Customer Sold-to Party
Supplier _Customer Supplier Supplier
knrza _Customer AlternativePayerAccount Alternat.payer
knrzb _CustomerCompany AlternativePayerAccount Alternat.payer
CustomerSupplierClearingIsUsed _CustomerCompany CustomerSupplierClearingIsUsed Clrg with vend.
CustomerendaskunnrasCustomerPayer
SupplierelseendaslifnrasSupplierPayee

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_CustomerLineItemPayer_10.
-- 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_CustomerLineItemPayer_10 AS
SELECT
  CompanyCode,
  FiscalYear,
  AccountingDocument,
  AccountingDocumentItem,
  bseg.Customer AS Customer,
  _Customer.Supplier AS Supplier,
  _Customer.AlternativePayerAccount AS knrza,
  _CustomerCompany.AlternativePayerAccount AS knrzb,
  _CustomerCompany.CustomerSupplierClearingIsUsed AS CustomerSupplierClearingIsUsed,
  cast( case when _CustomerCompany.CustomerSupplierClearingIsUsed = 'X' and _Customer.Supplier <> '' then '' when _CustomerCompany.AlternativePayerAccount <> '' then _CustomerCompany.AlternativePayerAccount when _Customer.AlternativePayerAccount <> '' then _Customer.AlternativePayerAccount else bseg.Customer end as kunnr ) as CustomerPayer AS CustomerendaskunnrasCustomerPayer,
  cast( case when _CustomerCompany.CustomerSupplierClearingIsUsed = 'X' and _Customer.Supplier <> '' then _Customer.Supplier else '' end as lifnr ) as SupplierPayee AS SupplierelseendaslifnrasSupplierPayee
FROM I_OperationalAcctgDocItem AS bseg
;