P_TaxExplainerSalesOrderItem
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)
| Source | Alias | Join Type |
|---|---|---|
| I_SalesDocumentItem | Item | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | P_TaxExplainerSalesOrderHeader | _TaxDocHeader | $projection.SalesDocument = Item.SalesDocument |
| [0..*] | P_TaxExplainerTaxComponent | _TaxComponent | Item.SalesDocumentCondition = _TaxComponent.PricingDocument and Item.SalesDocumentItem = _TaxComponent.PricingDocumentItem |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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
}
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA