I_BillOfExchange
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
| Category | CDS Views for Bill of Exchange |
|---|
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 .
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | Accounting and Financial Close |
| Application Component | FI |
| Capabilities | Data Source for Defining CDS Entities, Association Target for Defining CDS Entities, Data Source in SQL Select, Data Source for Data Extraction |
| Package | Accounting and Financial Close for SAP S/4HANA Cloud Private Edition |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Private Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Private Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Private Edition 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 Cloud Private Edition — Explore SAP S/4HANA Cloud Private Edition 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 Cloud Private Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| bsed | bsed | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
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