C_StRpWhldgTaxItmForClearing

DDL: C_STRPWHLDGTAXITMFORCLEARING SQL: CSRWHLDGTXCLR Type: view CONSUMPTION

Withholding Tax Open Line Items with clearing run status

C_StRpWhldgTaxItmForClearing is a Consumption CDS View that provides data about "Withholding Tax Open Line Items with clearing run status" in SAP S/4HANA. It reads from 2 data sources (I_GLAccountLineItem, I_StRpJournalEntryLog) and exposes 26 fields with key fields CompanyCode, AccountingDocument, AccountingDocumentItem, FiscalYear, StatryRptgEntity.

Data Sources (2)

SourceAliasJoin Type
I_GLAccountLineItem I_GLAccountLineItem inner
I_StRpJournalEntryLog jourdocitm from

Parameters (2)

NameTypeDefault
P_StatryRptgEntity srf_reporting_entity
P_StatryRptCategory srf_rep_cat_id

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName CSRWHLDGTXCLR view
AbapCatalog.compiler.compareFilter true view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #CONSUMPTION view
AccessControl.authorizationCheck #MANDATORY view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.dataClass #MIXED view
AbapCatalog.preserveKey true view
AccessControl.personalData.blocking #NOT_REQUIRED view
EndUserText.label Withholding Tax Open Line Items with clearing run status view

Fields (26)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode I_StRpJournalEntryLog CompanyCode
KEY AccountingDocument I_StRpJournalEntryLog AccountingDocument
KEY AccountingDocumentItem I_GLAccountLineItem AccountingDocumentItem
KEY FiscalYear I_StRpJournalEntryLog FiscalYear
KEY StatryRptgEntity I_StRpJournalEntryLog StatryRptgEntity
KEY StatryRptCategory I_StRpJournalEntryLog StatryRptCategory
KEY StatryRptRunID I_StRpJournalEntryLog StatryRptRunID
GLAccount I_GLAccountLineItem GLAccount
CompanyCodeCurrency I_GLAccountLineItem CompanyCodeCurrency
AmountInCompanyCodeCurrency I_GLAccountLineItem AmountInCompanyCodeCurrency
PostingKey
FinancialAccountType I_GLAccountLineItem FinancialAccountType
DebitCreditCode I_GLAccountLineItem DebitCreditCode
DocumentDate I_GLAccountLineItem DocumentDate
PostingDate I_GLAccountLineItem PostingDate
FiscalPeriod I_GLAccountLineItem FiscalPeriod
AccountingDocumentType I_GLAccountLineItem AccountingDocumentType
FiscalYearVariant I_GLAccountLineItem FiscalYearVariant
ClearingJournalEntry I_GLAccountLineItem ClearingJournalEntry
AccountingDocumentCategory I_GLAccountLineItem AccountingDocumentCategory
ClearingDate I_GLAccountLineItem ClearingDate
Ledger I_GLAccountLineItem Ledger
IsOpenItemManaged I_GLAccountLineItem IsOpenItemManaged
IsReversed I_GLAccountLineItem IsReversed
IsReversal I_GLAccountLineItem IsReversal
TransactionTypeDetermination I_GLAccountLineItem TransactionTypeDetermination
@AbapCatalog.sqlViewName: 'CSRWHLDGTXCLR'
@AbapCatalog.compiler.compareFilter: true
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM.viewType: #CONSUMPTION
@AccessControl.authorizationCheck: #MANDATORY
@ObjectModel.usageType.sizeCategory: #L
@ObjectModel.usageType.serviceQuality: #D
@ObjectModel.usageType.dataClass: #MIXED
@AbapCatalog.preserveKey: true
@AccessControl.personalData.blocking: #NOT_REQUIRED
@EndUserText.label: 'Withholding Tax Open Line Items with clearing run status'
define view C_StRpWhldgTaxItmForClearing 
with parameters
    P_StatryRptgEntity:  srf_reporting_entity,
    P_StatryRptCategory: srf_rep_cat_id
as select from I_StRpJournalEntryLog as jourdocitm
                                      
inner join I_GLAccountLineItem on  I_GLAccountLineItem.CompanyCode = jourdocitm.CompanyCode
                               and I_GLAccountLineItem.AccountingDocument = jourdocitm.AccountingDocument
                               and I_GLAccountLineItem.FiscalYear = jourdocitm.FiscalYear                                      
{
    key jourdocitm.CompanyCode,
    key jourdocitm.AccountingDocument,
    key I_GLAccountLineItem.AccountingDocumentItem,
    key jourdocitm.FiscalYear,
    key jourdocitm.StatryRptgEntity,
    key jourdocitm.StatryRptCategory,
    key jourdocitm.StatryRptRunID,
        I_GLAccountLineItem.GLAccount,
        I_GLAccountLineItem.CompanyCodeCurrency,
     @DefaultAggregation: #SUM
     @Semantics: { amount : {currencyCode: 'CompanyCodeCurrency'} }    
        I_GLAccountLineItem.AmountInCompanyCodeCurrency,
        I_GLAccountLineItem._PostingKey.PostingKey,
        I_GLAccountLineItem.FinancialAccountType,
        I_GLAccountLineItem.DebitCreditCode,
        I_GLAccountLineItem.DocumentDate,
        I_GLAccountLineItem.PostingDate,
        I_GLAccountLineItem.FiscalPeriod,
        I_GLAccountLineItem.AccountingDocumentType,
        I_GLAccountLineItem.FiscalYearVariant,
        I_GLAccountLineItem.ClearingJournalEntry,
        I_GLAccountLineItem.AccountingDocumentCategory,
        I_GLAccountLineItem.ClearingDate,
        I_GLAccountLineItem.Ledger,
        I_GLAccountLineItem.IsOpenItemManaged,
        I_GLAccountLineItem.IsReversed,
        I_GLAccountLineItem.IsReversal,        
        I_GLAccountLineItem.TransactionTypeDetermination
        
}
where   jourdocitm.StatryRptgEntity = $parameters.P_StatryRptgEntity
    and    jourdocitm.StatryRptCategory = $parameters.P_StatryRptCategory
    and I_GLAccountLineItem.FinancialAccountType = 'S'
    and I_GLAccountLineItem.ClearingJournalEntry = ''
    and I_GLAccountLineItem.AccountingDocumentCategory <> 'D'
    and I_GLAccountLineItem.AccountingDocumentCategory <> 'M'
    and I_GLAccountLineItem.AccountingDocumentCategory <> 'O'
    and I_GLAccountLineItem.AccountingDocumentCategory <> 'J'
    and I_GLAccountLineItem.ClearingDate = '00000000'
    and I_GLAccountLineItem.Ledger = '0L'
    and I_GLAccountLineItem.IsOpenItemManaged = 'X'
    and I_GLAccountLineItem.IsReversed = ' '
    and I_GLAccountLineItem.IsReversal = ' '
    and ( I_GLAccountLineItem.TransactionTypeDetermination = 'WIT' )                 

/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_GLACCOUNTLINEITEM",
"I_POSTINGKEY",
"I_STRPJOURNALENTRYLOG"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/