C_RO_SAFTProductC
Product Type for RO SAFT - Cube
C_RO_SAFTProductC is a Consumption CDS View (Cube) that provides data about "Product Type for RO SAFT - Cube" in SAP S/4HANA. It reads from 2 data sources (I_StRpJournalEntryHeaderLog, P_RO_SAFTJournalEntryItemExc) and exposes 16 fields with key fields StatryRptCategory, StatryRptgEntity, StatryRptRunID, Product.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_StRpJournalEntryHeaderLog | Log | inner |
| P_RO_SAFTJournalEntryItemExc | P_RO_SAFTJournalEntryItemExc | inner |
Parameters (3)
| Name | Type | Default |
|---|---|---|
| P_FromPostingDate | figen_rep_date_from | |
| P_ToPostingDate | figen_rep_date_to | |
| P_AlternativeGLAccountIsUsed | saft_ro_alt_gl_account_flag |
Annotations (14)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CROSAFTPRODTYPEC | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| Analytics.dataCategory | #CUBE | view | |
| Analytics.internalName | #LOCAL | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Product Type for RO SAFT - Cube | view | |
| Metadata.allowExtensions | true | view |
Fields (16)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | StatryRptCategory | I_StRpJournalEntryHeaderLog | StatryRptCategory | |
| KEY | StatryRptgEntity | I_StRpJournalEntryHeaderLog | StatryRptgEntity | |
| KEY | StatryRptRunID | I_StRpJournalEntryHeaderLog | StatryRptRunID | |
| KEY | Product | Product | Product | |
| MaterialType | Product | MaterialType | ||
| ProductGroup | Product | ProductGroup | ||
| ProductName | Product | ProductName | ||
| ProductStandardID | Product | ProductStandardID | ||
| ValuationClass | Product | ValuationClass | ||
| BaseUnit | Product | BaseUnit | ||
| SourceUnitOfMeasureFactor | Product | SourceUnitOfMeasureFactor | ||
| AlternativeUnit | Product | AlternativeUnit | ||
| TargetUnitOfMeasure | UomAltUnit | SourceUnitOfMeasureFactor | ||
| ConversionFactor | Product | ConversionFactor | ||
| RO_SAFTGoodsService | Product | RO_SAFTGoodsService | ||
| ItemIsReportingRelevant |
@AbapCatalog.sqlViewName: 'CROSAFTPRODTYPEC'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@VDM.viewType: #CONSUMPTION
@Analytics: { dataCategory: #CUBE }
@Analytics.internalName:#LOCAL
@ObjectModel.usageType.serviceQuality: #X
@ObjectModel.usageType.sizeCategory: #XL
@ObjectModel.usageType.dataClass: #MIXED
@ClientHandling.algorithm: #SESSION_VARIABLE
@AccessControl.personalData.blocking: #NOT_REQUIRED
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Product Type for RO SAFT - Cube'
@Metadata.allowExtensions: true
define view C_RO_SAFTProductC
with parameters
P_FromPostingDate : figen_rep_date_from,
P_ToPostingDate : figen_rep_date_to,
P_AlternativeGLAccountIsUsed : saft_ro_alt_gl_account_flag
as select distinct from I_RO_SAFTProduct ( P_FromPostingDate: $parameters.P_FromPostingDate,
P_ToPostingDate : $parameters.P_ToPostingDate ) as Product
inner join P_RO_SAFTJournalEntryItemExc(P_AlternativeGLAccountIsUsed: $parameters.P_AlternativeGLAccountIsUsed) as JournalEntry on JournalEntry.Product = Product.Product
and JournalEntry.Plant = Product.Plant
inner join I_StRpJournalEntryHeaderLog as Log on Log.AccountingDocument = JournalEntry.AccountingDocument
and Log.CompanyCode = JournalEntry.CompanyCode
and Log.FiscalYear = JournalEntry.FiscalYear
left outer to one join I_RO_SAFTUnitOfMeasureMap as UomAltUnit on Product.AlternativeUnit = UomAltUnit.SourceUnitOfMeasure
{
key Log.StatryRptCategory,
key Log.StatryRptgEntity,
key Log.StatryRptRunID,
key Product.Product,
Product.MaterialType,
Product.ProductGroup,
Product.ProductName,
case
when Product.CommodityCodeText is not initial
then left(replace(Product.CommodityCodeText, '.', ''), 8)
when Product.CommodityCodeText is initial and Product.RO_SAFTGoodsService = '02'
then '99999999'
else '0'
end as CommodityCodeText,
// Product.CommodityCodeText,
Product.ProductStandardID,
Product.ValuationClass,
//Base Unit
Product.BaseUnit,
Product.SourceUnitOfMeasureFactor,
// Alternative Unit
Product.AlternativeUnit,
UomAltUnit.SourceUnitOfMeasureFactor as TargetUnitOfMeasure,
Product.ConversionFactor,
Product.RO_SAFTGoodsService,
'X' as ItemIsReportingRelevant
// case $session.system_language
// when '4' then '4'
// else '-'
// end as Language
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_RO_SAFTPRODUCT",
"I_RO_SAFTUNITOFMEASUREMAP",
"I_STRPJOURNALENTRYHEADERLOG",
"P_RO_SAFTJOURNALENTRYITEMEXC"
],
"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