C_RO_SAFTReportedItemsLog
GL Entry for Reported Items Log
C_RO_SAFTReportedItemsLog is a Consumption CDS View that provides data about "GL Entry for Reported Items Log" in SAP S/4HANA. It reads from 3 data sources (I_RO_SAFTDocumentTypeMap, I_RO_SAFTPaymentMapping, I_RO_SAFTPaymentMapping) and exposes 28 fields with key fields StatryRptgEntity, StatryRptCategory, StatryRptRunID, SourceLedger, CompanyCode. Part of development package GLO_FIN_IS_SAFT_RO.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| I_RO_SAFTDocumentTypeMap | DocType | inner |
| I_RO_SAFTPaymentMapping | PayMap | inner |
| I_RO_SAFTPaymentMapping | PaymentDocType | inner |
Parameters (4)
| Name | Type | Default |
|---|---|---|
| P_StatryRptgEntity | srf_reporting_entity | |
| P_StatryRptCategory | srf_rep_cat_id | |
| P_StatryRptRunID | srf_report_run_id | |
| P_AlternativeGLAccountIsUsed | saft_ro_alt_gl_account_flag |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CROSAFRPTILOG | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | GL Entry for Reported Items Log | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view |
Fields (28)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | StatryRptgEntity | |||
| KEY | StatryRptCategory | |||
| KEY | StatryRptRunID | |||
| KEY | SourceLedger | Document | SourceLedger | |
| KEY | CompanyCode | Document | CompanyCode | |
| KEY | FiscalYear | Document | FiscalYear | |
| KEY | AccountingDocument | Document | AccountingDocument | |
| KEY | Ledger | Document | Ledger | |
| PostingDate | Document | PostingDate | ||
| P_StatryRptgEntityasStatryRptgEntity | ||||
| KEY | StatryRptCategory | |||
| KEY | StatryRptRunID | |||
| KEY | SourceLedger | Document | SourceLedger | |
| KEY | CompanyCode | Document | CompanyCode | |
| KEY | FiscalYear | Document | FiscalYear | |
| KEY | AccountingDocument | Document | AccountingDocument | |
| KEY | Ledger | Document | Ledger | |
| PostingDate | Document | PostingDate | ||
| P_StatryRptgEntityasStatryRptgEntity | ||||
| KEY | StatryRptCategory | |||
| KEY | StatryRptRunID | |||
| KEY | SourceLedger | Document | SourceLedger | |
| KEY | CompanyCode | Document | CompanyCode | |
| KEY | FiscalYear | Document | FiscalYear | |
| KEY | AccountingDocument | Document | AccountingDocument | |
| KEY | Ledger | Document | Ledger | |
| PostingDate | Document | PostingDate | ||
| ReferenceDocumentType | Document | ReferenceDocumentType |
@AbapCatalog.sqlViewName:'CROSAFRPTILOG'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey:true
@VDM.viewType: #CONSUMPTION
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'GL Entry for Reported Items Log'
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType.sizeCategory: #L
@ObjectModel.usageType.serviceQuality: #D
@ObjectModel.usageType.dataClass: #TRANSACTIONAL
@AccessControl.personalData.blocking: #NOT_REQUIRED
define view C_RO_SAFTReportedItemsLog
with parameters
P_StatryRptgEntity : srf_reporting_entity,
P_StatryRptCategory : srf_rep_cat_id,
P_StatryRptRunID : srf_report_run_id,
P_AlternativeGLAccountIsUsed : saft_ro_alt_gl_account_flag
as select distinct from P_RO_SAFTJournalEntryItemExc(P_AlternativeGLAccountIsUsed: $parameters.P_AlternativeGLAccountIsUsed) as Document
inner join I_RO_SAFTDocumentTypeMap as DocType on DocType.CompanyCode = Document.CompanyCode
and DocType.AccountingDocumentType = Document.AccountingDocumentType
//exclusion by document status
left outer to one join I_RO_SAFTDocStatusForExclusion as StatusExc on Document.AccountingDocumentCategory = StatusExc.AccountingDocumentCategory
and Document.CompanyCode = StatusExc.CompanyCode
{
key $parameters.P_StatryRptgEntity as StatryRptgEntity,
key $parameters.P_StatryRptCategory as StatryRptCategory,
key $parameters.P_StatryRptRunID as StatryRptRunID,
key Document.SourceLedger,
key Document.CompanyCode,
key Document.FiscalYear,
key Document.AccountingDocument,
key Document.Ledger,
Document.PostingDate,
Document.ReferenceDocumentType
}
where
StatusExc.CompanyCode is null
union select distinct from P_RO_SAFTJournalEntryItemExc(P_AlternativeGLAccountIsUsed: $parameters.P_AlternativeGLAccountIsUsed) as Document
inner join I_RO_SAFTPaymentMapping as PaymentDocType on PaymentDocType.CompanyCode = Document.CompanyCode
and PaymentDocType.AccountingDocumentType = Document.AccountingDocumentType
//exclusion by document status
left outer to one join I_RO_SAFTDocStatusForExclusion as StatusExc on Document.AccountingDocumentCategory = StatusExc.AccountingDocumentCategory
and Document.CompanyCode = StatusExc.CompanyCode
{
key $parameters.P_StatryRptgEntity as StatryRptgEntity,
key $parameters.P_StatryRptCategory as StatryRptCategory,
key $parameters.P_StatryRptRunID as StatryRptRunID,
key Document.SourceLedger,
key Document.CompanyCode,
key Document.FiscalYear,
key Document.AccountingDocument,
key Document.Ledger,
Document.PostingDate,
Document.ReferenceDocumentType
}
where
StatusExc.CompanyCode is null
and PaymentDocType.GLAccount = ''
union select distinct from P_RO_SAFTJournalEntryItemExc(P_AlternativeGLAccountIsUsed: $parameters.P_AlternativeGLAccountIsUsed) as Document
inner join I_RO_SAFTPaymentMapping as PayMap on PayMap.CompanyCode = Document.CompanyCode
and PayMap.AccountingDocumentType = Document.AccountingDocumentType
and PayMap.GLAccount = Document.ActiveGLAccount
//exclusion by document status
left outer to one join I_RO_SAFTDocStatusForExclusion as StatusExc on Document.AccountingDocumentCategory = StatusExc.AccountingDocumentCategory
and Document.CompanyCode = StatusExc.CompanyCode
{
key $parameters.P_StatryRptgEntity as StatryRptgEntity,
key $parameters.P_StatryRptCategory as StatryRptCategory,
key $parameters.P_StatryRptRunID as StatryRptRunID,
key Document.SourceLedger,
key Document.CompanyCode,
key Document.FiscalYear,
key Document.AccountingDocument,
key Document.Ledger,
Document.PostingDate,
Document.ReferenceDocumentType
}
where
StatusExc.CompanyCode is null
and PayMap.GLAccount <> ''
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