C_BillingDocumentPartnerFs

DDL: C_BILLINGDOCUMENTPARTNERFS SQL: CBILLDOCPAFS Type: view CONSUMPTION

Billing Document Partner Fact Sheet

C_BillingDocumentPartnerFs is a Consumption CDS View that provides data about "Billing Document Partner Fact Sheet" in SAP S/4HANA. It reads from 1 data source (I_SDDocumentPartner) and exposes 13 fields with key fields SDDocument, PartnerFunction. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_SDDocumentPartner SDPartnerData from

Associations (2)

CardinalityTargetAliasCondition
[1] C_BillingDocumentFs _BillingDocument $projection.SDDocument = _BillingDocument.BillingDocument
[0..1] I_PersonWorkAgreement_1 _PersonWorkAgreement $projection.Personnel = _PersonWorkAgreement.PersonWorkAgreement

Annotations (16)

NameValueLevelField
AbapCatalog.sqlViewName CBILLDOCPAFS view
ClientHandling.algorithm #SESSION_VARIABLE view
ClientHandling.type #CLIENT_DEPENDENT view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Billing Document Partner Fact Sheet view
VDM.viewType #CONSUMPTION view
ObjectModel.compositionRoot false view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view
UI.headerInfo.typeName Billing Document Partner view
UI.headerInfo.typeNamePlural Billing Document Partners view
UI.headerInfo.title.type #STANDARD view
UI.headerInfo.title.value BillingDocumentPartner view

Fields (13)

KeyFieldSource TableSource FieldDescription
KEY SDDocument SDDocument SD Document
KEY PartnerFunction PartnerFunction Partner Functn
PartnerFunctionName
AddressID AddressID Ship-to address
Customer Customer Sold-to Party
Personnel Personnel Personnel No.
PersonFullNameelseendasFullName
CityName
StreetName
PostalCode
EmailAddressendasEmailAddress
_PartnerFunction I_SDDocumentPartner _PartnerFunction
_BillingDocument _BillingDocument

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 C_BillingDocumentPartnerFs.
-- 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: CBILLDOCPAFS

CREATE VIEW C_BillingDocumentPartnerFs AS
SELECT
  SDDocument,
  PartnerFunction,
  SDPartnerData._PartnerFunction._Text[1: Language = $session.system_language ].PartnerFunctionName AS PartnerFunctionName,
  AddressID,
  Customer,
  Personnel,
  case when AddressID <> ' ' then SDPartnerData._DfltAddrRprstn.AddresseeFullName when Personnel <> ' ' then coalesce(SDPartnerData._DfltAddrRprstn.AddresseeFullName, _PersonWorkAgreement.PersonFullName) else '' end as FullName AS PersonFullNameelseendasFullName,
  SDPartnerData._DfltAddrRprstn.CityName AS CityName,
  SDPartnerData._DfltAddrRprstn.StreetName AS StreetName,
  SDPartnerData._DfltAddrRprstn.PostalCode AS PostalCode,
  case AddressID when '' then _PersonWorkAgreement._WorkforcePerson._WorkplaceAddress.DefaultEmailAddress else SDPartnerData._DfltAddrRprstn._CurrentDfltEmailAddress.EmailAddress end as EmailAddress AS EmailAddressendasEmailAddress,
  SDPartnerData._PartnerFunction AS _PartnerFunction
FROM I_SDDocumentPartner AS SDPartnerData
LEFT OUTER JOIN C_BillingDocumentFs AS _BillingDocument ON SDDocument = _BillingDocument.BillingDocument  -- association [1]
LEFT OUTER JOIN I_PersonWorkAgreement_1 AS _PersonWorkAgreement ON Personnel = _PersonWorkAgreement.PersonWorkAgreement  -- association [0..1]
;