R_BillingDocumentItemPartnerTP

DDL: R_BILLINGDOCUMENTITEMPARTNERTP Type: view_entity TRANSACTIONAL Package: RAP_SD_BIL_BD

Billing Document Item Partner - TP

R_BillingDocumentItemPartnerTP is a Transactional CDS View that provides data about "Billing Document Item Partner - TP" in SAP S/4HANA. It reads from 1 data source (I_BillgProcDocItemCmpltPartner) and exposes 19 fields with key fields BillingDocument, BillingDocumentItem, PartnerFunction. It has 4 associations to related views. Part of development package RAP_SD_BIL_BD.

Data Sources (1)

SourceAliasJoin Type
I_BillgProcDocItemCmpltPartner I_BillgProcDocItemCmpltPartner from

Associations (4)

CardinalityTargetAliasCondition
[1..1] R_BillingDocumentTP _BillingDocument $projection.BillingDocument = _BillingDocument.BillingDocument
[0..1] I_PartnerFunction _PartnerFunction $projection.PartnerFunction = _PartnerFunction.PartnerFunction
[0..1] I_BusPartAddress _BusinessPartnerAddressCP I_BillgProcDocItemCmpltPartner.AddressID = _BusinessPartnerAddressCP.AddressID and $projection.ContactPerson is not initial and I_BillgProcDocItemCmpltPartner.SDDocPartnerAddressRefType = 'I'
[0..1] I_BusPartAddress _BusinessPartnerAddress $projection.ReferenceBusinessPartner = _BusinessPartnerAddress.BusinessPartner and I_BillgProcDocItemCmpltPartner.AddressID = _BusinessPartnerAddress.AddressID and I_BillgProcDocItemCmpltPartner.SDDocPartnerAddressRefType = 'H'

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Billing Document Item Partner - TP view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
VDM.viewType #TRANSACTIONAL view

Fields (19)

KeyFieldSource TableSource FieldDescription
KEY BillingDocument
KEY BillingDocumentItem
KEY PartnerFunction PartnerFunction Partner Functn
PartnerIsSpecificForSDDocItem PartnerIsSpecificForSDDocItem
Customer Customer Sold-to Party
Supplier Supplier Supplier
Personnel Personnel Personnel No.
ContactPerson ContactPerson Contact Person Key
ReferenceBusinessPartner ReferenceBusinessPartner Busn. Partner
SDDocumentPartnerType _PartnerFunction SDDocumentPartnerType Partner Type
AddressID AddressID Ship-to address
AddressPersonID AddressPersonID Person Number
AddressObjectType AddressObjectType Address Type
SDDocPartnerAddrIsDocSpecific SDDocPartnerAddrIsDocSpecific
VATRegistration VATRegistration VAT Registration No.
UnloadingPointName UnloadingPointName Unloading Point Name
_BillingDocument _BillingDocument
_Item _Item
_PartnerFunction _PartnerFunction

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 R_BillingDocumentItemPartnerTP.
-- 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 R_BillingDocumentItemPartnerTP AS
SELECT
  cast(BillingProcessDocument as vbeln_vf preserving type) AS BillingDocument,
  cast(BillingProcessDocumentItem as posnr_vf preserving type) AS BillingDocumentItem,
  PartnerFunction,
  PartnerIsSpecificForSDDocItem,
  Customer,
  Supplier,
  Personnel,
  ContactPerson,
  ReferenceBusinessPartner,
  _PartnerFunction.SDDocumentPartnerType AS SDDocumentPartnerType,
  AddressID,
  AddressPersonID,
  AddressObjectType,
  SDDocPartnerAddrIsDocSpecific,
  VATRegistration,
  UnloadingPointName
FROM I_BillgProcDocItemCmpltPartner
LEFT OUTER JOIN R_BillingDocumentTP AS _BillingDocument ON BillingDocument = _BillingDocument.BillingDocument  -- association [1..1]
LEFT OUTER JOIN I_PartnerFunction AS _PartnerFunction ON PartnerFunction = _PartnerFunction.PartnerFunction  -- association [0..1]
LEFT OUTER JOIN I_BusPartAddress AS _BusinessPartnerAddressCP ON I_BillgProcDocItemCmpltPartner.AddressID = _BusinessPartnerAddressCP.AddressID AND ContactPerson is not initial AND I_BillgProcDocItemCmpltPartner.SDDocPartnerAddressRefType = 'I'  -- association [0..1]
LEFT OUTER JOIN I_BusPartAddress AS _BusinessPartnerAddress ON ReferenceBusinessPartner = _BusinessPartnerAddress.BusinessPartner AND I_BillgProcDocItemCmpltPartner.AddressID = _BusinessPartnerAddress.AddressID AND I_BillgProcDocItemCmpltPartner.SDDocPartnerAddressRefType = 'H'  -- association [0..1]
;