C_BankAccountRevisionSituation

DDL: C_BANKACCOUNTREVISIONSITUATION SQL: CBANKACCREVSIT Type: view CONSUMPTION

Situation Handling for Revision

C_BankAccountRevisionSituation is a Consumption CDS View that provides data about "Situation Handling for Revision" in SAP S/4HANA. It reads from 1 data source (I_BankAccountTP) and exposes 9 fields with key fields BankAccountInternalID, BankAccountRevision.

Data Sources (1)

SourceAliasJoin Type
I_BankAccountTP I_BankAccountTP from

Annotations (8)

NameValueLevelField
AbapCatalog.sqlViewName CBANKACCREVSIT view
VDM.viewType #CONSUMPTION view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Situation Handling for Revision view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view

Fields (9)

KeyFieldSource TableSource FieldDescription
KEY BankAccountInternalID BankAccountInternalID Technical ID
KEY BankAccountRevision BankAccountRevision Revision Number
BankAccountUniqueID
BankAccountNumber BankAccount Bank acct
BankAccountRevisionStatus BankAccountRevisionStatus
system_dateasdatsasOffsetDays
BankAccountType BankAccountType Account Type
CompanyCode CompanyCode Receiver Company Code
_BankAccountType _BankAccountType

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 C_BankAccountRevisionSituation.
-- 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: CBANKACCREVSIT

CREATE VIEW C_BankAccountRevisionSituation AS
SELECT
  BankAccountInternalID,
  BankAccountRevision,
  concat( BankAccountInternalID, concat('/', BankAccountRevision) ) AS BankAccountUniqueID,
  BankAccount AS BankAccountNumber,
  BankAccountRevisionStatus,
  DATS_DAYS_BETWEEN( cast ( case when LastChangeDate is not null and BankAccountRevision <> '0000' then LastChangeDate else CreationDate end as creationdate), cast( $session.system_date as dats) ) as OffsetDays AS system_dateasdatsasOffsetDays,
  BankAccountType,
  CompanyCode
FROM I_BankAccountTP
;