R_BillingDocumentItemPartnerTP
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)
| Source | Alias | Join Type |
|---|---|---|
| I_BillgProcDocItemCmpltPartner | I_BillgProcDocItemCmpltPartner | from |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA