P_ContrAcctgGLItem

DDL: P_CONTRACCTGGLITEM Type: view_entity COMPOSITE Package: FKK_ID_NO_SAFT

FICA: GL Line Items

P_ContrAcctgGLItem is a Composite CDS View that provides data about "FICA: GL Line Items" in SAP S/4HANA. It reads from 2 data sources (I_CADocumentGLItem, I_CADocument) and exposes 33 fields with key fields CADocumentNumber, CAGLItemNumber. Part of development package FKK_ID_NO_SAFT.

Data Sources (2)

SourceAliasJoin Type
I_CADocumentGLItem fica_glitems inner
I_CADocument ficadoc from

Parameters (3)

NameTypeDefault
P_FromPostingDate fis_budat_from
P_ToPostingDate fis_budat_to
P_CompanyCode bukrs

Annotations (8)

NameValueLevelField
VDM.private true view
VDM.viewType #COMPOSITE view
AccessControl.personalData.blocking #BLOCKED_DATA_INCLUDED view
AccessControl.authorizationCheck #NOT_REQUIRED view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MIXED view

Fields (33)

KeyFieldSource TableSource FieldDescription
KEY CADocumentNumber I_CADocumentGLItem CADocumentNumber
KEY CAGLItemNumber I_CADocumentGLItem CAGLItemNumber
CARepetitionItemNumber
CompanyCode I_CADocumentGLItem CompanyCode
FiscalYearVariant
CASubItemNumber
CABPItemNumber
CreatedByUser I_CADocument CreatedByUser
CreationDate I_CADocument CreationDate
CreationTime I_CADocument CreationTime
CAApplicationArea I_CADocument CAApplicationArea
DocumentDate I_CADocument DocumentDate
LastChangeDate I_CADocument LastChangeDate
CAReferenceDocument I_CADocument CAReferenceDocument
CAClassificationKey I_CADocument CAClassificationKey
CAPostingDate I_CADocument CAPostingDate
ChartOfAccounts I_CADocumentGLItem ChartOfAccounts
GLAccount I_CADocumentGLItem GLAccount
TaxCode I_CADocumentGLItem TaxCode
TaxCountry I_CADocumentGLItem TaxCountry
CATaxRate I_CADocumentGLItem CATaxRate
CATransactionKeyAccountDetn I_CADocumentGLItem CATransactionKeyAccountDetn
CostCenter I_CADocumentGLItem CostCenter
CADocumentType I_CADocument CADocumentType
CADocumentTypeNameasCADocumentTypeName
CAAmountInTransactionCurrency I_CADocumentGLItem CAAmountInTransactionCurrency
CATaxBaseAmount I_CADocumentGLItem CATaxBaseAmount
TransactionCurrency I_CADocumentGLItem TransactionCurrency
CompanyCodeCurrency I_CADocumentGLItem Currency
CAAmountInLocalCurrency I_CADocumentGLItem CAAmountInLocalCurrency
CATaxBaseAmountInLocalCurrency I_CADocumentGLItem CATaxBaseAmountInLocalCurrency
CAExchangeRate I_CADocumentGLItem CAExchangeRate
CAReversedDocumentNumber
@AbapCatalog.viewEnhancementCategory: [#NONE]
@VDM.private: true
@VDM.viewType: #COMPOSITE

@AccessControl.personalData.blocking: #BLOCKED_DATA_INCLUDED
@AccessControl.authorizationCheck: #NOT_REQUIRED

@Metadata.ignorePropagatedAnnotations: true

@ObjectModel.usageType:{
  serviceQuality: #C,
  sizeCategory: #XXL,
  dataClass: #MIXED
}

define view entity P_ContrAcctgGLItem
  with parameters
    P_FromPostingDate : fis_budat_from,
    P_ToPostingDate   : fis_budat_to,
    P_CompanyCode     : bukrs
  as select from I_CADocument       as ficadoc
    inner join   I_CADocumentGLItem as fica_glitems on  ficadoc.CADocumentNumber = fica_glitems.CADocumentNumber
                                                    and ficadoc.CAPostingDate    >= $parameters.P_FromPostingDate
                                                    and ficadoc.CAPostingDate    <= $parameters.P_ToPostingDate
                                                    and fica_glitems.CompanyCode = $parameters.P_CompanyCode

  association to I_CADocumentType as _CADocumentType on  $projection.CADocumentType    = _CADocumentType.CADocumentType
                                                     and $projection.CAApplicationArea = _CADocumentType.CAApplicationArea
{

  key  fica_glitems.CADocumentNumber                     as CADocumentNumber,
  key  fica_glitems.CAGLItemNumber                       as CAGLItemNumber,
       cast( '' as  opupw_kk)                            as CARepetitionItemNumber,
       fica_glitems.CompanyCode                          as CompanyCode,
       fica_glitems._CompCode.FiscalYearVariant          as FiscalYearVariant,
       cast( '' as  opupz_kk)                            as CASubItemNumber,
       cast( '' as  opupk_kk)                            as CABPItemNumber,
       ficadoc.CreatedByUser                             as CreatedByUser,
       ficadoc.CreationDate                              as CreationDate,
       ficadoc.CreationTime                              as CreationTime,
       ficadoc.CAApplicationArea                         as CAApplicationArea,
       ficadoc.DocumentDate                              as DocumentDate,
       ficadoc.LastChangeDate                            as LastChangeDate,
       ficadoc.CAReferenceDocument                       as CAReferenceDocument,
       ficadoc.CAClassificationKey                       as CAClassificationKey,
       ficadoc.CAPostingDate                             as CAPostingDate,
       fica_glitems.ChartOfAccounts                      as ChartOfAccounts,
       fica_glitems.GLAccount                            as GLAccount,
       fica_glitems.TaxCode                              as TaxCode,
       fica_glitems.TaxCountry                           as TaxCountry,
       fica_glitems.CATaxRate                            as CATaxRate,
       fica_glitems.CATransactionKeyAccountDetn          as CATransactionKeyAccountDetn,
       fica_glitems.CostCenter                           as CostCenter,
       ficadoc.CADocumentType                            as CADocumentType,
       _CADocumentType._Text[1: Language = $session.system_language].
       CADocumentTypeName                                as CADocumentTypeName,
       @Semantics.amount.currencyCode: 'TransactionCurrency'
       fica_glitems.CAAmountInTransactionCurrency        as CAAmountInTransactionCurrency,
       @Semantics.amount.currencyCode: 'TransactionCurrency'
       fica_glitems.CATaxBaseAmount                      as CATaxBaseAmount,
       fica_glitems.TransactionCurrency                  as TransactionCurrency,
       fica_glitems.Currency                             as CompanyCodeCurrency,
       @Semantics.amount.currencyCode: 'CompanyCodeCurrency'
       fica_glitems.CAAmountInLocalCurrency              as CAAmountInLocalCurrency,
       @Semantics.amount.currencyCode: 'CompanyCodeCurrency'
       fica_glitems.CATaxBaseAmountInLocalCurrency       as CATaxBaseAmountInLocalCurrency,
       fica_glitems.CAExchangeRate                       as CAExchangeRate,
       fica_glitems._CADocument.CAReversedDocumentNumber as CAReversedDocumentNumber
}