I_BillingRequestItem

DDL: I_BILLINGREQUESTITEM Type: view BASIC

Billg Request Line for Srvc Transaction

I_BillingRequestItem is a Basic CDS View that provides data about "Billg Request Line for Srvc Transaction" in SAP S/4HANA. It reads from 1 data source (crms4d_billreq_i) and exposes 19 fields with key fields ServiceObjectType, ServiceDocument, ServiceDocumentItem, BillingRequestItem. It has 4 associations to related views.

SAP Help Documentation

CategoryService Contract Management
StatusBilling status of the billing request line
Purpose
This CDS view provides the prerequisites for answering business questions about billing request lines in service transactions. Example business questions could include the following: Which billing request lines have been generated for my service contract item? What are their statuses? Has my service contract item been billed in a given settlement period? When was a given billing request line of my service contract item billed? For what reason has a given billing request line been blocked for billing? What is the net value of a given billing request line?

Prerequisites
Authorizations Users who want to use this CDS view must have the following authorization objects assigned: Authorization Object Description CRM_SEO Authorization Object CRM Order – Business Object Service Order CRM_CON_SE Authorization Object CRM Order – Bus.Ob.Service Confirmation CRM_CO_SE Authorization Object CRM Order – Bus. Ob. Service Contract

Structure
Object Types This view relates to the SAP object type service contract . Measures and Attributes One important measure is: Net value of the billing request line ( NetValue ) Some important attributes are: Attribute Description ServiceObjectType Transaction category ServiceDocument Transaction ID ServiceDocumentItem Item number in transaction BillingRequestItem Number of the billing request line BillgReqItemBillingDateTime Billing date and time (timestamp) BillgReqItemBillingStatus Billing status of the billing request line SettlementStartDateTime Settlement start date and time (timestamp) SettlementEndDateTime Settlement end date and time (timestamp)

View on SAP Help Portal →

Data Sources (1)

SourceAliasJoin Type
crms4d_billreq_i crms4d_billreq_i from

Associations (4)

CardinalityTargetAliasCondition
[1] I_ServiceDocumentItem _ServiceDocItem $projection.ServiceObjectType = _ServiceDocItem.ServiceObjectType and $projection.ServiceDocument = _ServiceDocItem.ServiceDocument and $projection.ServiceDocumentItem = _ServiceDocItem.ServiceDocumentItem
[0..1] I_BillgReqItmSettlmtStatus _BillgReqItmSettlmtStatus $projection.BillgReqItemBillingStatus = _BillgReqItmSettlmtStatus.BillgReqItemBillingStatus
[0..1] I_Currency _TransactionCurrency $projection.transactioncurrency = _TransactionCurrency.Currency
[1] I_BillingBlockReason _BillingBlockReason $projection.BillingBlockReason = _BillingBlockReason.BillingBlockReason

Annotations (12)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Billg Request Line for Srvc Transaction view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
AccessControl.authorizationCheck #CHECK view
AbapCatalog.sqlViewName IBILLGREQITEM view
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XXL view
Metadata.ignorePropagatedAnnotations true view

Fields (19)

KeyFieldSource TableSource FieldDescription
KEY ServiceObjectType objtype_h Trans. Cat.
KEY ServiceDocument object_id Transaction ID
KEY ServiceDocumentItem number_int Item Number in Doc.
KEY BillingRequestItem record_no Rec.No
BillgReqItemBillingDateTime bill_date Billing Date
BillgReqItemBillingStatus bill_settl_stat Settlmnt Status
SettlementStartDateTime settl_from SettlementStart
SettlementEndDateTime settl_to Settlement End
BillingPlanTimeZone _ServiceDocItem BillingPlanTimeZone
TransactionCurrency _ServiceDocItem TransactionCurrency Transaction Currency
BillgReqItemNetAmount net_value Own Net Val
BillingBlockReason billing_block Blocking Reason
BillgReqItemDescription description Well Code Des.
ServicesRenderedDateTime servicesrendereddatetime Serv. Rendered Date
BillgReqItemPricingDate price_date Pricing Date
_ServiceDocItem _ServiceDocItem
_BillgReqItmSettlmtStatus _BillgReqItmSettlmtStatus
_TransactionCurrency _TransactionCurrency
_BillingBlockReason _BillingBlockReason

Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.

-- Derived SQL interpretation of CDS view I_BillingRequestItem.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.

CREATE VIEW I_BillingRequestItem AS
SELECT
  objtype_h AS ServiceObjectType,
  object_id AS ServiceDocument,
  number_int AS ServiceDocumentItem,
  record_no AS BillingRequestItem,
  bill_date AS BillgReqItemBillingDateTime,
  bill_settl_stat AS BillgReqItemBillingStatus,
  settl_from AS SettlementStartDateTime,
  settl_to AS SettlementEndDateTime,
  _ServiceDocItem.BillingPlanTimeZone AS BillingPlanTimeZone,
  _ServiceDocItem.TransactionCurrency AS TransactionCurrency,
  net_value AS BillgReqItemNetAmount,
  billing_block AS BillingBlockReason,
  description AS BillgReqItemDescription,
  ServicesRenderedDateTime,
  price_date AS BillgReqItemPricingDate
FROM crms4d_billreq_i
LEFT OUTER JOIN I_ServiceDocumentItem AS _ServiceDocItem ON ServiceObjectType = _ServiceDocItem.ServiceObjectType AND ServiceDocument = _ServiceDocItem.ServiceDocument AND ServiceDocumentItem = _ServiceDocItem.ServiceDocumentItem  -- association [1]
LEFT OUTER JOIN I_BillgReqItmSettlmtStatus AS _BillgReqItmSettlmtStatus ON BillgReqItemBillingStatus = _BillgReqItmSettlmtStatus.BillgReqItemBillingStatus  -- association [0..1]
LEFT OUTER JOIN I_Currency AS _TransactionCurrency ON transactioncurrency = _TransactionCurrency.Currency  -- association [0..1]
LEFT OUTER JOIN I_BillingBlockReason AS _BillingBlockReason ON BillingBlockReason = _BillingBlockReason.BillingBlockReason  -- association [1]
;