I_BillingDocumentODN

DDL: I_BILLINGDOCUMENTODN Type: view_entity BASIC Package: GLO_ODN_BILL

ODN in Billing Document

I_BillingDocumentODN (Basic)

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

Accounting and Financial Close

I_BillingDocumentODN is a Basic CDS View that provides data about "ODN in Billing Document" in SAP S/4HANA. It reads from 1 data source (I_AdditionalFiscalDataODN) and exposes 9 fields with key fields AFDFUniqueKeyUUID, BillingDocument. It has 1 association to related views. Part of development package GLO_ODN_BILL.

SAP Help Documentation

CategoryGeneral Functions
Purpose
This CDS view helps us to retrieve the Official Document Numbers (ODNs) that are associated with the billing document. 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 Users who want to use this CDS view don't need any special authorization.

Structure
Important Fields Important fields in this view include the following: Field Name Description BillingDocument Billing Document OfficialDocumentNumberCountry ODN Country/Region OfficialDocumentNumberType ODN Type OfficialDocumentNumber ODN Value OfficialDocumentNumberIntType ODN Internal Type OfficialDocumentNumberTypeText ODN Type Desc. AFDFUniqueKeyUUID GUID

View on SAP Help Portal →

SAP API Hub

CategoryBasic
StateC1
Line of BusinessAccounting and Financial Close
Application ComponentFI-LOC-ODN
CapabilitiesData Source for Defining CDS Entities,Data Source in SQL Select
Extensible (Key User)No
Extensible (Developer)No
Release State (Key User)Released
Release State (Developer)Released
PackageAccounting and Financial Close for SAP S/4HANA Cloud Public Edition
Description <p>This CDS view helps us to retrieve the Official Document Numbers (ODNs) that are associated with the billing document.</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
I_AdditionalFiscalDataODN I_AdditionalFiscalDataODN from

Associations (1)

CardinalityTargetAliasCondition
[0..*] I_Country _Country $projection.OfficialDocumentNumberCountry = _Country.Country

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label ODN in Billing Document view
Metadata.ignorePropagatedAnnotations true view
VDM.viewType #BASIC view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view

Fields (9)

KeyFieldSource TableSource FieldDescription
KEY AFDFUniqueKeyUUID AFDFUniqueKeyUUID Globally Unique Identifier
KEY BillingDocument Billing Document
OfficialDocumentNumberCountry OfficialDocumentNumberCountry Official Document Number Country/Region
OfficialDocumentNumberType OfficialDocumentNumberType Official Document Number Type
OfficialDocumentNumber OfficialDocumentNumber DEPRECATED: ODN Value (200 Characters)
ODNLegalDateTimeText ODNLegalDateTimeText ODN Legal Timestamp
OfficialDocumentNumberIntType OfficialDocumentNumberIntType Official Document Number Internal Type
OfficialDocumentNumberTypeText OfficialDocumentNumberTypeText Official Document Number Type Description
_Country _Country

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_BillingDocumentODN.
-- 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_BillingDocumentODN AS
SELECT
  AFDFUniqueKeyUUID,
  cast( AFDFDocumentKey1 as vbeln_vf ) AS BillingDocument,
  OfficialDocumentNumberCountry,
  OfficialDocumentNumberType,
  OfficialDocumentNumber,
  ODNLegalDateTimeText,
  OfficialDocumentNumberIntType,
  OfficialDocumentNumberTypeText
FROM I_AdditionalFiscalDataODN
LEFT OUTER JOIN I_Country AS _Country ON OfficialDocumentNumberCountry = _Country.Country  -- association [0..*]
;