P_ML_CoCode_Ledger_BCF
BCF per Ledger/CoCode for Balance Summary
P_ML_CoCode_Ledger_BCF is a Composite CDS View that provides data about "BCF per Ledger/CoCode for Balance Summary" in SAP S/4HANA. It reads from 1 data source (I_LedgerCompanyCodeCrcyRoles) and exposes 3 fields with key fields CompanyCode, Ledger. Part of development package FINS_ML_VDM.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_LedgerCompanyCodeCrcyRoles | f | from |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_CalendarDate | calendardate |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view |
Fields (3)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | I_LedgerCompanyCodeCrcyRoles | CompanyCode | |
| KEY | Ledger | I_LedgerCompanyCodeCrcyRoles | Ledger | |
| FiscalYearVariant | I_LedgerCompanyCodeCrcyRoles | FiscalYearVariant |
@AbapCatalog.viewEnhancementCategory: [#NONE]
@AccessControl.authorizationCheck: #NOT_REQUIRED
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.usageType:{
serviceQuality: #X,
sizeCategory: #S,
dataClass: #MIXED
}
@VDM: {
viewType: #COMPOSITE,
private:true }
define view entity P_ML_CoCode_Ledger_BCF
with parameters
P_CalendarDate : calendardate
as select from I_LedgerCompanyCodeCrcyRoles as f
left outer to one join I_Distinct_Postingdate as dp on dp.FiscalYearVariant = f.FiscalYearVariant
and dp.CalendarDate = $parameters.P_CalendarDate
and dp.IsSpecialPeriod = ' '
left outer to one join I_LastBalanceCarryForward as bcf on bcf.CompanyCode = f.CompanyCode
and bcf.Ledger = f.Ledger
{
key f.CompanyCode,
key f.Ledger,
f.FiscalYearVariant,
case
when bcf.BalanceCarryforwardToYear is null
then '0000'
when dp.FiscalYear is null
then bcf.BalanceCarryforwardToYear
when bcf.BalanceCarryforwardToYear > dp.FiscalYear
then dp.FiscalYear
else bcf.BalanceCarryforwardToYear
end as FromFiscalYear
}
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