A_CustomerReturnSimulation
Returns Order Simulation
A_CustomerReturnSimulation is a Composite CDS View that provides data about "Returns Order Simulation" in SAP S/4HANA. It reads from 1 data source (I_CustomerReturnEnhanced) and exposes 41 fields with key field CustomerReturn.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_CustomerReturnEnhanced | CustomerReturn | from |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.viewType | #COMPOSITE | view | |
| VDM.lifecycle.contract.type | #PUBLIC_REMOTE_API | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| ObjectModel.representativeKey | CustomerReturn | view | |
| ObjectModel.createEnabled | true | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| EndUserText.label | Returns Order Simulation | view |
Fields (41)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CustomerReturn | CustomerReturn | ||
| CustomerReturnType | CustomerReturnType | |||
| SalesOrganization | SalesOrganization | |||
| DistributionChannel | DistributionChannel | |||
| OrganizationDivision | OrganizationDivision | |||
| SalesGroup | SalesGroup | |||
| SalesOffice | SalesOffice | |||
| SalesDistrict | SalesDistrict | |||
| SoldToParty | SoldToParty | |||
| PurchaseOrderByCustomer | PurchaseOrderByCustomer | |||
| CustomerPurchaseOrderType | CustomerPurchaseOrderType | |||
| CustomerPurchaseOrderDate | CustomerPurchaseOrderDate | |||
| CustomerReturnDate | CustomerReturnDate | |||
| TotalNetAmount | TotalNetAmount | |||
| TransactionCurrency | TransactionCurrency | |||
| SDPricingProcedure | SDPricingProcedure | |||
| SDDocumentReason | SDDocumentReason | |||
| PricingDate | PricingDate | |||
| RequestedDeliveryDate | RequestedDeliveryDate | |||
| ShippingType | ShippingType | |||
| IncotermsClassification | IncotermsClassification | |||
| IncotermsTransferLocation | IncotermsTransferLocation | |||
| IncotermsLocation1 | IncotermsLocation1 | |||
| IncotermsLocation2 | IncotermsLocation2 | |||
| IncotermsVersion | IncotermsVersion | |||
| CustomerPaymentTerms | CustomerPaymentTerms | |||
| PaymentMethod | PaymentMethod | |||
| CustomerTaxClassification1 | CustomerTaxClassification1 | |||
| CustomerTaxClassification2 | CustomerTaxClassification2 | |||
| CustomerTaxClassification3 | CustomerTaxClassification3 | |||
| CustomerTaxClassification4 | CustomerTaxClassification4 | |||
| CustomerTaxClassification5 | CustomerTaxClassification5 | |||
| CustomerTaxClassification6 | CustomerTaxClassification6 | |||
| CustomerTaxClassification7 | CustomerTaxClassification7 | |||
| CustomerTaxClassification8 | CustomerTaxClassification8 | |||
| CustomerTaxClassification9 | CustomerTaxClassification9 | |||
| ReferenceSDDocument | ReferenceSDDocument | |||
| AccountingDocExternalReference | AccountingDocExternalReference | |||
| _Item | _Item | |||
| _Partner | _Partner | |||
| _PricingElement | _PricingElement |
@VDM: {
viewType: #COMPOSITE,
lifecycle.contract.type: #PUBLIC_REMOTE_API
}
@AccessControl: {
authorizationCheck: #MANDATORY,
personalData.blocking: #('TRANSACTIONAL_DATA')
}
@ObjectModel: {
representativeKey: 'CustomerReturn',
createEnabled: true,
usageType: {
dataClass: #TRANSACTIONAL,
serviceQuality: #C,
sizeCategory: #L
}
}
@Metadata.ignorePropagatedAnnotations: true
@EndUserText.label: 'Returns Order Simulation'
define root view entity A_CustomerReturnSimulation as select from I_CustomerReturnEnhanced as CustomerReturn
composition[0..*] of A_CustomerReturnItemSimulation as _Item
composition[0..*] of A_CustRetPartnerSimulation as _Partner
composition[0..*] of A_CustRetPrcgElmntSimulation as _PricingElement
association[0..1] to E_SalesDocumentBasic as _Extension on $projection.CustomerReturn = _Extension.SalesDocument
{
key CustomerReturn,
CustomerReturnType,
SalesOrganization,
DistributionChannel,
OrganizationDivision,
SalesGroup,
SalesOffice,
SalesDistrict,
SoldToParty,
PurchaseOrderByCustomer,
@ObjectModel.sapObjectNodeTypeReference: 'PurchaseOrderTypeByCustomer'
CustomerPurchaseOrderType,
CustomerPurchaseOrderDate,
CustomerReturnDate,
@ObjectModel.readOnly: true
@Semantics.amount.currencyCode: 'TransactionCurrency'
TotalNetAmount,
@ObjectModel.sapObjectNodeTypeReference: 'Currency'
TransactionCurrency,
@ObjectModel.readOnly: true
SDPricingProcedure,
@ObjectModel.sapObjectNodeTypeReference: 'SalesDocumentReason'
SDDocumentReason,
PricingDate,
RequestedDeliveryDate,
ShippingType,
@ObjectModel.sapObjectNodeTypeReference: 'IncotermsClassification'
IncotermsClassification,
IncotermsTransferLocation,
IncotermsLocation1,
IncotermsLocation2,
@ObjectModel.sapObjectNodeTypeReference: 'IncotermsVersion'
IncotermsVersion,
CustomerPaymentTerms,
PaymentMethod,
//Tax Classfication
CustomerTaxClassification1,
CustomerTaxClassification2,
CustomerTaxClassification3,
CustomerTaxClassification4,
CustomerTaxClassification5,
CustomerTaxClassification6,
CustomerTaxClassification7,
CustomerTaxClassification8,
CustomerTaxClassification9,
ReferenceSDDocument,
AccountingDocExternalReference,
// Make association public
_Item,
_Partner,
_PricingElement
}where CustomerReturn.CustomerReturn = '0'
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