R_BillingDocumentRequestItemTP

DDL: R_BILLINGDOCUMENTREQUESTITEMTP Type: view_entity TRANSACTIONAL Package: RAP_SD_BIL_BDR

Billing Document Request Item - TP

R_BillingDocumentRequestItemTP is a Transactional CDS View that provides data about "Billing Document Request Item - TP" in SAP S/4HANA. It reads from 1 data source (I_BillingDocumentRequestItem) and exposes 157 fields with key fields BillingDocumentRequest, BillingDocumentRequestItem. It has 5 associations to related views. Part of development package RAP_SD_BIL_BDR.

Data Sources (1)

SourceAliasJoin Type
I_BillingDocumentRequestItem I_BillingDocumentRequestItem from

Associations (5)

CardinalityTargetAliasCondition
[0..1] I_Batch _Batch $projection.Plant = _Batch.Plant and $projection.Product = _Batch.Material and $projection.Batch = _Batch.Batch
[0..1] E_BillingDocumentItem _Extension $projection.BillingDocumentRequest = _Extension.BillingDocument and $projection.BillingDocumentRequestItem = _Extension.BillingDocumentItem
[0..1] I_WBSElementByExternalID _WBSElementExternalID $projection.wbselementexternalid = _WBSElementExternalID.WBSElementExternalID
[0..*] R_BillgDocRequestItemPartnerTP _ItemPartner
[0..*] R_BillgDocRequestItemTextTP _ItemText

Annotations (7)

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

Fields (157)

KeyFieldSource TableSource FieldDescription
KEY BillingDocumentRequest BillingDocumentRequest
KEY BillingDocumentRequestItem BillingDocumentRequestItem
SalesDocumentItemCategory SalesDocumentItemCategory
SalesDocumentItemType SalesDocumentItemType
ReturnItemProcessingType ReturnItemProcessingType
CreatedByUser CreatedByUser
CreationDate CreationDate
CreationTime CreationTime
ReferenceLogicalSystem ReferenceLogicalSystem
OrganizationDivision OrganizationDivision
Division Division
SalesOffice SalesOffice
Product Product
OriginallyRequestedMaterial OriginallyRequestedMaterial
InternationalArticleNumber InternationalArticleNumber
PricingReferenceMaterial PricingReferenceMaterial
Batch Batch
ProductHierarchyNode ProductHierarchyNode
ProductGroup ProductGroup
AdditionalMaterialGroup1 AdditionalMaterialGroup1
AdditionalMaterialGroup2 AdditionalMaterialGroup2
AdditionalMaterialGroup3 AdditionalMaterialGroup3
AdditionalMaterialGroup4 AdditionalMaterialGroup4
AdditionalMaterialGroup5 AdditionalMaterialGroup5
MaterialCommissionGroup MaterialCommissionGroup
Plant Plant
StorageLocation StorageLocation
SoldProduct SoldProduct
BillingDocumentRequestItemText BillingDocumentRequestItemText
ServicesRenderedDate ServicesRenderedDate
BillingQuantity BillingQuantity
BillingQuantityUnit BillingQuantityUnit
BillingQuantityInBaseUnit BillingQuantityInBaseUnit
BaseUnit BaseUnit
MRPRequiredQuantityInBaseUnit MRPRequiredQuantityInBaseUnit
BillingToBaseQuantityDnmntr BillingToBaseQuantityDnmntr
BillingToBaseQuantityNmrtr BillingToBaseQuantityNmrtr
ItemGrossWeight ItemGrossWeight
ItemNetWeight ItemNetWeight
ItemWeightUnit ItemWeightUnit
ItemVolume ItemVolume
ItemVolumeUnit ItemVolumeUnit
NetAmount NetAmount
TransactionCurrency TransactionCurrency
GrossAmount GrossAmount
PricingDate PricingDate
PriceDetnExchangeRate PriceDetnExchangeRate
AbsltPriceDetnExchangeRate
PriceDetnExchRateIsIndrctQtan
PricingScaleQuantityInBaseUnit PricingScaleQuantityInBaseUnit
TaxAmount TaxAmount
CostAmount CostAmount
Subtotal1Amount Subtotal1Amount
Subtotal2Amount Subtotal2Amount
Subtotal3Amount Subtotal3Amount
Subtotal4Amount Subtotal4Amount
Subtotal5Amount Subtotal5Amount
Subtotal6Amount Subtotal6Amount
StatisticalValueControl StatisticalValueControl
CashDiscountIsDeductible CashDiscountIsDeductible
TimeSheetOvertimeCategory TimeSheetOvertimeCategory
DepartureCountry DepartureCountry
TaxJurisdiction TaxJurisdiction
ProductTaxClassification1 ProductTaxClassification1
ProductTaxClassification2 ProductTaxClassification2
ProductTaxClassification3 ProductTaxClassification3
ProductTaxClassification4 ProductTaxClassification4
ProductTaxClassification5 ProductTaxClassification5
ProductTaxClassification6 ProductTaxClassification6
ProductTaxClassification7 ProductTaxClassification7
ProductTaxClassification8 ProductTaxClassification8
ProductTaxClassification9 ProductTaxClassification9
ZeroVATRsn ZeroVATRsn
BillgDocReqBillgSts BillgDocReqBillgSts
BusinessArea BusinessArea
ProfitCenter ProfitCenter
BillingPeriodOfPerfStartDate BillingPeriodOfPerfStartDate
BillingPeriodOfPerfEndDate BillingPeriodOfPerfEndDate
OrderID OrderID
WBSElementInternalID WBSElementInternalID
WBSElementExternalID _WBSElementBasicData WBSElementExternalID
ProviderContract ProviderContract
ProviderContractItem ProviderContractItem
ControllingArea ControllingArea
CostCenter CostCenter
OriginSDDocument OriginSDDocument
OriginSDDocumentItem OriginSDDocumentItem
PriceDetnExchangeRateDate PriceDetnExchangeRateDate
MatlAccountAssignmentGroup MatlAccountAssignmentGroup
ReferenceDocument ReferenceDocument
ReferenceDocumentItem ReferenceDocumentItem
ReferenceDocSDDocCategory ReferenceDocSDDocCategory
SalesDocument SalesDocument
SalesDocumentItem SalesDocumentItem
SalesSDDocumentCategory SalesSDDocumentCategory
HigherLevelItem HigherLevelItem
BillgDocRequestItemInPartSgmt BillgDocRequestItemInPartSgmt
SalesGroup SalesGroup
ItemIsRelevantForCredit ItemIsRelevantForCredit
CreditRelatedPrice CreditRelatedPrice
ServiceDocumentType ServiceDocumentType
ServiceDocument ServiceDocument
ServiceDocumentItem ServiceDocumentItem
BusinessSolutionOrder BusinessSolutionOrder
BusinessSolutionOrderItem BusinessSolutionOrderItem
BillingDocumentRequestType BillingDocumentRequestType
SalesOrganization SalesOrganization
_ItemPartner _ItemPartner
_ItemText _ItemText
_BillingDocumentRequest _BillingDocumentRequest
_SalesDocumentItemCategory _SalesDocumentItemCategory
_SalesDocumentItemType _SalesDocumentItemType
_CreatedByUser _CreatedByUser
_ReferenceLogicalSystem _ReferenceLogicalSystem
_OrganizationDivision _OrganizationDivision
_Division _Division
_SalesOffice _SalesOffice
_Product _Product
_OriginallyRequestedMaterial _OriginallyRequestedMaterial
_PricingReferenceMaterial _PricingReferenceMaterial
_Batch _Batch
_ProductHierarchyNode _ProductHierarchyNode
_ProductGroup _ProductGroup
_AdditionalMaterialGroup1 _AdditionalMaterialGroup1
_AdditionalMaterialGroup2 _AdditionalMaterialGroup2
_AdditionalMaterialGroup3 _AdditionalMaterialGroup3
_AdditionalMaterialGroup4 _AdditionalMaterialGroup4
_AdditionalMaterialGroup5 _AdditionalMaterialGroup5
_MaterialCommissionGroup _MaterialCommissionGroup
_Plant _Plant
_StorageLocation _StorageLocation
_SoldProduct _SoldProduct
_BillingQuantityUnit _BillingQuantityUnit
_BaseUnit _BaseUnit
_ItemWeightUnit _ItemWeightUnit
_ItemVolumeUnit _ItemVolumeUnit
_TransactionCurrency _TransactionCurrency
_StatisticalValueControl _StatisticalValueControl
_TimeSheetOvertimeCat _TimeSheetOvertimeCat
_DepartureCountry _DepartureCountry
_BusinessArea _BusinessArea
_ProfitCenter _ProfitCenter
_WBSElementBasicData _WBSElementBasicData
_ControllingArea _ControllingArea
_CostCenter _CostCenter_2
_ReferenceDocSDDocCategory _ReferenceDocSDDocCategory
_SalesDocument _SalesDocument
_SalesDocumentItem _SalesDocumentItem
_SalesSDDocumentCategory _SalesSDDocumentCategory
_HigherLevelItem _HigherLevelItem
_BillgDocReqBillgSts _BillgDocReqBillgSts
_SalesGroup _SalesGroup
_MatlAccountAssignmentGroup _MatlAccountAssignmentGroup
_ServiceDocumentType _ServiceDocumentType
_ProviderContract _ProviderContract
_ProviderContractItem _ProviderContractItem
_WBSElementExternalID _WBSElementExternalID
@AccessControl: { authorizationCheck: #MANDATORY, personalData.blocking: #('TRANSACTIONAL_DATA'), privilegedAssociations: [ '_CreatedByUser' ] }

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

@VDM.viewType: #TRANSACTIONAL
@VDM.lifecycle.contract.type: #SAP_INTERNAL_API

@ObjectModel.usageType: { dataClass: #TRANSACTIONAL, serviceQuality: #C, sizeCategory: #XL }
@ObjectModel.semanticKey: ['BillingDocumentRequest','BillingDocumentRequestItem']
  
define view entity R_BillingDocumentRequestItemTP 
  as select from I_BillingDocumentRequestItem
  association to parent R_BillingDocumentRequestTP          as _BillingDocumentRequest on $projection.BillingDocumentRequest = _BillingDocumentRequest.BillingDocumentRequest 
  
  composition [0..*] of R_BillgDocRequestItemPartnerTP      as _ItemPartner
  composition [0..*] of R_BillgDocRequestItemTextTP         as _ItemText
  
  association [0..1] to I_Batch                             as _Batch                  on  $projection.Plant   = _Batch.Plant
                                                                                       and $projection.Product = _Batch.Material
                                                                                       and $projection.Batch   = _Batch.Batch 
   //Extensibility

  association [0..1] to E_BillingDocumentItem               as _Extension              on  $projection.BillingDocumentRequest     = _Extension.BillingDocument
                                                                                       and $projection.BillingDocumentRequestItem = _Extension.BillingDocumentItem
  association [0..1] to I_WBSElementByExternalID            as _WBSElementExternalID   on  $projection.wbselementexternalid = _WBSElementExternalID.WBSElementExternalID                                                                                                                                                                         
{
      key BillingDocumentRequest,
      key BillingDocumentRequestItem,
      SalesDocumentItemCategory,
      SalesDocumentItemType,
      ReturnItemProcessingType,
      CreatedByUser,
      CreationDate,
      CreationTime,
      ReferenceLogicalSystem,
      OrganizationDivision,
      Division,
      SalesOffice,
      Product,
      OriginallyRequestedMaterial,
      InternationalArticleNumber,
      PricingReferenceMaterial,
      @ObjectModel.foreignKey.association: '_Batch'
      Batch,
      ProductHierarchyNode,
      ProductGroup,
      AdditionalMaterialGroup1,
      AdditionalMaterialGroup2,
      AdditionalMaterialGroup3,
      AdditionalMaterialGroup4,
      AdditionalMaterialGroup5,
      MaterialCommissionGroup,
      Plant,
      StorageLocation,
      SoldProduct,
      BillingDocumentRequestItemText,
      ServicesRenderedDate,
      BillingQuantity,
      BillingQuantityUnit,
      BillingQuantityInBaseUnit,
      BaseUnit,
      MRPRequiredQuantityInBaseUnit,
      BillingToBaseQuantityDnmntr,
      BillingToBaseQuantityNmrtr,
      ItemGrossWeight,
      ItemNetWeight,
      ItemWeightUnit,
      ItemVolume,
      ItemVolumeUnit,
      NetAmount,
      TransactionCurrency,
      GrossAmount,
      PricingDate,
      PriceDetnExchangeRate,
      cast(abs( PriceDetnExchangeRate ) as kursk_abs)                                                as AbsltPriceDetnExchangeRate, //new

      cast(case when PriceDetnExchangeRate < 0 then 'X' else ' ' end  as kursk_quotatn_is_indirect)  as PriceDetnExchRateIsIndrctQtan, //new

      PricingScaleQuantityInBaseUnit,
      TaxAmount,
      CostAmount,
      Subtotal1Amount,
      Subtotal2Amount,
      Subtotal3Amount,
      Subtotal4Amount,
      Subtotal5Amount,
      Subtotal6Amount,
      StatisticalValueControl,
      CashDiscountIsDeductible,
      TimeSheetOvertimeCategory,
      DepartureCountry,
      TaxJurisdiction,
      ProductTaxClassification1,
      ProductTaxClassification2,
      ProductTaxClassification3,
      ProductTaxClassification4,
      ProductTaxClassification5,
      ProductTaxClassification6,
      ProductTaxClassification7,
      ProductTaxClassification8,
      ProductTaxClassification9,
      ZeroVATRsn,
      BillgDocReqBillgSts,
      BusinessArea,
      ProfitCenter,
      BillingPeriodOfPerfStartDate,
      BillingPeriodOfPerfEndDate,
      OrderID,
      WBSElementInternalID,
      @ObjectModel.foreignKey.association: '_WBSElementExternalID'//new

      _WBSElementBasicData.WBSElementExternalID, //new

      ProviderContract,
      ProviderContractItem,
      ControllingArea,
      @ObjectModel.foreignKey.association: '_CostCenter'            
      CostCenter,
      OriginSDDocument,
      OriginSDDocumentItem,
      PriceDetnExchangeRateDate,
      MatlAccountAssignmentGroup,
      ReferenceDocument,
      ReferenceDocumentItem,
      ReferenceDocSDDocCategory,
      SalesDocument,
      SalesDocumentItem,
      SalesSDDocumentCategory,
      HigherLevelItem,
      BillgDocRequestItemInPartSgmt,
      SalesGroup,
      ItemIsRelevantForCredit,
      CreditRelatedPrice,
      ServiceDocumentType,
      ServiceDocument,
      ServiceDocumentItem,
      BusinessSolutionOrder,
      BusinessSolutionOrderItem,
      
      // The following two fields are only required for the DCL  

      @Consumption.hidden: true
      @ObjectModel.foreignKey.association: null      
      BillingDocumentRequestType,
      @Consumption.hidden: true
      @ObjectModel.foreignKey.association: null
      SalesOrganization,
      
      _ItemPartner,
      _ItemText,
                  
      _BillingDocumentRequest,
      _SalesDocumentItemCategory,
      _SalesDocumentItemType,
      _CreatedByUser,
      _ReferenceLogicalSystem,
      _OrganizationDivision,
      _Division,
      _SalesOffice,
      _Product,
      _OriginallyRequestedMaterial,
      _PricingReferenceMaterial,
      _Batch,
      _ProductHierarchyNode,
      _ProductGroup,
      _AdditionalMaterialGroup1,
      _AdditionalMaterialGroup2,
      _AdditionalMaterialGroup3,
      _AdditionalMaterialGroup4,
      _AdditionalMaterialGroup5,
      _MaterialCommissionGroup,
      _Plant,
      _StorageLocation,
      _SoldProduct,
      _BillingQuantityUnit,
      _BaseUnit,
      _ItemWeightUnit,
      _ItemVolumeUnit,
      _TransactionCurrency,
      _StatisticalValueControl,
      _TimeSheetOvertimeCat,
      _DepartureCountry,
      _BusinessArea,
      _ProfitCenter,
      _WBSElementBasicData,
      _ControllingArea,
      _CostCenter_2 as _CostCenter,
      _ReferenceDocSDDocCategory,
      _SalesDocument,
      _SalesDocumentItem,
      _SalesSDDocumentCategory,
      _HigherLevelItem,
      _BillgDocReqBillgSts,
      _SalesGroup,
      _MatlAccountAssignmentGroup,
      _ServiceDocumentType,
      _ProviderContract,
      _ProviderContractItem,
      _WBSElementExternalID
//      _ProductText,

//      _BusinessAreaText,

//      _PricingReferenceMaterialText,

//      _OriginallyRequestedMatlText


}