R_BillgDocRequestItemPartnerTP
Billing Document Request Item Partner - TP
R_BillgDocRequestItemPartnerTP is a Transactional CDS View that provides data about "Billing Document Request Item Partner - TP" in SAP S/4HANA. It reads from 1 data source (I_BillgProcDocItemCmpltPartner) and exposes 13 fields with key fields BillingDocumentRequest, BillingDocumentRequestItem, PartnerFunction. It has 3 associations to related views. Part of development package RAP_SD_BIL_BDR.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_BillgProcDocItemCmpltPartner | ItemPartner | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | R_BillingDocumentRequestTP | _BillingDocumentRequest | $projection.BillingDocumentRequest = _BillingDocumentRequest.BillingDocumentRequest |
| [0..1] | I_BusPartAddress | _BusinessPartnerAddressCP | $projection.AddressID = _BusinessPartnerAddressCP.AddressID and $projection.ContactPerson is not initial and $projection.SDDocPartnerAddressRefType = 'I' |
| [0..1] | I_BusPartAddress | _BusinessPartnerAddress | $projection.ReferenceBusinessPartner = _BusinessPartnerAddress.BusinessPartner and $projection.AddressID = _BusinessPartnerAddress.AddressID and $projection.SDDocPartnerAddressRefType = 'H' |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| VDM.viewType | #TRANSACTIONAL | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| EndUserText.label | Billing Document Request Item Partner - TP | view |
Fields (13)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | BillingDocumentRequest | |||
| KEY | BillingDocumentRequestItem | |||
| KEY | PartnerFunction | PartnerFunction | ||
| PartnerIsSpecificForSDDocItem | PartnerIsSpecificForSDDocItem | |||
| Customer | Customer | |||
| Supplier | Supplier | |||
| Personnel | Personnel | |||
| ContactPerson | ContactPerson | |||
| ReferenceBusinessPartner | ReferenceBusinessPartner | |||
| AddressID | AddressID | |||
| SDDocPartnerAddressRefType | SDDocPartnerAddressRefType | |||
| _BillingDocumentRequest | _BillingDocumentRequest | |||
| _Item | _Item |
@VDM: {
lifecycle.contract.type: #SAP_INTERNAL_API,
viewType: #TRANSACTIONAL
}
@AccessControl: {
authorizationCheck: #MANDATORY, //MANDATORY
personalData.blocking: #('TRANSACTIONAL_DATA')
// privilegedAssociations: [ '_DfltAddrRprstn' ]
}
@ObjectModel: {
usageType: {
dataClass: #TRANSACTIONAL,
serviceQuality: #C,
sizeCategory: #XL
},
semanticKey: ['BillingDocumentRequest', 'BillingDocumentRequestItem', 'PartnerFunction']
}
@EndUserText.label: 'Billing Document Request Item Partner - TP'
define view entity R_BillgDocRequestItemPartnerTP
as select from I_BillgProcDocItemCmpltPartner as ItemPartner
association to parent R_BillingDocumentRequestItemTP as _Item on $projection.BillingDocumentRequest = _Item.BillingDocumentRequest
and $projection.BillingDocumentRequestItem = _Item.BillingDocumentRequestItem
association [1..1] to R_BillingDocumentRequestTP as _BillingDocumentRequest on $projection.BillingDocumentRequest = _BillingDocumentRequest.BillingDocumentRequest
association [0..1] to I_BusPartAddress as _BusinessPartnerAddressCP on $projection.AddressID = _BusinessPartnerAddressCP.AddressID
and $projection.ContactPerson is not initial
and $projection.SDDocPartnerAddressRefType = 'I'
association [0..1] to I_BusPartAddress as _BusinessPartnerAddress on $projection.ReferenceBusinessPartner = _BusinessPartnerAddress.BusinessPartner
and $projection.AddressID = _BusinessPartnerAddress.AddressID
and $projection.SDDocPartnerAddressRefType = 'H'
{
key cast(BillingProcessDocument as vbeln_bdr preserving type) as BillingDocumentRequest,
key cast(BillingProcessDocumentItem as posnr_bdr preserving type) as BillingDocumentRequestItem,
key PartnerFunction,
PartnerIsSpecificForSDDocItem,
Customer,
Supplier,
Personnel,
ContactPerson,
case ContactPerson
when '0000000000' then
_BusinessPartnerAddress.AddressUUID
else
_BusinessPartnerAddressCP.AddressUUID
end as BusinessPartnerAddressUUID,
ReferenceBusinessPartner,
@Consumption.hidden: true
AddressID,
@Consumption.hidden: true
SDDocPartnerAddressRefType,
//Association
_BillingDocumentRequest,
_Item
}
where _BillingProcessDocumentItem.SDDocumentCategory = 'EBDR'
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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