P_BankAccount_All

DDL: P_BANKACCOUNT_ALL SQL: PBANKACCOUNTALL Type: view BASIC

P_BankAccount_All is a Basic CDS View in SAP S/4HANA. It reads from 1 data source (fclm_bam_amd) and exposes 6 fields with key field BankAccountInternalID. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
fclm_bam_amd bam from

Associations (1)

CardinalityTargetAliasCondition
[1..1] I_BankAccount _BankAccount $projection.BankAccountInternalID = _BankAccount.BankAccountInternalID -- and $projection.CompanyCode = _BankAccount.CompanyCode

Annotations (4)

NameValueLevelField
VDM.private true view
VDM.viewType #BASIC view
AccessControl.authorizationCheck #NOT_REQUIRED view
AbapCatalog.sqlViewName PBANKACCOUNTALL view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY BankAccountInternalID fclm_bam_amd acc_id
CompanyCode fclm_bam_amd bukrs
BankAccountCurrency
ValidFrom
ValidTo
_BankAccount _BankAccount
@VDM.private: true
@VDM.viewType: #BASIC
@AccessControl.authorizationCheck: #NOT_REQUIRED
@AbapCatalog.sqlViewName: 'PBANKACCOUNTALL' //must start with "P"

define view P_BankAccount_All //must start with "P_"; same as DDL source name in upper-camelcase notation

as select from fclm_bam_amd as bam
association [1..1] to I_BankAccount as _BankAccount on $projection.BankAccountInternalID = _BankAccount.BankAccountInternalID 
--                                                    and $projection.CompanyCode = _BankAccount.CompanyCode                           
{
    
    key bam.acc_id as BankAccountInternalID, 
    bam.bukrs as CompanyCode,
--    _BankAccount._BankAccountCurrency.BankAccountCurrency,
--    bam.valid_from as ValidFrom,
--    bam.valid_to as ValidTo,
    _BankAccount
}
where (bam.status = '02' or bam.status = '09' or bam.status = '10' or bam.status = '11')      
      and bam.revision = '0000'
               
 /*+[internal] {
"BASEINFO":
{
"FROM":
[
"FCLM_BAM_AMD"
],
"ASSOCIATED":
[
"I_BANKACCOUNT"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/