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
KEY PartnerFunction PartnerFunction
PartnerFunctionName
AddressID AddressID
Customer Customer
Personnel Personnel
PersonFullNameelseendasFullName
CityName
StreetName
PostalCode
EmailAddressendasEmailAddress
_PartnerFunction I_SDDocumentPartner _PartnerFunction
_BillingDocument _BillingDocument
@AbapCatalog.sqlViewName: 'CBILLDOCPAFS'
@ClientHandling.algorithm:#SESSION_VARIABLE
@ClientHandling.type:#CLIENT_DEPENDENT
@AbapCatalog: {
  compiler.compareFilter: true,
  preserveKey: true
}
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Billing Document Partner Fact Sheet'

@VDM.viewType: #CONSUMPTION
@AccessControl.personalData.blocking: #('TRANSACTIONAL_DATA')
@ObjectModel: {
   compositionRoot: false,
   usageType: { 
    serviceQuality:#D,
    sizeCategory: #L,
    dataClass: #MIXED
   }
}


@UI.headerInfo: {
    typeName: 'Billing Document Partner',
    typeNamePlural: 'Billing Document Partners',
    title: {
        type:  #STANDARD,
        value: 'BillingDocumentPartner'
    }
}

define view C_BillingDocumentPartnerFs
  as select from I_SDDocumentPartner as SDPartnerData

  association [1]     to C_BillingDocumentFs  as _BillingDocument on $projection.SDDocument = _BillingDocument.BillingDocument
  // association [0..1]  to I_Employment         as _Employment      on $projection.Personnel  = _Employment.EmploymentInternalID

  association [0..1]  to I_PersonWorkAgreement_1   as _PersonWorkAgreement on  $projection.Personnel = _PersonWorkAgreement.PersonWorkAgreement

{

      @UI.hidden: true
  key SDDocument,

      @UI.hidden: true
  key PartnerFunction,

      @Semantics:   { organization.role: true }
      SDPartnerData._PartnerFunction._Text[1: Language = $session.system_language ].PartnerFunctionName,
      AddressID,

      @Semantics.contact.type: #ORGANIZATION
      Customer,
      Personnel,
      @Semantics.name.fullName: true
      case
       when AddressID <> ' ' then SDPartnerData._DfltAddrRprstn.AddresseeFullName
       when Personnel <> ' ' then coalesce(SDPartnerData._DfltAddrRprstn.AddresseeFullName, _PersonWorkAgreement.PersonFullName)
       else ''
      end as FullName,
      @Semantics.address.type: #HOME
      @Semantics.address.city: true
      SDPartnerData._DfltAddrRprstn.CityName,
      @Semantics.address.type: #HOME
      @Semantics.address.street: true
      SDPartnerData._DfltAddrRprstn.StreetName,
      @Semantics.address.type: #HOME
      @Semantics.address.zipCode: true
      SDPartnerData._DfltAddrRprstn.PostalCode,
      @Semantics.eMail.address: true
      @Semantics.eMail.type:  #WORK
      case AddressID
         when ''
            then _PersonWorkAgreement._WorkforcePerson._WorkplaceAddress.DefaultEmailAddress
         else SDPartnerData._DfltAddrRprstn._CurrentDfltEmailAddress.EmailAddress
      end   as EmailAddress,
       @Semantics.telephone.type: #WORK
      case AddressID
         when ''
            then _PersonWorkAgreement._WorkforcePerson._WorkplaceAddress.NormalizedPhoneNumber
         else SDPartnerData._DfltAddrRprstn._CurrentDfltLandlinePhoneNmbr.InternationalPhoneNumber
      end   as InternationalPhoneNumber,
      @Semantics.telephone.type: #CELL
      case AddressID
         when ''
            then _PersonWorkAgreement._WorkforcePerson._WorkplaceAddress.MblNormalizedPhoneNumber
         else SDPartnerData._DfltAddrRprstn._CurrentDfltMobilePhoneNumber.InternationalPhoneNumber
      end   as InternationalMobilePhoneNumber,

      // ***************************************************************************************

      // ************************   inherited associations  ************************************

      // ***************************************************************************************

      SDPartnerData._PartnerFunction,
            
      // association

      _BillingDocument
      
      // ***************************************************************************************

      // **************************  end of CDS Source definition ******************************

      // ***************************************************************************************

}                                          
 
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
 /*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_ADDRCURDEFAULTEMAILADDRESS",
"I_ADDRCURDFLTLANDLINEPHONENMBR",
"I_ADDRCURDFLTMOBILEPHONENUMBER",
"I_ADDRESS_2",
"I_PARTNERFUNCTION",
"I_PARTNERFUNCTIONTEXT",
"I_PERSONWORKAGREEMENT_1",
"I_SDDOCUMENTPARTNER",
"I_WORKFORCEPERSON",
"I_WORKPLACEADDRESS"
],
"ASSOCIATED":
[
"C_BILLINGDOCUMENTFS",
"I_PARTNERFUNCTION",
"I_PERSONWORKAGREEMENT_1"
],
"BASE":
[
"I_SDDOCUMENTPARTNER"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/