I_APCheckbook

DDL: I_APCHECKBOOK SQL: IAPCHECKBOOK Type: view BASIC

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

CategoryCDS Views for Invoice Management
StatusReleased
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

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessFinancial Operations
Application ComponentFI-FIO-AP
CapabilitiesAssociation Target for Defining CDS Entities, Data Source in SQL Select, Data Source for Defining CDS Entities
PackageFinancial Operations for SAP S/4HANA Cloud Private Edition

Documentation

Data Sources (1)

SourceAliasJoin Type
P_APCheckbook cb from

Associations (1)

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

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

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