P_MakeBankTransferTemplate
P_MakeBankTransferTemplate is a Basic CDS View in SAP S/4HANA. It reads from 2 data sources (fibl_rpcode_tdef, fibl_rpcode) and exposes 21 fields with key field RepetitiveCodeFlowID.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| fibl_rpcode_tdef | _rpcodetext | left_outer |
| fibl_rpcode | a | from |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PMBKWITHTMPL | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| VDM.viewType | #BASIC | view | |
| ObjectModel.representativeKey | RepetitiveCodeFlowID | view | |
| VDM.private | true | view |
Fields (21)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | RepetitiveCodeFlowID | |||
| RepetitiveCode | fibl_rpcode | rpcode | ||
| PayingCompanyCode | fibl_rpcode | bukrs | ||
| PayingHouseBank | fibl_rpcode | hbkid | ||
| PayingHouseBankAccount | fibl_rpcode | hktid | ||
| PayeeCompanyCode | fibl_rpcode | pbukr | ||
| HouseBank | ||||
| PayeeHouseBank | fibl_rpcode | partn | ||
| HouseBankAccount | ||||
| PayeeHouseBankAccount | fibl_rpcode | parta | ||
| PaymentMethod | ||||
| Currency | fibl_rpcode | waers | ||
| RepetitiveCodeReferenceText | fibl_rpcode_tdef | rp_text | ||
| BankCountry | fibl_rpcode | banks | ||
| PayingBankKey | fibl_rpcode | bankl | ||
| PayeeBankAccount | fibl_rpcode | bankn | ||
| RepetitiveCodeCategory | fibl_rpcode | ptype | ||
| CreationDate | fibl_rpcode | dcrea | ||
| CreationUserName | fibl_rpcode | ucrea | ||
| LastChangeDate | fibl_rpcode | drele | ||
| LastChangeByUserName | fibl_rpcode | urele |
@AbapCatalog.sqlViewName: 'PMBKWITHTMPL'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType.serviceQuality: #B
@ObjectModel.usageType.sizeCategory: #XL
@ObjectModel.usageType.dataClass: #MIXED
@Metadata.ignorePropagatedAnnotations: true
@VDM.viewType: #BASIC
@ObjectModel.representativeKey: 'RepetitiveCodeFlowID'
@VDM.private: true
define view P_MakeBankTransferTemplate as select from fibl_rpcode as a
left outer join fibl_rpcode_tdef as _rpcodetext on a.bukrs = _rpcodetext.bukrs
and a.hbkid = _rpcodetext.hbkid
and a.rpcode = _rpcodetext.rpcode
// association [1..1] to I_CompanyCode as _PayingCompanyCode on $projection.PayingCompanyCode = _PayingCompanyCode.CompanyCode
//
//
// association [1..1] to I_Housebank as _HouseBank on $projection.PayingHouseBank = _HouseBank.HouseBank
// and $projection.PayingCompanyCode = _HouseBank.CompanyCode
{
key concat(concat(a.rpcode,a.bukrs),a.hbkid) as RepetitiveCodeFlowID,
a.rpcode as RepetitiveCode,
// @ObjectModel.foreignKey.association: '_PayingCompanyCode'
a.bukrs as PayingCompanyCode,
// @ObjectModel.foreignKey.association: '_HouseBank'
// a.hbkid as HouseBank,
a.hbkid as PayingHouseBank,
// a.hktid as PayingBankAccID,
a.hktid as PayingHouseBankAccount,
a.pbukr as PayeeCompanyCode,
//housebank & payeehousebank indicates payeehousebank
cast(a.partn as fclm_bam_aclink_hbkid ) as HouseBank,
a.partn as PayeeHouseBank,
// a.parta as TargetBankAccID,
cast(a.parta as fclm_bam_aclink_hktid ) as HouseBankAccount,
a.parta as PayeeHouseBankAccount,
cast(a.zlsch as char1) as PaymentMethod,
a.waers as Currency,
_rpcodetext.rp_text as RepetitiveCodeReferenceText,
// a.banks as PayingBankCountry,
a.banks as BankCountry,
// a.bankl as PayingBankKey,
a.bankl as PayingBankKey,
// a.bankn as PayingBankAccNum,
a.bankn as PayeeBankAccount,
a.ptype as RepetitiveCodeCategory,
a.dcrea as CreationDate,
a.ucrea as CreationUserName,
a.drele as LastChangeDate,
a.urele as LastChangeByUserName
// _PayingCompanyCode,
// _HouseBank
}
where ptype = '03'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"FIBL_RPCODE",
"FIBL_RPCODE_TDEF"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA