C_AR_StRpPurFrgnSrvcCube

DDL: C_AR_STRPPURFRGNSRVCCUBE SQL: CARPURFRGNSRITMC Type: view CONSUMPTION

Cube View For Argentina Foreign Service

C_AR_StRpPurFrgnSrvcCube is a Consumption CDS View (Cube) that provides data about "Cube View For Argentina Foreign Service" in SAP S/4HANA. It reads from 3 data sources (I_Housebank, I_GLAccountInCompanyCode, I_AR_StRpPurFrgnSrvcItem) and exposes 49 fields with key fields CompanyCode, AccountingDocument, FiscalYear, AccountingDocumentItem, TaxCode.

Data Sources (3)

SourceAliasJoin Type
I_Housebank BankCuitDet inner
I_GLAccountInCompanyCode BankGlDet left_outer
I_AR_StRpPurFrgnSrvcItem I_AR_StRpPurFrgnSrvcItem from

Parameters (1)

NameTypeDefault
P_AccrualCalculationMethod fiar_vat_compcredit

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName CARPURFRGNSRITMC view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #CONSUMPTION view
Analytics.dataCategory #CUBE view
AccessControl.personalData.blocking #BLOCKED_DATA_INCLUDED view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Cube View For Argentina Foreign Service view
Metadata.allowExtensions true view

Fields (49)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode I_AR_StRpPurFrgnSrvcItem CompanyCode
KEY AccountingDocument AccountingDocument
KEY FiscalYear FiscalYear
KEY AccountingDocumentItem AccountingDocumentItem
KEY TaxCode TaxCode
KEY TransactionTypeDetermination TransactionTypeDetermination
PostingDate PostingDate
ReportingDate ReportingDate
StRpTaxClassification StRpTaxClassification
DocumentDate DocumentDate
AR_OfficialDocumentNumber AR_OfficialDocumentNumber
DocumentReferenceID DocumentReferenceID
ExchangeRate ExchangeRate
TaxNumber1 TaxNumber1
IsRespForImportDeclaration IsRespForImportDeclaration
TaxNumberType TaxNumberType
AlternativeCurrencyKey AlternativeCurrencyKey
BusinessPartnerCountry BusinessPartnerCountry
CountryFreeText CountryFreeText
NmbrOfVATRates NmbrOfVATRates
AR_OfficialDocumentType AR_OfficialDocumentType
DocumentCurrency DocumentCurrency
AR_CUIT AR_CUIT
HierarchyNodeText HierarchyNodeText
AR_VATRateCode AR_VATRateCode
TaxBaseAmountInTransCrcy TaxBaseAmountInTransCrcy
TaxBaseAmountInCountryCrcy TaxBaseAmountInCountryCrcy
IsValid IsValid
ItemIsActivated ItemIsActivated
TaxBaseAmountInCoCodeCrcy TaxBaseAmountInCoCodeCrcy
BusinessPartnerName BusinessPartnerName
PurchaseImportForm PurchaseImportForm
ClearingAccountingDocument ClearingAccountingDocument
TaxReportingDate TaxReportingDate
GLAccount I_AR_StRpPurFrgnSrvcItem GLAccount
DocumentTypeCategory DocumentTypeCategory
AccountingDocumentTypeName AccountingDocumentTypeName
BankIdentification I_Housebank TaxID1
CompanyCodeCurrency CompanyCodeCurrency
TaxAmount TaxAmount
TaxAmountInRptgCrcy TaxAmountInRptgCrcy
StatryRptCategory _ReportedItemsLog StatryRptCategory
StatryRptgEntity _ReportedItemsLog StatryRptgEntity
StatryRptRunID _ReportedItemsLog StatryRptRunID
_AccountingDocument _AccountingDocument
_ReceivablesPayablesItem _ReceivablesPayablesItem
_ReportedItemsLog _ReportedItemsLog
GLBusinessTransactionType GLBusinessTransactionType
ResponsibleType ResponsibleType
@AbapCatalog.sqlViewName: 'CARPURFRGNSRITMC'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@ObjectModel.usageType.sizeCategory: #XL
@ObjectModel.usageType.serviceQuality: #X
@ObjectModel.usageType.dataClass: #MIXED
@VDM.viewType: #CONSUMPTION
@Analytics.dataCategory: #CUBE
@AccessControl.personalData.blocking:#BLOCKED_DATA_INCLUDED
@ClientHandling.algorithm: #SESSION_VARIABLE
@EndUserText.label: 'Cube View For Argentina Foreign Service'
@Metadata.allowExtensions:true

define view C_AR_StRpPurFrgnSrvcCube
  with parameters
    P_AccrualCalculationMethod :fiar_vat_compcredit
  as select from    I_AR_StRpPurFrgnSrvcItem

    left outer join I_GLAccountInCompanyCode as BankGlDet   on  I_AR_StRpPurFrgnSrvcItem.CompanyCode = BankGlDet.CompanyCode
                                                            and I_AR_StRpPurFrgnSrvcItem.GLAccount   = BankGlDet.GLAccount

    inner join      I_Housebank              as BankCuitDet on  BankGlDet.CompanyCode = BankCuitDet.CompanyCode
                                                            and BankGlDet.HouseBank   = BankCuitDet.HouseBank

{

      //I_AR_StRpPurFrgnSrvcItem

  key I_AR_StRpPurFrgnSrvcItem.CompanyCode,
  key AccountingDocument,
  key FiscalYear,
  key AccountingDocumentItem,
  key TaxCode,
  key TransactionTypeDetermination,
      PostingDate,
      ReportingDate,
      StRpTaxClassification,
      DocumentDate,
      AR_OfficialDocumentNumber,
      DocumentReferenceID,
      ExchangeRate,
      TaxNumber1,
      IsRespForImportDeclaration,
      TaxNumberType,
      AlternativeCurrencyKey,
      BusinessPartnerCountry,
      CountryFreeText,
      NmbrOfVATRates,
      AR_OfficialDocumentType,
      DocumentCurrency,
      AR_CUIT,
      HierarchyNodeText,
      AR_VATRateCode,
      TaxBaseAmountInTransCrcy,
      TaxBaseAmountInCountryCrcy,
      IsValid,
      ItemIsActivated,
      TaxBaseAmountInCoCodeCrcy,
      BusinessPartnerName,
      PurchaseImportForm,
      ClearingAccountingDocument,
      TaxReportingDate,
      I_AR_StRpPurFrgnSrvcItem.GLAccount,
      DocumentTypeCategory,
      AccountingDocumentTypeName,
      BankCuitDet.TaxID1                                                        as  BankIdentification,
      CompanyCodeCurrency,
      TaxAmount,
      TaxAmountInRptgCrcy,
      @DefaultAggregation:#SUM
      @Semantics.amount.currencyCode: 'CompanyCodeCurrency'
      case
      when AR_PrintCharacter = 'B' or AR_PrintCharacter = 'C'
      then 0
      else
      case  $parameters.P_AccrualCalculationMethod
      when 'G'
      then
      case
      when StRpTaxClassification = 'TX' or StRpTaxClassification = 'VS'
      then
      I_AR_StRpPurFrgnSrvcItem.TaxAmountInRptgCrcy - TaxExemptionAmount
      end
      when 'P'
      then 0
      when 'D'
      then I_AR_StRpPurFrgnSrvcItem.TaxAmountInRptgCrcy
      end
      end                                                                       as  CalculatedTxAmtInCoCodeCrcy,
      _ReportedItemsLog.StatryRptCategory,
      _ReportedItemsLog.StatryRptgEntity,
      _ReportedItemsLog.StatryRptRunID,
      /* Associations */
      //I_AR_StRpPurFrgnSrvcItem

      _AccountingDocument,
      _ReceivablesPayablesItem,
      _ReportedItemsLog,
     GLBusinessTransactionType,
      ResponsibleType
      
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_AR_STRPPURFRGNSRVCITEM",
"I_GLACCOUNTINCOMPANYCODE",
"I_HOUSEBANK",
"I_STRPJOURNALENTRYLOG"
],
"ASSOCIATED":
[
"I_ACCOUNTINGDOCUMENT",
"I_OPERATIONALACCTGDOCITEM",
"I_STRPJOURNALENTRYLOG"
],
"BASE":
[
"I_AR_STRPPURFRGNSRVCITEM"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/