I_BillOfExchange

DDL: I_BILLOFEXCHANGE Type: view_entity BASIC

Bill of Exchange

I_BillOfExchange (Basic)

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

JournalEntryItemBillOfExchange · Accounting and Financial Close

I_BillOfExchange is a Basic CDS View that provides data about "Bill of Exchange" in SAP S/4HANA. It reads from 1 data source (bsed) and exposes 26 fields with key fields CompanyCode, AccountingDocument, FiscalYear, AccountingDocumentItem. It has 2 associations to related views.

SAP Help Documentation

CategoryCDS Views for Bill of Exchange
Purpose
This CDS view provides access to the details of bill of exchange data by database table BSED, which is a document segment including bill of exchange fields. The most important attributes of this business entity are included. For example, Bill of Exchange Issue Date Bill of Exchange Due Date Bill of Exchange Drawe Bill of Exchange Drawee Bill of Exchange Is Accepted Bill of Exchange Document Status This CDS view provides the data to answer the following business questions: What is the status for a bill of exchange document? Who is the drawer of a bill of exchange 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 .

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessAccounting and Financial Close
Application ComponentFI
CapabilitiesData Source for Defining CDS Entities, Association Target for Defining CDS Entities, Data Source in SQL Select, Data Source for Data Extraction
PackageAccounting and Financial Close for SAP S/4HANA Cloud Private Edition

Documentation

Data Sources (1)

SourceAliasJoin Type
bsed bsed from

Associations (2)

CardinalityTargetAliasCondition
[1..1] E_BillOfExchange _Extension $projection.CompanyCode = _Extension.CompanyCode and $projection.FiscalYear = _Extension.FiscalYear and $projection.AccountingDocument = _Extension.AccountingDocument and $projection.AccountingDocumentItem = _Extension.AccountingDocumentItem
[1..1] I_OperationalAcctgDocItem _OperationalAcctgDocItem $projection.CompanyCode = _OperationalAcctgDocItem.CompanyCode and $projection.FiscalYear = _OperationalAcctgDocItem.FiscalYear and $projection.AccountingDocument = _OperationalAcctgDocItem.AccountingDocument and $projection.AccountingDocumentItem = _OperationalAcctgDocItem.AccountingDocumentItem

Annotations (11)

NameValueLevelField
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Bill of Exchange view
Metadata.ignorePropagatedAnnotations true view
Analytics.dataExtraction.enabled true view
AccessControl.personalData.blocking #REQUIRED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.modelingPattern #ANALYTICAL_DIMENSION view

Fields (26)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode bukrs Company Code
KEY AccountingDocument belnr Document Number of an Accounting Document
KEY FiscalYear Settlement Year
KEY AccountingDocumentItem buzei Number of Line Item Within Accounting Document
Cheque Check Number
BillOfExchangeIssueDate wdate Bill of Exchange Issue Date
BillOfExchangeUsageDate wverd Date of Bill of Exchange Usage
BillOfExchangeUsage Bill of Exchange Usage Type
PlannedBillOfExchangeUsage wevwv Planned Usage of the Bill of Exchange
BillOfExchangeDrawer wname Name of Bill of Exchange Drawer
BillOfExchangeDrawerCityName wort1 City of Bill of Exchange Drawer
BillOfExchangeDrawee wbzog Bill of Exchange Drawee
BillOfExchangeDraweeCityName wort2 City of Bill of Exchange Drawee
BillOfExchangeDomicileText wbank Bank Address Where a Bill of Exchange Can Be Paid (Domestic)
BillOfExchangeIsAccepted xaktz Indicator: Bill of Exchange Was Accepted
Region regio Region (State, Province, County)
BillOfExchangeDocumentStatus wstat Bill of Exchange Status
BillOfExchangeIsProtested wgbkz Indicator for the Bill of Exchange Protest
BillOfExchangeIsOnDemand xsiwe Indicator: Bill on Demand
BusinessPlace bupla Business place
BusinessSectionCode secco Section Code
BillOfExchangePortfolio portf Bill of Exchange Portfolio
BillOfExchangeDataAgingDate _dataaging Data Filter Value for Data Aging
IsBusinessPurposeCompleted Business Purpose Completed Flag
AuthorizationGroup Authorization Group
_OperationalAcctgDocItem _OperationalAcctgDocItem

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_BillOfExchange.
-- 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_BillOfExchange AS
SELECT
  bukrs AS CompanyCode,
  belnr AS AccountingDocument,
  cast(gjahr as fis_gjahr_no_conv preserving type) AS FiscalYear,
  buzei AS AccountingDocumentItem,
  cast(boeno as chect) AS Cheque,
  wdate AS BillOfExchangeIssueDate,
  wverd AS BillOfExchangeUsageDate,
  cast( wevwv as farp_wverw preserving type ) AS BillOfExchangeUsage,
  wevwv AS PlannedBillOfExchangeUsage,
  wname AS BillOfExchangeDrawer,
  wort1 AS BillOfExchangeDrawerCityName,
  wbzog AS BillOfExchangeDrawee,
  wort2 AS BillOfExchangeDraweeCityName,
  wbank AS BillOfExchangeDomicileText,
  xaktz AS BillOfExchangeIsAccepted,
  regio AS Region,
  wstat AS BillOfExchangeDocumentStatus,
  wgbkz AS BillOfExchangeIsProtested,
  xsiwe AS BillOfExchangeIsOnDemand,
  bupla AS BusinessPlace,
  secco AS BusinessSectionCode,
  portf AS BillOfExchangePortfolio,
  cast( ' ' as cvp_xblck preserving type ) AS IsBusinessPurposeCompleted,
  cast( ' ' as brgru preserving type ) AS AuthorizationGroup
FROM bsed
LEFT OUTER JOIN E_BillOfExchange AS _Extension ON CompanyCode = _Extension.CompanyCode AND FiscalYear = _Extension.FiscalYear AND AccountingDocument = _Extension.AccountingDocument AND AccountingDocumentItem = _Extension.AccountingDocumentItem  -- association [1..1]
LEFT OUTER JOIN I_OperationalAcctgDocItem AS _OperationalAcctgDocItem ON CompanyCode = _OperationalAcctgDocItem.CompanyCode AND FiscalYear = _OperationalAcctgDocItem.FiscalYear AND AccountingDocument = _OperationalAcctgDocItem.AccountingDocument AND AccountingDocumentItem = _OperationalAcctgDocItem.AccountingDocumentItem  -- association [1..1]
;