P_RU_FixedAssetValueTrans1

DDL: P_RU_FIXEDASSETVALUETRANS1 SQL: PRUFASSETVTR1 Type: view CONSUMPTION

P_RU_FixedAssetValueTrans1 is a Consumption CDS View in SAP S/4HANA. It reads from 1 data source (I_FixedAssetValue) and exposes 31 fields with key fields CompanyCode, AssetDepreciationArea, MasterFixedAsset, FixedAsset, AccountingDocument.

Data Sources (1)

SourceAliasJoin Type
I_FixedAssetValue I_FixedAssetValue from

Parameters (1)

NameTypeDefault
P_AssetAccountingKeyFigureSet faa_key_figure_set

Annotations (7)

NameValueLevelField
AbapCatalog.sqlViewName PRUFASSETVTR1 view
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #CONSUMPTION view
VDM.private true view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (31)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode CompanyCode
KEY AssetDepreciationArea AssetDepreciationArea
KEY MasterFixedAsset MasterFixedAsset
KEY FixedAsset FixedAsset
KEY AccountingDocument AccountingDocument
KEY TransactionSubitem TransactionSubitem
KEY Ledger Ledger
KEY FiscalYear FiscalYear
KEY FiscalPeriod FiscalPeriod
KEY SubLedgerAcctLineItemType SubLedgerAcctLineItemType
KEY AssetAcctTransClassfctn AssetAcctTransClassfctn
KEY AssetAccountingKeyFigureSet AssetAccountingKeyFigureSet
KEY AssetAccountingKeyFigure AssetAccountingKeyFigure
KEY DebitCreditCode DebitCreditCode
LogicalSystem LogicalSystem
ReferenceDocumentType ReferenceDocumentType
ReferenceDocumentContext ReferenceDocumentContext
LedgerFiscalYear LedgerFiscalYear
FiscalYearVariant FiscalYearVariant
FiscalYearPeriod FiscalYearPeriod
IsReversal IsReversal
IsReversed IsReversed
DocumentDate DocumentDate
PostingDate PostingDate
AssetValueDate AssetValueDate
AmountInCompanyCodeCurrency AmountInCompanyCodeCurrency
AssetTransactionType AssetTransactionType
ReferenceDocument ReferenceDocument
ReferenceDocumentItem ReferenceDocumentItem
ReversalReferenceDocument ReversalReferenceDocument
ReversalTransactionSubitem ReversalTransactionSubitem
@AbapCatalog.sqlViewName: 'PRUFASSETVTR1'
@AbapCatalog.preserveKey: true
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@VDM.viewType: #CONSUMPTION
@VDM.private:true
@ClientHandling.algorithm: #SESSION_VARIABLE
define view P_RU_FixedAssetValueTrans1
  with parameters
    P_AssetAccountingKeyFigureSet : faa_key_figure_set

  as select from I_FixedAssetValue( P_AssetAccountingKeyFigureSet: :P_AssetAccountingKeyFigureSet )

{
  key CompanyCode,
  key AssetDepreciationArea,
  key MasterFixedAsset,
  key FixedAsset,
  key AccountingDocument,
  key TransactionSubitem,
  key Ledger,
  key FiscalYear,
  key FiscalPeriod,
  key SubLedgerAcctLineItemType,
  key AssetAcctTransClassfctn,
  key AssetAccountingKeyFigureSet,
  key AssetAccountingKeyFigure,
  key DebitCreditCode,
      LogicalSystem,
      ReferenceDocumentType,
      ReferenceDocumentContext,
      LedgerFiscalYear,
      FiscalYearVariant,
      FiscalYearPeriod,
      IsReversal,
      IsReversed,
      DocumentDate,
      PostingDate,
      AssetValueDate,
      AmountInCompanyCodeCurrency,
      AssetTransactionType,
      ReferenceDocument,
      ReferenceDocumentItem,
      ReversalReferenceDocument,
      ReversalTransactionSubitem,
      case substring( AssetAccountingKeyFigure, 8, 3 )
        when  '000' then AmountInCompanyCodeCurrency
        else 0
      end                                                           as anbtr,

      case substring( AssetAccountingKeyFigure, 8, 3 )
        when  '200' then AmountInCompanyCodeCurrency
        else 0
      end                                                           as invzvl,

      case substring( AssetAccountingKeyFigure, 8, 3 )
        when  '300' then AmountInCompanyCodeCurrency
        else 0
      end                                                           as aufwvl,

      case substring( AssetAccountingKeyFigure, 8, 3 )
        when  '400' then AmountInCompanyCodeCurrency
        else 0
      end                                                           as aufnvl,

      case substring( AssetAccountingKeyFigure, 8, 3 )
        when  '500' then AmountInCompanyCodeCurrency
        else 0
      end                                                           as nafavl,

      case substring( AssetAccountingKeyFigure, 8, 3 )
        when  '600' then AmountInCompanyCodeCurrency
        else 0
      end                                                           as safavl,

      case substring( AssetAccountingKeyFigure, 8, 3 )
        when  '700' then AmountInCompanyCodeCurrency
        else 0
      end                                                           as aafavl,

      case substring( AssetAccountingKeyFigure, 8, 3 )
        when  '800' then AmountInCompanyCodeCurrency
        else 0
      end                                                           as mafavl,

      case substring( AssetAccountingKeyFigure, 8, 3 )
        when  '900' then AmountInCompanyCodeCurrency
        else 0
      end                                                           as erlbt,  //ret_revenue


      case substring( AssetAccountingKeyFigure, 8, 3 )
        when  '901' then AmountInCompanyCodeCurrency
        else 0
      end                                                           as verko,  //ret_costs

      
      case substring( AssetAccountingKeyFigure, 8, 3 )
        when  '902' then AmountInCompanyCodeCurrency
        else 0
      end                                                           as ret_loss,

      case substring( AssetAccountingKeyFigure, 8, 3 )
        when  '903' then AmountInCompanyCodeCurrency
        else 0
      end                                                           as ret_gain,
      
      case substring( AssetAccountingKeyFigure, 8, 3 )
        when  '904' then AmountInCompanyCodeCurrency
        else 0
      end                                                           as ret_nbv
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_FIXEDASSETVALUE"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/