A_SalesOrderSimulation
Sales Order Simulation
A_SalesOrderSimulation is a Composite CDS View that provides data about "Sales Order Simulation" in SAP S/4HANA. It reads from 1 data source (I_SalesOrder) and exposes 56 fields with key field SalesOrder. It has 6 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_SalesOrder | SalesOrder | from |
Associations (6)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | A_SalesOrderItemSimulation | _Item | _Item.SalesOrder = $projection.SalesOrder |
| [0..*] | A_SalesOrderPartnerSimulation | _Partner | _Partner.SalesOrder = $projection.SalesOrder |
| [0..*] | A_SalesOrderPrcgElmntSimln | _PricingElement | _PricingElement.SalesOrder = $projection.SalesOrder |
| [1..1] | A_SalesOrderPricingSimulation | _Pricing | _Pricing.SalesOrder = $projection.SalesOrder |
| [1..1] | A_SalesOrderCreditSimulation | _Credit | _Credit.SalesOrder = $projection.SalesOrder |
| [0..1] | E_SalesDocumentBasic | _Extension | $projection.SalesOrder = _Extension.SalesDocument |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | Sales Order Simulation | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.lifecycle.contract.type | #PUBLIC_REMOTE_API | view | |
| AbapCatalog.sqlViewName | ASOSIM | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ObjectModel.representativeKey | SalesOrder | view | |
| ObjectModel.createEnabled | true | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (56)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SalesOrder | SalesOrder | SD Document | |
| SalesOrderType | SalesOrderType | Sales Order Type | ||
| SalesOrganization | SalesOrganization | Sales Organization | ||
| DistributionChannel | DistributionChannel | RefDistCh-Cust/Mat. | ||
| OrganizationDivision | OrganizationDivision | Org. Division | ||
| SalesGroup | SalesGroup | Sales Group | ||
| SalesOffice | SalesOffice | Sales Office | ||
| SalesDistrict | SalesDistrict | Sales District | ||
| SoldToParty | SoldToParty | Sold-to Party | ||
| CustomerGroup | CustomerGroup | Customer Group | ||
| AdditionalCustomerGroup1 | AdditionalCustomerGroup1 | Customer Grp 1 | ||
| AdditionalCustomerGroup2 | AdditionalCustomerGroup2 | Customer Grp 2 | ||
| AdditionalCustomerGroup3 | AdditionalCustomerGroup3 | Customer Grp 3 | ||
| AdditionalCustomerGroup4 | AdditionalCustomerGroup4 | Customer Grp 4 | ||
| AdditionalCustomerGroup5 | AdditionalCustomerGroup5 | Customer Grp 5 | ||
| PurchaseOrderByCustomer | PurchaseOrderByCustomer | Purchase Order Number | ||
| CustomerPurchaseOrderType | CustomerPurchaseOrderType | |||
| CustomerPurchaseOrderDate | CustomerPurchaseOrderDate | Purchase Order Date | ||
| SalesOrderDate | SalesOrderDate | Document Date | ||
| TransactionCurrency | TransactionCurrency | Transaction Currency | ||
| AccountingDocExternalReference | AccountingDocExternalReference | |||
| CustomerTaxClassification1 | CustomerTaxClassification1 | |||
| CustomerTaxClassification2 | CustomerTaxClassification2 | |||
| CustomerTaxClassification3 | CustomerTaxClassification3 | |||
| CustomerTaxClassification4 | CustomerTaxClassification4 | |||
| CustomerTaxClassification5 | CustomerTaxClassification5 | |||
| CustomerTaxClassification6 | CustomerTaxClassification6 | |||
| CustomerTaxClassification7 | CustomerTaxClassification7 | |||
| CustomerTaxClassification8 | CustomerTaxClassification8 | |||
| CustomerTaxClassification9 | CustomerTaxClassification9 | |||
| TaxDepartureCountry | TaxDepartureCountry | Tx Dep Ctry/Reg | ||
| VATRegistrationCountry | VATRegistrationCountry | CtryRgnSlsTxNo. | ||
| PriceListType | PriceListType | Price List Tp. | ||
| CustomerPriceGroup | CustomerPriceGroup | CustPrice Group | ||
| SlsDocSo2PLastContactPersnName | SlsDocSo2PLastContactPersnName | |||
| SlsDocSo2PLstCntctPersnTelNmbr | SlsDocSo2PLstCntctPersnTelNmbr | |||
| SDDocumentReason | SDDocumentReason | Order Reason | ||
| PricingDate | PricingDate | Pricing Date | ||
| SDPricingProcedure | SDPricingProcedure | Pric. Procedure | ||
| RequestedDeliveryDate | RequestedDeliveryDate | Requested Delivery Date | ||
| ShippingCondition | ShippingCondition | Shipping Conditions | ||
| CompleteDeliveryIsDefined | CompleteDeliveryIsDefined | Complete Dlv. | ||
| ShippingType | ShippingType | Shipping Type | ||
| IncotermsClassification | IncotermsClassification | Incoterms | ||
| IncotermsTransferLocation | IncotermsTransferLocation | Incoterms 2 | ||
| IncotermsLocation1 | IncotermsLocation1 | Inco. Location1 | ||
| IncotermsLocation2 | IncotermsLocation2 | Inco. Location2 | ||
| IncotermsVersion | IncotermsVersion | Inco. Version | ||
| ReferenceSDDocument | ReferenceSDDocument | Reference Doc. | ||
| CustomerPaymentTerms | CustomerPaymentTerms | Pyt Terms | ||
| PaymentMethod | PaymentMethod | Pymt Meth. | ||
| _Item | _Item | |||
| _Partner | _Partner | |||
| _PricingElement | _PricingElement | |||
| _Pricing | _Pricing | |||
| _Credit | _Credit |
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_SalesOrderSimulation.
-- 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_SalesOrderSimulation AS
SELECT
SalesOrder,
SalesOrderType,
SalesOrganization,
DistributionChannel,
OrganizationDivision,
SalesGroup,
SalesOffice,
SalesDistrict,
SoldToParty,
CustomerGroup,
AdditionalCustomerGroup1,
AdditionalCustomerGroup2,
AdditionalCustomerGroup3,
AdditionalCustomerGroup4,
AdditionalCustomerGroup5,
PurchaseOrderByCustomer,
CustomerPurchaseOrderType,
CustomerPurchaseOrderDate,
SalesOrderDate,
TransactionCurrency,
AccountingDocExternalReference,
CustomerTaxClassification1,
CustomerTaxClassification2,
CustomerTaxClassification3,
CustomerTaxClassification4,
CustomerTaxClassification5,
CustomerTaxClassification6,
CustomerTaxClassification7,
CustomerTaxClassification8,
CustomerTaxClassification9,
TaxDepartureCountry,
VATRegistrationCountry,
PriceListType,
CustomerPriceGroup,
SlsDocSo2PLastContactPersnName,
SlsDocSo2PLstCntctPersnTelNmbr,
SDDocumentReason,
PricingDate,
SDPricingProcedure,
RequestedDeliveryDate,
ShippingCondition,
CompleteDeliveryIsDefined,
ShippingType,
IncotermsClassification,
IncotermsTransferLocation,
IncotermsLocation1,
IncotermsLocation2,
IncotermsVersion,
ReferenceSDDocument,
CustomerPaymentTerms,
PaymentMethod
FROM I_SalesOrder AS SalesOrder
LEFT OUTER JOIN A_SalesOrderItemSimulation AS _Item ON _Item.SalesOrder = SalesOrder -- association [0..*]
LEFT OUTER JOIN A_SalesOrderPartnerSimulation AS _Partner ON _Partner.SalesOrder = SalesOrder -- association [0..*]
LEFT OUTER JOIN A_SalesOrderPrcgElmntSimln AS _PricingElement ON _PricingElement.SalesOrder = SalesOrder -- association [0..*]
LEFT OUTER JOIN A_SalesOrderPricingSimulation AS _Pricing ON _Pricing.SalesOrder = SalesOrder -- association [1..1]
LEFT OUTER JOIN A_SalesOrderCreditSimulation AS _Credit ON _Credit.SalesOrder = SalesOrder -- association [1..1]
LEFT OUTER JOIN E_SalesDocumentBasic AS _Extension ON SalesOrder = _Extension.SalesDocument -- 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