P_TaxExplainerSalesOrderItem

DDL: P_TAXEXPLAINERSALESORDERITEM Type: view_entity COMPOSITE Package: GLO_TAXEXPLAIN_SO

Line item details for Tax explainer

P_TaxExplainerSalesOrderItem is a Composite CDS View that provides data about "Line item details for Tax explainer" in SAP S/4HANA. It reads from 1 data source (I_SalesDocumentItem) and exposes 11 fields with key fields SalesDocument, SalesDocumentItem. It has 2 associations to related views. Part of development package GLO_TAXEXPLAIN_SO.

Data Sources (1)

SourceAliasJoin Type
I_SalesDocumentItem Item from

Associations (2)

CardinalityTargetAliasCondition
[1..1] P_TaxExplainerSalesOrderHeader _TaxDocHeader $projection.SalesDocument = Item.SalesDocument
[0..*] P_TaxExplainerTaxComponent _TaxComponent Item.SalesDocumentCondition = _TaxComponent.PricingDocument and Item.SalesDocumentItem = _TaxComponent.PricingDocumentItem

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
Metadata.ignorePropagatedAnnotations true view
VDM.viewType #COMPOSITE view
VDM.private true view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #MIXED view

Fields (11)

KeyFieldSource TableSource FieldDescription
KEY SalesDocument SalesDocument
KEY SalesDocumentItem SalesDocumentItem
Material Material
ProductNameasSalesDocumentItemText
NetAmount NetAmount
TransactionCurrency TransactionCurrency
TaxAmount TaxAmount
GrossAmount
SalesDocumentCondition SalesDocumentCondition
Plant Plant
_TaxComponent _TaxComponent
@AbapCatalog.viewEnhancementCategory: [#NONE]
@AccessControl.authorizationCheck: #NOT_REQUIRED
//@EndUserText.label: 'Line item details for Tax explainer'

@Metadata.ignorePropagatedAnnotations: true
@VDM.viewType: #COMPOSITE
@VDM.private:true
@ObjectModel.usageType:{
  serviceQuality: #X,
  sizeCategory: #S,
  dataClass: #MIXED
}
define view entity P_TaxExplainerSalesOrderItem
  as select from I_SalesDocumentItem as Item
  association [1..1] to P_TaxExplainerSalesOrderHeader as _TaxDocHeader on  $projection.SalesDocument = Item.SalesDocument
  association [0..*] to P_TaxExplainerTaxComponent     as _TaxComponent on  Item.SalesDocumentCondition = _TaxComponent.PricingDocument
                                                                        and Item.SalesDocumentItem      = _TaxComponent.PricingDocumentItem
{
  key SalesDocument,
  key SalesDocumentItem,
      Material,
      coalesce( _ProductText[1: Language = $session.system_language].ProductName,
      _ProductText[1: Language = 'E'].ProductName) as SalesDocumentItemText,
      @Semantics.amount.currencyCode: 'TransactionCurrency'
      NetAmount,
      TransactionCurrency,
      @Semantics.amount.currencyCode: 'TransactionCurrency'
      TaxAmount,
      @Semantics.amount.currencyCode: 'TransactionCurrency'
      NetAmount + TaxAmount                        as GrossAmount,


      //Non-JSON fields

      SalesDocumentCondition,
      Plant,
      _TaxComponent

}