I_UtilitiesInvoicingDocument

DDL: I_UTILITIESINVOICINGDOCUMENT SQL: IEINVOICINGDOC Type: view BASIC

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

CategoryInvoicing
Data CategoryDimension
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

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessUtilities
Application ComponentIS-U-IN
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 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

Data Sources (1)

SourceAliasJoin Type
erdk erdk from

Associations (9)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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]
;