A_SalesOrderItemSimulation
Sales Order Item Simulation (API)
A_SalesOrderItemSimulation is a Composite CDS View that provides data about "Sales Order Item Simulation (API)" in SAP S/4HANA. It reads from 1 data source (I_SalesOrderItem) and exposes 82 fields with key fields SalesOrder, SalesOrderItem. It has 7 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_SalesOrderItem | SalesOrderItem | from |
Associations (7)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_SalesDocumentBasic | _SalesDocument | _SalesDocument.SalesDocument = $projection.SalesOrder |
| [1..1] | A_SalesOrderSimulation | _SalesOrder | _SalesOrder.SalesOrder = $projection.SalesOrder |
| [0..*] | A_SalesOrderScheduleLineSimln | _ScheduleLine | _ScheduleLine.SalesOrder = $projection.SalesOrder and _ScheduleLine.SalesOrderItem = $projection.SalesOrderItem |
| [0..*] | A_SalesOrderItemPartnerSimln | _Partner | _Partner.SalesOrder = $projection.SalesOrder and _Partner.SalesOrderItem = $projection.SalesOrderItem |
| [0..*] | A_SalesOrderItmPrcgElmntSimln | _PricingElement | _PricingElement.SalesOrder = $projection.SalesOrder and _PricingElement.SalesOrderItem = $projection.SalesOrderItem |
| [0..*] | A_SlsOrdSimlnValAddedSrvc | _ValueAddedService | _ValueAddedService.SalesOrder = $projection.SalesOrder and _ValueAddedService.SalesOrderItem = $projection.SalesOrderItem |
| [0..1] | E_SalesDocumentItemBasic | _Extension | $projection.SalesOrder = _Extension.SalesDocument and $projection.SalesOrderItem = _Extension.SalesDocumentItem |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | Sales Order Item Simulation (API) | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.lifecycle.contract.type | #PUBLIC_REMOTE_API | view | |
| AbapCatalog.sqlViewName | ASOITMSIM | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (82)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SalesOrder | SalesOrder | SD Document | |
| KEY | SalesOrderItem | SalesOrderItem | Sales Order Item | |
| HigherLevelItem | HigherLevelItem | Higher-Lev.Item | ||
| HigherLevelItemUsage | HigherLevelItemUsage | |||
| SalesOrderItemCategory | SalesOrderItemCategory | Item Category | ||
| SalesOrderItemText | SalesOrderItemText | Item Descr. | ||
| PurchaseOrderByCustomer | PurchaseOrderByCustomer | Purchase Order Number | ||
| Material | Material | Vehicle Model | ||
| OriginallyRequestedMaterial | OriginallyRequestedMaterial | |||
| MaterialByCustomer | MaterialByCustomer | Customer Mat. | ||
| PricingDate | PricingDate | Pricing Date | ||
| PricingReferenceMaterial | PricingReferenceMaterial | Pr. Ref. Matl | ||
| RequestedQuantity | RequestedQuantity | Requested Quantity | ||
| RequestedQuantityUnit | RequestedQuantityUnit | Requested Quantity Unit | ||
| RequestedQuantitySAPUnit | ||||
| RequestedQuantityISOUnit | ||||
| OrderQuantityUnit | OrderQuantityUnit | Sales Unit | ||
| OrderQuantitySAPUnit | ||||
| OrderQuantityISOUnit | ||||
| ConfdDelivQtyInOrderQtyUnit | ConfdDelivQtyInOrderQtyUnit | Confd Quantity | ||
| ItemGrossWeight | ItemGrossWeight | Gross Weight | ||
| ItemNetWeight | ItemNetWeight | Net Weight | ||
| ItemWeightUnit | ItemWeightUnit | Unit of Weight | ||
| ItemWeightSAPUnit | ||||
| ItemWeightISOUnit | ||||
| ItemVolume | ItemVolume | Volume | ||
| ItemVolumeUnit | ItemVolumeUnit | Volume Unit | ||
| ItemVolumeSAPUnit | ||||
| ItemVolumeISOUnit | ||||
| TransactionCurrency | TransactionCurrency | Transaction Currency | ||
| NetAmount | NetAmount | Stated Amount | ||
| TaxAmount | TaxAmount | Tax Amt in Rptg Crcy | ||
| CostAmount | CostAmount | |||
| Subtotal1Amount | Subtotal1Amount | Subtotal 1 Amount | ||
| Subtotal2Amount | Subtotal2Amount | Subtotal 2 Amount | ||
| Subtotal3Amount | Subtotal3Amount | Subtotal 3 Amount | ||
| Subtotal4Amount | Subtotal4Amount | Subtotal 4 Amount | ||
| Subtotal5Amount | Subtotal5Amount | Subtotal 5 Amount | ||
| Subtotal6Amount | Subtotal6Amount | Subtotal 6 Amount | ||
| MaterialSubstitutionReason | MaterialSubstitutionReason | |||
| MaterialGroup | MaterialGroup | Product Group | ||
| MaterialPricingGroup | MaterialPricingGroup | |||
| Batch | Batch | Lot No. | ||
| Plant | Plant | Valuation Area | ||
| StorageLocation | StorageLocation | StorageLocation | ||
| DeliveryGroup | DeliveryGroup | Delivery Group | ||
| ShippingPoint | ShippingPoint | Shipping Point | ||
| ShippingType | ShippingType | Shipping Type | ||
| DeliveryPriority | DeliveryPriority | Delivery Prior. | ||
| IncotermsClassification | IncotermsClassification | Incoterms | ||
| IncotermsTransferLocation | IncotermsTransferLocation | Incoterms 2 | ||
| IncotermsLocation1 | IncotermsLocation1 | Inco. Location1 | ||
| IncotermsLocation2 | IncotermsLocation2 | Inco. Location2 | ||
| ProductTaxClassification1 | ProductTaxClassification1 | |||
| ProductTaxClassification2 | ProductTaxClassification2 | |||
| ProductTaxClassification3 | ProductTaxClassification3 | |||
| ProductTaxClassification4 | ProductTaxClassification4 | |||
| ProductTaxClassification5 | ProductTaxClassification5 | |||
| ProductTaxClassification6 | ProductTaxClassification6 | |||
| ProductTaxClassification7 | ProductTaxClassification7 | |||
| ProductTaxClassification8 | ProductTaxClassification8 | |||
| ProductTaxClassification9 | ProductTaxClassification9 | |||
| ReferenceSDDocument | ReferenceSDDocument | Reference Doc. | ||
| ReferenceSDDocumentItem | ReferenceSDDocumentItem | Reference Item | ||
| CustomerPaymentTerms | CustomerPaymentTerms | Pyt Terms | ||
| SalesDocumentRjcnReason | SalesDocumentRjcnReason | RejectionReason | ||
| ProductSeasonYear | ProductSeasonYear | Season Year | ||
| ProductSeason | ProductSeason | Season | ||
| ProductCollection | ProductCollection | Collection | ||
| ProductTheme | ProductTheme | Theme | ||
| SeasonCompletenessStatus | SeasonCompletenessStatus | Season Comp.Ind | ||
| FashionCancelDate | FashionCancelDate | |||
| RequirementSegment | RequirementSegment | Req. Segment | ||
| SalesOrderType | _SalesDocument | SalesDocumentType | Sales Doc. Type | |
| OrganizationDivision | _SalesDocument | OrganizationDivision | Org. Division | |
| SalesOrganization | _SalesDocument | SalesOrganization | Sales Organization | |
| DistributionChannel | _SalesDocument | DistributionChannel | RefDistCh-Cust/Mat. | |
| _SalesOrder | _SalesOrder | |||
| _Partner | _Partner | |||
| _PricingElement | _PricingElement | |||
| _ScheduleLine | _ScheduleLine | |||
| _ValueAddedService | _ValueAddedService |
Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.
-- Derived SQL interpretation of CDS view A_SalesOrderItemSimulation.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
CREATE VIEW A_SalesOrderItemSimulation AS
SELECT
SalesOrder,
SalesOrderItem,
HigherLevelItem,
HigherLevelItemUsage,
SalesOrderItemCategory,
SalesOrderItemText,
PurchaseOrderByCustomer,
Material,
OriginallyRequestedMaterial,
MaterialByCustomer,
PricingDate,
PricingReferenceMaterial,
RequestedQuantity,
RequestedQuantityUnit,
cast(_RequestedQuantityUnit.UnitOfMeasureSAPCode as sd_reqd_qty_sapunit preserving type) AS RequestedQuantitySAPUnit,
cast(_RequestedQuantityUnit.UnitOfMeasureISOCode as sd_reqd_qty_isounit preserving type) AS RequestedQuantityISOUnit,
OrderQuantityUnit,
cast(_OrderQuantityUnit.UnitOfMeasureSAPCode as sd_ord_qty_sapunit preserving type) AS OrderQuantitySAPUnit,
cast(_OrderQuantityUnit.UnitOfMeasureISOCode as sd_ord_qty_isounit preserving type) AS OrderQuantityISOUnit,
ConfdDelivQtyInOrderQtyUnit,
ItemGrossWeight,
ItemNetWeight,
ItemWeightUnit,
cast(_ItemWeightUnit.UnitOfMeasureSAPCode as sd_itm_wgt_sapunit preserving type) AS ItemWeightSAPUnit,
cast(_ItemWeightUnit.UnitOfMeasureISOCode as sd_itm_wgt_isounit preserving type) AS ItemWeightISOUnit,
ItemVolume,
ItemVolumeUnit,
cast(_ItemVolumeUnit.UnitOfMeasureSAPCode as sd_itm_vol_sapunit preserving type) AS ItemVolumeSAPUnit,
cast(_ItemVolumeUnit.UnitOfMeasureISOCode as sd_itm_vol_isounit preserving type) AS ItemVolumeISOUnit,
TransactionCurrency,
NetAmount,
TaxAmount,
CostAmount,
Subtotal1Amount,
Subtotal2Amount,
Subtotal3Amount,
Subtotal4Amount,
Subtotal5Amount,
Subtotal6Amount,
MaterialSubstitutionReason,
MaterialGroup,
MaterialPricingGroup,
Batch,
Plant,
StorageLocation,
DeliveryGroup,
ShippingPoint,
ShippingType,
DeliveryPriority,
IncotermsClassification,
IncotermsTransferLocation,
IncotermsLocation1,
IncotermsLocation2,
ProductTaxClassification1,
ProductTaxClassification2,
ProductTaxClassification3,
ProductTaxClassification4,
ProductTaxClassification5,
ProductTaxClassification6,
ProductTaxClassification7,
ProductTaxClassification8,
ProductTaxClassification9,
ReferenceSDDocument,
ReferenceSDDocumentItem,
CustomerPaymentTerms,
SalesDocumentRjcnReason,
ProductSeasonYear,
ProductSeason,
ProductCollection,
ProductTheme,
SeasonCompletenessStatus,
FashionCancelDate,
RequirementSegment,
_SalesDocument.SalesDocumentType AS SalesOrderType,
_SalesDocument.OrganizationDivision AS OrganizationDivision,
_SalesDocument.SalesOrganization AS SalesOrganization,
_SalesDocument.DistributionChannel AS DistributionChannel
FROM I_SalesOrderItem AS SalesOrderItem
LEFT OUTER JOIN I_SalesDocumentBasic AS _SalesDocument ON _SalesDocument.SalesDocument = SalesOrder -- association [1..1]
LEFT OUTER JOIN A_SalesOrderSimulation AS _SalesOrder ON _SalesOrder.SalesOrder = SalesOrder -- association [1..1]
LEFT OUTER JOIN A_SalesOrderScheduleLineSimln AS _ScheduleLine ON _ScheduleLine.SalesOrder = SalesOrder AND _ScheduleLine.SalesOrderItem = SalesOrderItem -- association [0..*]
LEFT OUTER JOIN A_SalesOrderItemPartnerSimln AS _Partner ON _Partner.SalesOrder = SalesOrder AND _Partner.SalesOrderItem = SalesOrderItem -- association [0..*]
LEFT OUTER JOIN A_SalesOrderItmPrcgElmntSimln AS _PricingElement ON _PricingElement.SalesOrder = SalesOrder AND _PricingElement.SalesOrderItem = SalesOrderItem -- association [0..*]
LEFT OUTER JOIN A_SlsOrdSimlnValAddedSrvc AS _ValueAddedService ON _ValueAddedService.SalesOrder = SalesOrder AND _ValueAddedService.SalesOrderItem = SalesOrderItem -- association [0..*]
LEFT OUTER JOIN E_SalesDocumentItemBasic AS _Extension ON SalesOrder = _Extension.SalesDocument AND SalesOrderItem = _Extension.SalesDocumentItem -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- 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
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA