P_TaxCode

DDL: P_TAXCODE SQL: PFITAXCODE Type: view BASIC

P_TaxCode is a Basic CDS View in SAP S/4HANA. It reads from 1 data source (t007a) and exposes 15 fields with key fields TaxCalculationProcedure, TaxCode. It has 3 associations to related views.

Data Sources (1)

SourceAliasJoin Type
t007a t007a from

Associations (3)

CardinalityTargetAliasCondition
[0..*] I_TaxCodeText _Text $projection.TaxCalculationProcedure = _Text.TaxCalculationProcedure and $projection.TaxCode = _Text.TaxCode
[0..1] I_TaxType _TaxType $projection.TaxType = _TaxType.TaxType
[0..1] I_TaxCalculationProcedure _TaxCalculationProcedure $projection.TaxCalculationProcedure = _TaxCalculationProcedure.TaxCalculationProcedure

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName PFITAXCODE view
VDM.private true view
VDM.viewType #BASIC view
AbapCatalog.compiler.compareFilter true view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #NOT_REQUIRED view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.representativeKey TaxCode view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #CUSTOMIZING view

Fields (15)

KeyFieldSource TableSource FieldDescription
KEY TaxCalculationProcedure kalsm
KEY TaxCode
TaxType mwart
TargetTaxCode
EUTaxClassification egrkz
IsSalesTaxes xslta
TaxCategory
TaxReturnCountry lstml
TaxTolerancePercent
EUAcqnInputTaxCode zmwsk_esa
EUAcqnOutputTaxCode zmwsk_ese
MossTaxCode mossc
_TaxCalculationProcedure _TaxCalculationProcedure
_TaxType _TaxType
_Text _Text
@AbapCatalog.sqlViewName: 'PFITAXCODE'
//@EndUserText.label: 'Private view to retrieve Tax Code Details'

@VDM.private: true
@VDM.viewType: #BASIC
@AbapCatalog.compiler.compareFilter: true
@ClientHandling.algorithm: #SESSION_VARIABLE
//@Analytics: { dataCategory: #DIMENSION, dataExtraction.enabled: true }

@AccessControl.authorizationCheck: #NOT_REQUIRED
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.representativeKey: 'TaxCode'
@ObjectModel.usageType.serviceQuality: #A
@ObjectModel.usageType.sizeCategory: #S
@ObjectModel.usageType.dataClass: #CUSTOMIZING

define view P_TaxCode
  as select from t007a

  association [0..*] to I_TaxCodeText             as _Text                    on  $projection.TaxCalculationProcedure = _Text.TaxCalculationProcedure
                                                                              and $projection.TaxCode                 = _Text.TaxCode

  association [0..1] to I_TaxType                 as _TaxType                 on  $projection.TaxType = _TaxType.TaxType

  association [0..1] to I_TaxCalculationProcedure as _TaxCalculationProcedure on  $projection.TaxCalculationProcedure = _TaxCalculationProcedure.TaxCalculationProcedure

{
      @ObjectModel.foreignKey.association: '_TaxCalculationProcedure'
  key kalsm                                  as TaxCalculationProcedure,
      @ObjectModel.text.association: '_Text'
  key cast(mwskz as fis_mwskz)               as TaxCode,
      @ObjectModel.foreignKey.association: '_TaxType'
      mwart                                  as TaxType,
      cast (zmwsk as farp_dzmwsk)            as TargetTaxCode,
      egrkz                                  as EUTaxClassification,
      xslta                                  as IsSalesTaxes,
      cast ( txind as smwsk )                as TaxCategory,
      lstml                                  as TaxReturnCountry,
      cast( tolerance as fot_tax_tolerance ) as TaxTolerancePercent,
      zmwsk_esa                              as EUAcqnInputTaxCode,
      zmwsk_ese                              as EUAcqnOutputTaxCode,
      mossc                                  as MossTaxCode,

      _TaxCalculationProcedure,
      _TaxType,
      _Text
}