I_RecrrgAcctgDocHdrForChgDoc

DDL: I_RECRRGACCTGDOCHDRFORCHGDOC Type: view BASIC Package: ODATA_INSPECT_ITEMS_CHNGLOG

Recurring Accounting Doc. Header for binding to Change Doc.

I_RecrrgAcctgDocHdrForChgDoc is a Basic CDS View that provides data about "Recurring Accounting Doc. Header for binding to Change Doc." in SAP S/4HANA. It reads from 2 data sources (bkpf, bkdf) and exposes 6 fields with key fields DatabaseTable, gjahr4endasChangeDocumentTableKey. Part of development package ODATA_INSPECT_ITEMS_CHNGLOG.

Data Sources (2)

SourceAliasJoin Type
bkpf AccDocHdr left_outer
bkdf AccDocRecurringHdr from

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName IRACCDOCHDR4CD view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
AccessControl.personalData.blocking #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Recurring Accounting Doc. Header for binding to Change Doc. view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #BASIC view
VDM.private false view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY DatabaseTable
KEY gjahr4endasChangeDocumentTableKey
CompanyCode bkdf bukrs Value
AccountingDocument bkdf belnr SD Document
FiscalYear bkdf gjahr Settlement Year
AccountingDocumentType bkpf blart Rep. rec. doc. type

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_RecrrgAcctgDocHdrForChgDoc.
-- 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_RecrrgAcctgDocHdrForChgDoc AS
SELECT
  cast('BKDF' as farp_database_table_name ) AS DatabaseTable,
  case length( AccDocRecurringHdr.bukrs ) when 4 then ( concat(AccDocRecurringHdr.mandt, concat(AccDocRecurringHdr.bukrs, concat(AccDocRecurringHdr.belnr, AccDocRecurringHdr.gjahr ) ) ) ) when 3 then ( concat(AccDocRecurringHdr.mandt, concat_with_space(AccDocRecurringHdr.bukrs, concat(AccDocRecurringHdr.belnr, AccDocRecurringHdr.gjahr ), 1 ) ) ) when 2 then ( concat(AccDocRecurringHdr.mandt, concat_with_space(AccDocRecurringHdr.bukrs, concat(AccDocRecurringHdr.belnr, AccDocRecurringHdr.gjahr ), 2 ) ) ) when 1 then ( concat(AccDocRecurringHdr.mandt, concat_with_space(AccDocRecurringHdr.bukrs, concat(AccDocRecurringHdr.belnr, AccDocRecurringHdr.gjahr ), 3 ) ) ) else ( concat(AccDocRecurringHdr.mandt, concat_with_space(AccDocRecurringHdr.bukrs, concat(AccDocRecurringHdr.belnr, AccDocRecurringHdr.gjahr ), 4 ) ) ) end as ChangeDocumentTableKey AS gjahr4endasChangeDocumentTableKey,
  AccDocRecurringHdr.bukrs AS CompanyCode,
  AccDocRecurringHdr.belnr AS AccountingDocument,
  AccDocRecurringHdr.gjahr AS FiscalYear,
  AccDocHdr.blart AS AccountingDocumentType
FROM bkdf AS AccDocRecurringHdr
LEFT OUTER JOIN bkpf AS AccDocHdr ON /* join condition not captured in parsed metadata */
;