I_UtilsBillgDocInvcgHistory

DDL: I_UTILSBILLGDOCINVCGHISTORY SQL: IEBILLGDOCINVCGH Type: view BASIC

Invoicing History of Billing Document

I_UtilsBillgDocInvcgHistory (Basic)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.

Utilities

I_UtilsBillgDocInvcgHistory is a Basic CDS View (Dimension) that provides data about "Invoicing History of Billing Document" in SAP S/4HANA. It reads from 1 data source (erchc) and exposes 7 fields with key fields UtilitiesBillingDocument, UtilsSqncNmbrBillgDocInvcgHist. It has 1 association to related views.

SAP Help Documentation

CategoryBilling
Data CategoryDimension
Purpose
This CDS view retrieves data for the ERCH invoicing and reversal history. To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .

Prerequisites
Authorizations The following authorization objects are required to use this CDS view: E_CONTRACT (Authorization to display IS-U contracts) B_BUPA_GRP (Authorization to display business partners)

Structure
Important fields in this view include the following: Field Name Description UtilitiesBillingDocument Billing Document Number UtilitiesInvoicingDocument Print Document Number of an Invoicing Document

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessUtilities
Application ComponentIS-U-BI
CapabilitiesData Source in SQL Select, Analytical Dimension, Association Target for Defining CDS Entities, Data Source for Defining CDS Entities
PackageUtilities for SAP S/4HANA
Description <p>This CDS view retrieves data for the ERCH invoicing and reversal history.</p> <p>To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views.</p>

Documentation

Data Sources (1)

SourceAliasJoin Type
erchc erchc from

Associations (1)

CardinalityTargetAliasCondition
[1..1] I_UtilitiesBillingDocument _UtilitiesBillingDocument $projection.UtilitiesBillingDocument = _UtilitiesBillingDocument.UtilitiesBillingDocument

Annotations (14)

NameValueLevelField
EndUserText.label Invoicing History of Billing Document view
Analytics.dataCategory #DIMENSION view
VDM.viewType #BASIC view
AbapCatalog.sqlViewName IEBILLGDOCINVCGH view
AccessControl.authorizationCheck #CHECK view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.representativeKey UtilsSqncNmbrBillgDocInvcgHist view
Metadata.allowExtensions true view
AbapCatalog.compiler.compareFilter true view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.modelingPattern #ANALYTICAL_DIMENSION view

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY UtilitiesBillingDocument Number of Billing Document
KEY UtilsSqncNmbrBillgDocInvcgHist erchc lfdnr Sequence Number (Internal Use Only)
UtilitiesInvoicingDocument erchc opbel Number of print document
UtilsInvcgDocumentIsPosted erchc invoiced Indicator: document posted
ReversalUtilsInvcgDocument erchc intopbel Number of Print Document Used to Reverse Document
UtilsInvcgDocIsSimulated erchc simulated Indicator: invoicing generates a simulated document
_UtilitiesBillingDocument _UtilitiesBillingDocument

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_UtilsBillgDocInvcgHistory.
-- 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.
-- SQL view name: IEBILLGDOCINVCGH

CREATE VIEW I_UtilsBillgDocInvcgHistory AS
SELECT
  cast(erchc.belnr as e_belnr_vdm preserving type) AS UtilitiesBillingDocument,
  erchc.lfdnr AS UtilsSqncNmbrBillgDocInvcgHist,
  erchc.opbel AS UtilitiesInvoicingDocument,
  erchc.invoiced AS UtilsInvcgDocumentIsPosted,
  erchc.intopbel AS ReversalUtilsInvcgDocument,
  erchc.simulated AS UtilsInvcgDocIsSimulated
FROM erchc
LEFT OUTER JOIN I_UtilitiesBillingDocument AS _UtilitiesBillingDocument ON UtilitiesBillingDocument = _UtilitiesBillingDocument.UtilitiesBillingDocument  -- association [1..1]
;