P_HouseBankAccountDesc

DDL: P_HOUSEBANKACCOUNTDESC SQL: PHBACDESC Type: view BASIC

P_HouseBankAccountDesc is a Basic CDS View in SAP S/4HANA. It reads from 3 data sources (fclm_bam_amd, fclm_bam_amd_t, fclm_bam_aclink2) and exposes 6 fields.

Data Sources (3)

SourceAliasJoin Type
fclm_bam_amd acc inner
fclm_bam_amd_t acctxt inner
fclm_bam_aclink2 hba from

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PHBACDESC view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #BASIC view
VDM.private true view
ObjectModel.usageType.dataClass #CUSTOMIZING view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #S view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (6)

KeyFieldSource TableSource FieldDescription
mandt fclm_bam_aclink2 mandt
spras fclm_bam_amd_t langu
bukrs fclm_bam_aclink2 bukrs
hbkid fclm_bam_aclink2 hbkid
hktid fclm_bam_aclink2 hktid
text1 fclm_bam_amd_t description
@AbapCatalog.sqlViewName: 'PHBACDESC'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #NOT_REQUIRED

@VDM.viewType: #BASIC
@VDM.private: true

@ObjectModel.usageType.dataClass: #CUSTOMIZING
@ObjectModel.usageType.serviceQuality: #A
@ObjectModel.usageType.sizeCategory: #S

@ClientHandling.algorithm: #SESSION_VARIABLE

define view P_HouseBankAccountDesc
  as select from fclm_bam_aclink2 as hba
    inner join   fclm_bam_amd_t   as acctxt on acctxt.acc_id = hba.acc_id and acctxt.revision = '0000'
    inner join   fclm_bam_amd     as acc   on acc.acc_id = hba.acc_id and acc.revision = '0000'
{
  hba.mandt,
  acctxt.langu                           as spras,
  hba.bukrs,
  hba.hbkid,
  hba.hktid,
  acctxt.description as text1
}
where
       hba.herku           =  ''
  and  acctxt.deleted_flag =  ''
  and  hba.hbkid           <> ''
  and  hba.hktid           <> ''
  and(
       acc.status       =  '02' //Active

    or acc.status       =  '09' //Marked for Closing

    or acc.status       =  '10' //To Be Closed

    or acc.status       =  '11' //Closed at Bank

    or acc.status       =  '15' //Closed in System

  )                                //Closed    

  and hba.revision = '0000'
  and hba.is_reused != 'X'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"FCLM_BAM_ACLINK2",
"FCLM_BAM_AMD",
"FCLM_BAM_AMD_T"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/