C_Openbillingrequest

DDL: C_OPENBILLINGREQUEST SQL: COPENBILLINGREQ Type: view CONSUMPTION

Open Billing Request

C_Openbillingrequest is a Consumption CDS View that provides data about "Open Billing Request" in SAP S/4HANA. It reads from 2 data sources (I_BillingDueListItem, I_SalesDocument) and exposes 22 fields with key fields BillingDocumentCategory, BillingDocumentType, BillingDocumentDate, SalesOrganization, SoldToParty. It has 3 associations to related views.

Data Sources (2)

SourceAliasJoin Type
I_BillingDueListItem BillingDocument from
I_SalesDocument SalesDocument inner

Associations (3)

CardinalityTargetAliasCondition
[0..*] I_EngagementProjectItem _Item $projection.SalesDocument = _Item.EngagementProjectItem and _Item.EngagementProjectItemType = '0SOH'
[0..1] I_Customer_VH _Customer $projection.SoldToParty = _Customer.Customer
[0..1] I_BillingDocumentType _BillingDocumentType $projection.BillingDocumentType = _BillingDocumentType.BillingDocumentType

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName COPENBILLINGREQ view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #CONSUMPTION view
OData.publish true view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Open Billing Request view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
AccessControl.personalData.blocking #REQUIRED view
VDM.lifecycle.status #DEPRECATED view

Fields (22)

KeyFieldSource TableSource FieldDescription
KEY BillingDocumentCategory I_BillingDueListItem BillingDocumentCategory
KEY BillingDocumentType I_BillingDueListItem BillingDocumentType
KEY BillingDocumentDate I_BillingDueListItem BillingDocumentDate
KEY SalesOrganization I_BillingDueListItem SalesOrganization
KEY SoldToParty I_BillingDueListItem Customer Customer
KEY DestinationCountry I_BillingDueListItem DestinationCountry
KEY ReferenceSDDocument I_BillingDueListItem ReferenceSDDocument Document Number
SalesDocument I_SalesDocument ReferenceSDDocument
ReferenceSDDocumentCategory I_BillingDueListItem ReferenceSDDocumentCategory
NetAmount I_BillingDueListItem NetAmount Net Amount
TransactionCurrency I_BillingDueListItem TransactionCurrency
CustomerName Customer Name
SalesDocumentType I_SalesDocument SalesDocumentType
OrganizationDivision I_SalesDocument OrganizationDivision
DistributionChannel I_SalesDocument DistributionChannel
EngagementProjectUUID _Item EngagementProjectUUID
EngagementProject Project ID
EngagementProjectName Project Name
_Customer _Customer
_BillingDocumentType _BillingDocumentType
_Item _Item
_ReferenceSDDocumentCategory I_BillingDueListItem _ReferenceSDDocumentCategory
@AbapCatalog.sqlViewName: 'COPENBILLINGREQ'
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM.viewType: #CONSUMPTION
@OData.publish: true
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Open Billing Request'
@ObjectModel.usageType.dataClass: #TRANSACTIONAL
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.sizeCategory: #L
@AccessControl.personalData.blocking: #REQUIRED
@VDM.lifecycle.status: #DEPRECATED
/* As of 2302 release, this view is deprecated. Please do not use this view. */ 

define view C_Openbillingrequest
  as select from I_BillingDueListItem as BillingDocument

    inner join   I_SalesDocument      as SalesDocument on  SalesDocument.SalesDocument            = BillingDocument.ReferenceSDDocument
                                                       and SalesDocument.SalesDocumentType        = 'DMR1'
                                                       and SalesDocument.HeaderBillingBlockReason = '06'
  association [0..*] to I_EngagementProjectItem as _Item                on  $projection.SalesDocument       = _Item.EngagementProjectItem
                                                                        and _Item.EngagementProjectItemType = '0SOH'




  association [0..1] to I_Customer_VH           as _Customer            on  $projection.SoldToParty = _Customer.Customer
  association [0..1] to I_BillingDocumentType   as _BillingDocumentType on  $projection.BillingDocumentType = _BillingDocumentType.BillingDocumentType

{
  key BillingDocument.BillingDocumentCategory                         as BillingDocumentCategory,
  key BillingDocument.BillingDocumentType                             as BillingDocumentType,
  key BillingDocument.BillingDocumentDate                             as BillingDocumentDate,
  key BillingDocument.SalesOrganization                               as SalesOrganization,
      @Consumption.valueHelp: '_Customer'
      @EndUserText.label: 'Customer'
      @EndUserText.quickInfo: 'Customer'
  key BillingDocument.Customer                                        as SoldToParty,
  key BillingDocument.DestinationCountry                              as DestinationCountry,
      @EndUserText.label: 'Document Number'
      @UI.lineItem.position: 1
  key BillingDocument.ReferenceSDDocument                             as ReferenceSDDocument,

      SalesDocument.ReferenceSDDocument                               as SalesDocument,
      BillingDocument.ReferenceSDDocumentCategory                     as ReferenceSDDocumentCategory,
      @EndUserText.label: 'Net Amount'
      @Semantics.amount.currencyCode: 'TransactionCurrency'
      BillingDocument.NetAmount                                       as NetAmount,
      @Semantics.currencyCode: true
      BillingDocument.TransactionCurrency                             as TransactionCurrency,
      @EndUserText.label: 'Customer Name'
      BillingDocument._Customer.CustomerName                       as CustomerName,
      SalesDocument.SalesDocumentType                                 as SalesDocumentType,
      SalesDocument.OrganizationDivision                              as OrganizationDivision,
      SalesDocument.DistributionChannel                               as DistributionChannel,
      @UI.hidden: true
      _Item.EngagementProjectUUID                                     as EngagementProjectUUID,
      @EndUserText.label: 'Project ID'
      _Item._EngagementProject.EngagementProject                      as EngagementProject,
      @EndUserText.label: 'Project Name'
      _Item._EngagementProject.EngagementProjectName                  as EngagementProjectName,


      //Association

      @Consumption.hidden: true
      _Customer,

      @Consumption.hidden: true
      _BillingDocumentType,

      @Consumption.hidden: true
      _Item,

      @Consumption.hidden: true
      BillingDocument._ReferenceSDDocumentCategory
}

where
  (
    BillingDocument.BillingDocumentCategory     = 'A'
  )
  and(
    BillingDocument.ReferenceSDDocumentCategory = 'L'
  )
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_BILLINGDUELISTITEM",
"I_CUSTOMER",
"I_ENGAGEMENTPROJECT",
"I_ENGAGEMENTPROJECTITEM",
"I_SALESDOCUMENT"
],
"ASSOCIATED":
[
"I_BILLINGDOCUMENTTYPE",
"I_CUSTOMER_VH",
"I_ENGAGEMENTPROJECTITEM",
"I_SDDOCUMENTCATEGORY"
],
"BASE":
[
"I_BILLINGDUELISTITEM"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/