I_PT_BillgDocCustAddrVers

DDL: I_PT_BILLGDOCCUSTADDRVERS SQL: IPTBLGADRVERS Type: view COMPOSITE

PT BillingDoc CustAddr Version

I_PT_BillgDocCustAddrVers is a Composite CDS View that provides data about "PT BillingDoc CustAddr Version" in SAP S/4HANA. It reads from 6 data sources and exposes 9 fields with key fields BillingDocument, Customer, Customer.

Data Sources (6)

SourceAliasJoin Type
I_BillingDocument BillingDocument inner
I_InvoiceList BillingDocument inner
I_PT_BillgDocDgtlSgntr Signature from
I_PT_BillgDocDgtlSgntr Signature union
I_PT_CustomerAddressVersion Version inner
I_PT_CustomerAddressVersion Version inner

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName IPTBLGADRVERS view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #COMPOSITE view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.serviceQuality #D view
AccessControl.authorizationCheck #CHECK view
EndUserText.label PT BillingDoc CustAddr Version view

Fields (9)

KeyFieldSource TableSource FieldDescription
KEY BillingDocument I_InvoiceList BillingDocument SD Document
KEY Customer I_InvoiceList PayerParty Payer
CompanyCode I_InvoiceList CompanyCode Receiver Company Code
PortugueseCustomerVersion
InvoiceListasBillingDocument
KEY Customer I_InvoiceList PayerParty Payer
CompanyCode I_InvoiceList CompanyCode Receiver Company Code
PortugueseCustomerVersion
_PayerParty I_InvoiceList _PayerParty

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_PT_BillgDocCustAddrVers.
-- 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: IPTBLGADRVERS

CREATE VIEW I_PT_BillgDocCustAddrVers AS
SELECT
  BillingDocument.BillingDocument AS BillingDocument,
  BillingDocument.PayerParty AS Customer,
  BillingDocument.CompanyCode AS CompanyCode,
  cast(max(PortugueseCustomerVersion) as sipt_data_version) AS PortugueseCustomerVersion,
  BillingDocument._PayerParty AS InvoiceListasBillingDocument,
  BillingDocument._PayerParty AS _PayerParty
FROM I_PT_BillgDocDgtlSgntr AS Signature
INNER JOIN I_BillingDocument AS BillingDocument ON /* join condition not captured in parsed metadata */
INNER JOIN I_PT_CustomerAddressVersion AS Version ON /* join condition not captured in parsed metadata */
INNER JOIN I_InvoiceList AS BillingDocument ON /* join condition not captured in parsed metadata */
-- UNION with additional select branch(es): I_PT_BillgDocDgtlSgntr
;