I_UtilitiesInvoicingDocument
Invoicing Document
I_UtilitiesInvoicingDocument (Basic)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.
Utilities
I_UtilitiesInvoicingDocument is a Basic CDS View (Dimension) that provides data about "Invoicing Document" in SAP S/4HANA. It reads from 1 data source (erdk) and exposes 40 fields with key field UtilitiesInvoicingDocument. It has 9 associations to related views.
SAP Help Documentation
| Category | Invoicing |
|---|---|
| Data Category | Dimension |
Purpose
This CDS view retrieves data for the IS-U move-out document at contract level. 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_INVOICE (Authorization to display IS-U bill print documents) B_BUPA_GRP (Authorization to display business partner data)
Structure
Important fields in this view include the following: Field Name Description UtilitiesInvoicingDocument Print Document Number of an Invoicing Document NetDueDate Net Due Date TotalAmountInTransactionCrcy Amount in Transaction Currency with +/- Sign UtilitiesInvoicingReason Utilities Invoicing Reason BusinessPartner Business Partner Number ContractAccount Contract Account Number UtilitiesPortion Utilities Portion UtilitiesBillingReason Utilities Billing Reason
This CDS view retrieves data for the IS-U move-out document at contract level. 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_INVOICE (Authorization to display IS-U bill print documents) B_BUPA_GRP (Authorization to display business partner data)
Structure
Important fields in this view include the following: Field Name Description UtilitiesInvoicingDocument Print Document Number of an Invoicing Document NetDueDate Net Due Date TotalAmountInTransactionCrcy Amount in Transaction Currency with +/- Sign UtilitiesInvoicingReason Utilities Invoicing Reason BusinessPartner Business Partner Number ContractAccount Contract Account Number UtilitiesPortion Utilities Portion UtilitiesBillingReason Utilities Billing Reason
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | Utilities |
| Application Component | IS-U-IN |
| Capabilities | Data Source in SQL Select, Analytical Dimension, Association Target for Defining CDS Entities, Data Source for Defining CDS Entities |
| Package | Utilities for SAP S/4HANA |
| Description | <p>This CDS view retrieves data for the IS-U move-out document at contract level.</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
- Analytics with CDS Views — Build Analytics for S/4HANA ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP Extensibility Explorer for SAP S/4HANA, onpremise edition — Explore SAP S/4HANA Extensibility options by leveraging the sample scenarios from SAP
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| erdk | erdk | from |
Associations (9)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_UtilitiesInvoicingReason | _UtilitiesInvoicingReason | $projection.UtilitiesInvoicingReason = _UtilitiesInvoicingReason.UtilitiesInvoicingReason |
| [0..1] | I_UtilsInvcgDocReversalRsn | _UtilsInvcgDocReversalRsn | $projection.UtilsInvcgDocReversalRsn = _UtilsInvcgDocReversalRsn.UtilsInvcgDocReversalRsn |
| [1..1] | I_UtilsInvcgPrntBlockRsn | _UtilsInvcgPrntBlockRsn | $projection.UtilsInvcgDocPrintBlockRsn = _UtilsInvcgPrntBlockRsn.UtilsInvcgDocPrintBlockRsn |
| [0..1] | I_UtilitiesPortion | _UtilitiesPortion | $projection.UtilitiesPortion = _UtilitiesPortion.UtilitiesPortion |
| [1..1] | I_UtilitiesBillingReason | _UtilitiesBillingReason | $projection.UtilitiesBillingReason = _UtilitiesBillingReason.UtilitiesBillingReason |
| [0..1] | I_BusinessPartner | _BusinessPartner | $projection.BusinessPartner = _BusinessPartner.BusinessPartner |
| [0..1] | I_Currency | _Currency | $projection.TransactionCurrency = _Currency.Currency |
| [0..1] | I_User | _CreatedByUser | $projection.UtilsInvcgDocCreatedByUser = _CreatedByUser.UserID |
| [0..1] | I_User | _LastChangedByUser | $projection.UtilsInvcgDocLastChangedByUser = _LastChangedByUser.UserID |
Annotations (14)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Invoicing Document | view | |
| Analytics.dataCategory | #DIMENSION | view | |
| VDM.viewType | #BASIC | view | |
| AbapCatalog.sqlViewName | IEINVOICINGDOC | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.representativeKey | UtilitiesInvoicingDocument | view | |
| Metadata.allowExtensions | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.modelingPattern | #ANALYTICAL_DIMENSION | view |
Fields (40)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | UtilitiesInvoicingDocument | Invoicing Document | ||
| UtilitiesInvoicingDocPrintDate | erdk | druckdat | Print Date | |
| NetDueDate | erdk | faedn | Due date for net payment | |
| CashDiscountDueDate | erdk | faeds | Due Date for Cash Discount | |
| CashDiscountPercent | erdk | sktpz | Cash Discount Percentage Rate | |
| PostingDate | erdk | budat | Posting Date in the Document | |
| DocumentDate | erdk | bldat | Document Date in Document | |
| TotalAmountInTransactionCrcy | erdk | total_amnt | Amount in Transaction Currency with +/- Sign | |
| TransactionCurrency | erdk | total_waer | Transaction Currency | |
| PaymentMethod | erdk | pymet | Payment Method | |
| UtilitiesInvoicingReason | erdk | ergrd | Reason for creating print document | |
| UtilsInvcgDocIsReversed | erdk | stokz | Document Has Been Reversed | |
| UtilsInvcgDocReversalRsn | erdk | icreason | Reason for Reversal | |
| ReversalUtilsInvcgDocument | erdk | intopbel | Number of Print Document Used to Reverse Document | |
| UtilsInvcgDocIsNotReleased | erdk | tobreleasd | Indicator: document not released yet | |
| UtilsInvcgDocIsSimulated | erdk | simulated | Indicator: invoicing generates a simulated document | |
| UtilsInvcgDocumentIsPosted | erdk | invoiced | Indicator: document posted | |
| BusinessPartner | erdk | partner | Business Partner Number | |
| ContractAccount | erdk | vkont | Contract Account Number | |
| UtilitiesPortion | erdk | portion | Portion | |
| UtilitiesBillingReason | erdk | abrvorg | Billing Transaction | |
| CAReconciliationKey | erdk | fikey | Reconciliation Key for General Ledger | |
| UtilitiesInvoicingParty | erdk | invoicing_party | Service Provider That Invoices the Contract | |
| UtilsInvcgDocCreationDate | erdk | erdat | Record Created On | |
| UtilsInvcgDocCreatedByUser | erdk | ernam | Name of Person Responsible for Creating the Object | |
| UtilsInvcgDocLastChangeDate | erdk | aedat | Last Changed On | |
| UtilsInvcgDocLastChangedByUser | erdk | aenam | Name of Person Who Changed Object | |
| OriginalUtilsInvcgDocRvslDate | erdk | sto_budat | Reversal Date of Original Document (Reversal Only) | |
| OriginalUtilsInvcgDocument | erdk | sto_opbel | Document Number of Original Document (Only for Reversal) | |
| UtilsInvcgDocPrintBlockRsn | erdk | printlock | Document is Blocked for Printing | |
| AuthorizationGroup | erdk | begru | Authorization Group | |
| _UtilitiesInvoicingReason | _UtilitiesInvoicingReason | |||
| _UtilsInvcgDocReversalRsn | _UtilsInvcgDocReversalRsn | |||
| _UtilsInvcgPrntBlockRsn | _UtilsInvcgPrntBlockRsn | |||
| _UtilitiesPortion | _UtilitiesPortion | |||
| _UtilitiesBillingReason | _UtilitiesBillingReason | |||
| _BusinessPartner | _BusinessPartner | |||
| _Currency | _Currency | |||
| _CreatedByUser | _CreatedByUser | |||
| _LastChangedByUser | _LastChangedByUser |
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_UtilitiesInvoicingDocument.
-- 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: IEINVOICINGDOC
CREATE VIEW I_UtilitiesInvoicingDocument AS
SELECT
cast (erdk.opbel as e_printdoc_vdm preserving type) AS UtilitiesInvoicingDocument,
erdk.druckdat AS UtilitiesInvoicingDocPrintDate,
erdk.faedn AS NetDueDate,
erdk.faeds AS CashDiscountDueDate,
erdk.sktpz AS CashDiscountPercent,
erdk.budat AS PostingDate,
erdk.bldat AS DocumentDate,
erdk.total_amnt AS TotalAmountInTransactionCrcy,
erdk.total_waer AS TransactionCurrency,
erdk.pymet AS PaymentMethod,
erdk.ergrd AS UtilitiesInvoicingReason,
erdk.stokz AS UtilsInvcgDocIsReversed,
erdk.icreason AS UtilsInvcgDocReversalRsn,
erdk.intopbel AS ReversalUtilsInvcgDocument,
erdk.tobreleasd AS UtilsInvcgDocIsNotReleased,
erdk.simulated AS UtilsInvcgDocIsSimulated,
erdk.invoiced AS UtilsInvcgDocumentIsPosted,
erdk.partner AS BusinessPartner,
erdk.vkont AS ContractAccount,
erdk.portion AS UtilitiesPortion,
erdk.abrvorg AS UtilitiesBillingReason,
erdk.fikey AS CAReconciliationKey,
erdk.invoicing_party AS UtilitiesInvoicingParty,
erdk.erdat AS UtilsInvcgDocCreationDate,
erdk.ernam AS UtilsInvcgDocCreatedByUser,
erdk.aedat AS UtilsInvcgDocLastChangeDate,
erdk.aenam AS UtilsInvcgDocLastChangedByUser,
erdk.sto_budat AS OriginalUtilsInvcgDocRvslDate,
erdk.sto_opbel AS OriginalUtilsInvcgDocument,
erdk.printlock AS UtilsInvcgDocPrintBlockRsn,
erdk.begru AS AuthorizationGroup
FROM erdk
LEFT OUTER JOIN I_UtilitiesInvoicingReason AS _UtilitiesInvoicingReason ON UtilitiesInvoicingReason = _UtilitiesInvoicingReason.UtilitiesInvoicingReason -- association [1..1]
LEFT OUTER JOIN I_UtilsInvcgDocReversalRsn AS _UtilsInvcgDocReversalRsn ON UtilsInvcgDocReversalRsn = _UtilsInvcgDocReversalRsn.UtilsInvcgDocReversalRsn -- association [0..1]
LEFT OUTER JOIN I_UtilsInvcgPrntBlockRsn AS _UtilsInvcgPrntBlockRsn ON UtilsInvcgDocPrintBlockRsn = _UtilsInvcgPrntBlockRsn.UtilsInvcgDocPrintBlockRsn -- association [1..1]
LEFT OUTER JOIN I_UtilitiesPortion AS _UtilitiesPortion ON UtilitiesPortion = _UtilitiesPortion.UtilitiesPortion -- association [0..1]
LEFT OUTER JOIN I_UtilitiesBillingReason AS _UtilitiesBillingReason ON UtilitiesBillingReason = _UtilitiesBillingReason.UtilitiesBillingReason -- association [1..1]
LEFT OUTER JOIN I_BusinessPartner AS _BusinessPartner ON BusinessPartner = _BusinessPartner.BusinessPartner -- association [0..1]
LEFT OUTER JOIN I_Currency AS _Currency ON TransactionCurrency = _Currency.Currency -- association [0..1]
LEFT OUTER JOIN I_User AS _CreatedByUser ON UtilsInvcgDocCreatedByUser = _CreatedByUser.UserID -- association [0..1]
LEFT OUTER JOIN I_User AS _LastChangedByUser ON UtilsInvcgDocLastChangedByUser = _LastChangedByUser.UserID -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA