R_BillgDocRequestPartnerTP

DDL: R_BILLGDOCREQUESTPARTNERTP Type: view_entity TRANSACTIONAL Package: RAP_SD_BIL_BDR

Billing Document Request Partner - TP

R_BillgDocRequestPartnerTP is a Transactional CDS View that provides data about "Billing Document Request Partner - TP" in SAP S/4HANA. It reads from 1 data source (I_BillingDocReqPartner) and exposes 9 fields with key fields BillingDocumentRequest, PartnerFunction. It has 1 association to related views. Part of development package RAP_SD_BIL_BDR.

Data Sources (1)

SourceAliasJoin Type
I_BillingDocReqPartner Partner from

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_BusPartAddress _BusinessPartnerAddressCP Partner.AddressID = _BusinessPartnerAddressCP.AddressID and $projection.ContactPerson is not initial and Partner.SDDocPartnerAddressRefType = 'I'

Annotations (7)

NameValueLevelField
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 Partner - TP view

Fields (9)

KeyFieldSource TableSource FieldDescription
KEY BillingDocumentRequest BillingDocumentRequest
KEY PartnerFunction PartnerFunction
Customer Customer
Supplier Supplier
Personnel Personnel
ContactPerson ContactPerson
ReferenceBusinessPartner ReferenceBusinessPartner
_BillingDocumentRequest _BillingDocumentRequest
_PartnerFunction _PartnerFunction
@VDM: {
  lifecycle.contract.type: #SAP_INTERNAL_API,
  viewType: #TRANSACTIONAL
}
@AccessControl: {
  authorizationCheck: #MANDATORY,  
  personalData.blocking: #('TRANSACTIONAL_DATA')

}
@ObjectModel: {
   usageType: {
     dataClass:      #TRANSACTIONAL,
     serviceQuality: #C, 
     sizeCategory:   #XL
   },
    semanticKey: ['BillingDocumentRequest', 'PartnerFunction']
}

@EndUserText.label: 'Billing Document Request Partner - TP'

define view entity R_BillgDocRequestPartnerTP
  as select from I_BillingDocReqPartner as Partner
  association to parent R_BillingDocumentRequestTP as _BillingDocumentRequest  
                                                   on $projection.BillingDocumentRequest = _BillingDocumentRequest.BillingDocumentRequest
  association [0..1] to I_BusPartAddress as _BusinessPartnerAddressCP on Partner.AddressID = _BusinessPartnerAddressCP.AddressID
                                                                      and $projection.ContactPerson is not initial
                                                                      and Partner.SDDocPartnerAddressRefType =  'I' 
{
    key BillingDocumentRequest,                                                                                           
    key PartnerFunction,    
    
    Customer,
    Supplier,
    Personnel,
    ContactPerson,
    ReferenceBusinessPartner,
    
    case ContactPerson
        when '0000000000' then
         _BusinessPartnerAddress.AddressUUID
       else
         _BusinessPartnerAddressCP.AddressUUID
    end as BusinessPartnerAddressUUID,   
    
    _BillingDocumentRequest,
    _PartnerFunction
}