I_APCheckbook
Cheque book
I_APCheckbook (Basic)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.
Financial Operations
I_APCheckbook is a Basic CDS View that provides data about "Cheque book" in SAP S/4HANA. It reads from 1 data source (P_APCheckbook) and exposes 20 fields with key fields PaymentCompanyCode, HouseBank, HouseBankAccount, Chequebook. It has 1 association to related views.
SAP Help Documentation
| Category | CDS Views for Invoice Management |
|---|---|
| Status | Released |
Purpose
This CDS view helps to retrieve the detailed information of outgoing cheque books. You can compare the Check Number From and Check Number To with the Check Number in CDS View I_OutgoingCheck to get the respective Checkbook ID and Checkbook Name . This CDS view provides the data to answer the following business questions: What is the number range of the outgoing cheques in a cheque book? What is the remaining capacity of a cheque book? What is the successor cheque book of a given cheque book? What are the details of a cheque book, including supported payment methods? 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 business catalog needs to be assigned to a user to be able to use this CDS view: Accounts Payable - Checks ( SAP_FIN_BC_AP_CHECK_PC ) These restriction types are edited in the Maintain Business Roles app.
Structure
Fields used for filtering The main filters are as follows: Payment Company Code used to filter by company code Cheque Book used to filter by cheque book ID House Bank used to filter by house bank House Bank Account used to filter by house bank account
This CDS view helps to retrieve the detailed information of outgoing cheque books. You can compare the Check Number From and Check Number To with the Check Number in CDS View I_OutgoingCheck to get the respective Checkbook ID and Checkbook Name . This CDS view provides the data to answer the following business questions: What is the number range of the outgoing cheques in a cheque book? What is the remaining capacity of a cheque book? What is the successor cheque book of a given cheque book? What are the details of a cheque book, including supported payment methods? 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 business catalog needs to be assigned to a user to be able to use this CDS view: Accounts Payable - Checks ( SAP_FIN_BC_AP_CHECK_PC ) These restriction types are edited in the Maintain Business Roles app.
Structure
Fields used for filtering The main filters are as follows: Payment Company Code used to filter by company code Cheque Book used to filter by cheque book ID House Bank used to filter by house bank House Bank Account used to filter by house bank account
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | Financial Operations |
| Application Component | FI-FIO-AP |
| Capabilities | Association Target for Defining CDS Entities, Data Source in SQL Select, Data Source for Defining CDS Entities |
| Package | Financial Operations 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 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 |
|---|---|---|
| P_APCheckbook | cb | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_HouseBankAccountText | _HouseBankAccount | _HouseBankAccount.CompanyCode = $projection.PaymentCompanyCode and _HouseBankAccount.HouseBank = $projection.HouseBank and _HouseBankAccount.HouseBankAccount = $projection.HouseBankAccount and _HouseBankAccount.Language = $session.system_language |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Cheque book | view | |
| VDM.viewType | #BASIC | view | |
| AbapCatalog.sqlViewName | IAPCHECKBOOK | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (20)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PaymentCompanyCode | P_APCheckbook | PaymentCompanyCode | Paying company code |
| KEY | HouseBank | P_APCheckbook | HouseBank | Short Key for a House Bank |
| KEY | HouseBankAccount | P_APCheckbook | HouseBankAccount | ID for Account Details |
| KEY | Chequebook | P_APCheckbook | Chequebook | Lot Number |
| ChequebookFirstCheque | P_APCheckbook | ChequebookFirstCheque | Check Number From | |
| ChequebookLastCheque | P_APCheckbook | ChequebookLastCheque | Check number | |
| NextChequebook | P_APCheckbook | NextChequebook | Next lot | |
| LastAssignedCheque | P_APCheckbook | LastAssignedCheque | Last Check Number Assigned | |
| ChequebookName | P_APCheckbook | ChequebookName | Short Information on the Lot | |
| ChequebookIsNonSequential | P_APCheckbook | ChequebookIsNonSequential | Indicator: Non-Sequential Check Number Management | |
| datsendasChequebookPurchaseDate | ||||
| ChequebookPaymentMethodList | P_APCheckbook | ChequebookPaymentMethodList | List of Pmnt Methods Permitted for This Check Lot | |
| ChequebookMinimalChequeCount | P_APCheckbook | ChequebookMinimalChequeCount | Minimal Alert Number | |
| ChequebookPurchaser | P_APCheckbook | ChequebookPurchaser | Purchase By | |
| ChequebookCreatedByUser | P_APCheckbook | ChequebookCreatedByUser | Created By | |
| ChequebookCreationDate | P_APCheckbook | ChequebookCreationDate | Time Stamp | |
| ChequebookCreationTime | P_APCheckbook | ChequebookCreationTime | Time | |
| ChequeType | P_APCheckbook | ChequeType | Type of Check for China Specific | |
| ChequebookStatus | ||||
| BankAccountName | _HouseBankAccount | HouseBankAccountDescription | Account Description |
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_APCheckbook.
-- 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: IAPCHECKBOOK
CREATE VIEW I_APCheckbook AS
SELECT
cb.PaymentCompanyCode AS PaymentCompanyCode,
cb.HouseBank AS HouseBank,
cb.HouseBankAccount AS HouseBankAccount,
cb.Chequebook AS Chequebook,
cb.ChequebookFirstCheque AS ChequebookFirstCheque,
cb.ChequebookLastCheque AS ChequebookLastCheque,
cb.NextChequebook AS NextChequebook,
cb.LastAssignedCheque AS LastAssignedCheque,
cb.ChequebookName AS ChequebookName,
cb.ChequebookIsNonSequential AS ChequebookIsNonSequential,
case cb.ChequebookPurchaseDate when '' then cast ( ' ' as abap.dats ) else cast ( cb.ChequebookPurchaseDate as abap.dats ) end as ChequebookPurchaseDate AS datsendasChequebookPurchaseDate,
cb.ChequebookPaymentMethodList AS ChequebookPaymentMethodList,
cb.ChequebookMinimalChequeCount AS ChequebookMinimalChequeCount,
cb.ChequebookPurchaser AS ChequebookPurchaser,
cb.ChequebookCreatedByUser AS ChequebookCreatedByUser,
cb.ChequebookCreationDate AS ChequebookCreationDate,
cb.ChequebookCreationTime AS ChequebookCreationTime,
cb.ChequeType AS ChequeType,
cast( ' ' as abap.char(10)) AS ChequebookStatus,
_HouseBankAccount.HouseBankAccountDescription AS BankAccountName
FROM P_APCheckbook AS cb
LEFT OUTER JOIN I_HouseBankAccountText AS _HouseBankAccount ON _HouseBankAccount.CompanyCode = PaymentCompanyCode AND _HouseBankAccount.HouseBank = HouseBank AND _HouseBankAccount.HouseBankAccount = HouseBankAccount AND _HouseBankAccount.Language = $session.system_language -- 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