I_CustomerReturnScheduleLine
Returns Order Schedule Line
I_CustomerReturnScheduleLine is a Basic CDS View (Dimension) that provides data about "Returns Order Schedule Line" in SAP S/4HANA. It reads from 1 data source (I_SalesDocumentScheduleLine) and exposes 44 fields with key fields CustomerReturn, CustomerReturnItem, ScheduleLine. It has 2 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_SalesDocumentScheduleLine | SalesDocumentScheduleLine | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_CustomerReturn | _CustomerReturn | $projection.CustomerReturn = _CustomerReturn.CustomerReturn |
| [1..1] | I_CustomerReturnItem | _CustomerReturnItem | $projection.CustomerReturn = _CustomerReturnItem.CustomerReturn and $projection.CustomerReturnItem = _CustomerReturnItem.CustomerReturnItem |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.representativeKey | ScheduleLine | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| EndUserText.label | Returns Order Schedule Line | view | |
| Analytics.dataCategory | #DIMENSION | view | |
| VDM.viewType | #BASIC | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AbapCatalog.sqlViewName | ISDCUSTRETSCHDLN | view | |
| Metadata.allowExtensions | true | view |
Fields (44)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CustomerReturn | I_SalesDocumentScheduleLine | SalesDocument | |
| KEY | CustomerReturnItem | SalesDocumentItem | ||
| KEY | ScheduleLine | ScheduleLine | ||
| ScheduleLineCategory | ScheduleLineCategory | |||
| OrderQuantityUnit | OrderQuantityUnit | |||
| OrderToBaseQuantityDnmntr | OrderToBaseQuantityDnmntr | |||
| OrderToBaseQuantityNmrtr | OrderToBaseQuantityNmrtr | |||
| BaseUnit | BaseUnit | |||
| RequestedDeliveryDate | I_SalesDocumentScheduleLine | RequestedDeliveryDate | ||
| RequestedDeliveryTime | RequestedDeliveryTime | |||
| ScheduleLineOrderQuantity | ScheduleLineOrderQuantity | |||
| CorrectedQtyInOrderQtyUnit | CorrectedQtyInOrderQtyUnit | |||
| ConfirmedDeliveryDate | ConfirmedDeliveryDate | |||
| ConfirmedDeliveryTime | ConfirmedDeliveryTime | |||
| ConfdOrderQtyByMatlAvailCheck | ConfdOrderQtyByMatlAvailCheck | |||
| ConfdSchedLineReqdDelivDate | ConfdSchedLineReqdDelivDate | |||
| ScheduleLineConfirmationStatus | ScheduleLineConfirmationStatus | |||
| OrderID | I_SalesDocumentScheduleLine | OrderID | ||
| DeliveryCreationDate | DeliveryCreationDate | |||
| TransportationPlanningDate | TransportationPlanningDate | |||
| TransportationPlanningTime | TransportationPlanningTime | |||
| LoadingDate | LoadingDate | |||
| LoadingTime | LoadingTime | |||
| ItemIsDeliveryRelevant | ItemIsDeliveryRelevant | |||
| DelivBlockReasonForSchedLine | DelivBlockReasonForSchedLine | |||
| OpenReqdDelivQtyInOrdQtyUnit | OpenReqdDelivQtyInOrdQtyUnit | |||
| OpenReqdDelivQtyInBaseUnit | OpenReqdDelivQtyInBaseUnit | |||
| OpenConfdDelivQtyInOrdQtyUnit | OpenConfdDelivQtyInOrdQtyUnit | |||
| OpenConfdDelivQtyInBaseUnit | OpenConfdDelivQtyInBaseUnit | |||
| DeliveredQtyInOrderQtyUnit | DeliveredQtyInOrderQtyUnit | |||
| DeliveredQuantityInBaseUnit | DeliveredQuantityInBaseUnit | |||
| GoodsMovementType | GoodsMovementType | |||
| OpenDeliveryNetAmount | OpenDeliveryNetAmount | |||
| TransactionCurrency | I_SalesDocumentScheduleLine | TransactionCurrency | ||
| _CustomerReturn | _CustomerReturn | |||
| _CustomerReturnItem | _CustomerReturnItem | |||
| _ScheduleLineCategory | _ScheduleLineCategory | |||
| _ScheduleLineConfStatus | _ScheduleLineConfStatus | |||
| _TransactionCurrency | I_SalesDocumentScheduleLine | _TransactionCurrency | ||
| _OrderID | _OrderID | |||
| _OrderQuantityUnit | _OrderQuantityUnit | |||
| _BaseUnit | _BaseUnit | |||
| _DelivBlockReasonForSchedLine | _DelivBlockReasonForSchedLine | |||
| _GoodsMovementType | _GoodsMovementType |
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.representativeKey: 'ScheduleLine'
@ObjectModel.usageType.dataClass: #TRANSACTIONAL
@ObjectModel.usageType.serviceQuality: #B
@ObjectModel.usageType.sizeCategory: #L
@EndUserText.label: 'Returns Order Schedule Line'
@Analytics.dataCategory: #DIMENSION
@VDM.viewType: #BASIC
@AccessControl.authorizationCheck:#CHECK
@AbapCatalog.sqlViewName: 'ISDCUSTRETSCHDLN'
@Metadata.allowExtensions:true
define view I_CustomerReturnScheduleLine
as select from I_SalesDocumentScheduleLine as SalesDocumentScheduleLine
left outer to one join I_SalesDocumentBasic as SalesDocumentBasic on SalesDocumentScheduleLine.SalesDocument = SalesDocumentBasic.SalesDocument
association [1..1] to I_CustomerReturn as _CustomerReturn on $projection.CustomerReturn = _CustomerReturn.CustomerReturn
association [1..1] to I_CustomerReturnItem as _CustomerReturnItem on $projection.CustomerReturn = _CustomerReturnItem.CustomerReturn
and $projection.CustomerReturnItem = _CustomerReturnItem.CustomerReturnItem
{
//Key
@ObjectModel.foreignKey.association: '_CustomerReturn'
key SalesDocumentScheduleLine.SalesDocument as CustomerReturn,
@ObjectModel.foreignKey.association: '_CustomerReturnItem'
key SalesDocumentItem as CustomerReturnItem,
key ScheduleLine,
//Category
@ObjectModel.foreignKey.association: '_ScheduleLineCategory'
ScheduleLineCategory,
//Sales
@Semantics.unitOfMeasure: true
@ObjectModel.foreignKey.association: '_OrderQuantityUnit'
OrderQuantityUnit,
OrderToBaseQuantityDnmntr,
OrderToBaseQuantityNmrtr,
@Semantics.unitOfMeasure: true
@ObjectModel.foreignKey.association: '_BaseUnit'
BaseUnit,
//Requested
SalesDocumentScheduleLine.RequestedDeliveryDate,
RequestedDeliveryTime,
@DefaultAggregation: #SUM
@Semantics.quantity.unitOfMeasure: 'OrderQuantityUnit'
ScheduleLineOrderQuantity,
@DefaultAggregation: #SUM
@Semantics.quantity.unitOfMeasure: 'OrderQuantityUnit'
CorrectedQtyInOrderQtyUnit,
//Confirmed
ConfirmedDeliveryDate,
ConfirmedDeliveryTime,
@DefaultAggregation: #SUM
@Semantics.quantity.unitOfMeasure: 'OrderQuantityUnit'
ConfdOrderQtyByMatlAvailCheck,
ConfdSchedLineReqdDelivDate,
//Availibility
@ObjectModel.foreignKey.association: '_ScheduleLineConfStatus'
ScheduleLineConfirmationStatus,
//InternalProcurement
@ObjectModel.foreignKey.association: '_OrderID'
SalesDocumentScheduleLine.OrderID,
//Shipping
DeliveryCreationDate,
TransportationPlanningDate,
TransportationPlanningTime,
LoadingDate,
LoadingTime,
ItemIsDeliveryRelevant,
@ObjectModel.foreignKey.association: '_DelivBlockReasonForSchedLine'
DelivBlockReasonForSchedLine,
@DefaultAggregation: #SUM
@Semantics.quantity.unitOfMeasure: 'OrderQuantityUnit'
OpenReqdDelivQtyInOrdQtyUnit,
@DefaultAggregation: #SUM
@Semantics.quantity.unitOfMeasure: 'BaseUnit'
OpenReqdDelivQtyInBaseUnit,
@DefaultAggregation: #SUM
@Semantics.quantity.unitOfMeasure: 'OrderQuantityUnit'
OpenConfdDelivQtyInOrdQtyUnit,
@DefaultAggregation: #SUM
@Semantics.quantity.unitOfMeasure: 'BaseUnit'
OpenConfdDelivQtyInBaseUnit,
@DefaultAggregation: #SUM
@Semantics.quantity.unitOfMeasure: 'OrderQuantityUnit'
DeliveredQtyInOrderQtyUnit,
@DefaultAggregation: #SUM
@Semantics.quantity.unitOfMeasure: 'BaseUnit'
DeliveredQuantityInBaseUnit,
@ObjectModel.foreignKey.association: '_GoodsMovementType'
GoodsMovementType,
@DefaultAggregation: #SUM
@Semantics.amount.currencyCode: 'TransactionCurrency'
OpenDeliveryNetAmount,
@Semantics.currencyCode: true
@ObjectModel.foreignKey.association: '_TransactionCurrency'
SalesDocumentScheduleLine.TransactionCurrency,
@ObjectModel.association.type: [#TO_COMPOSITION_ROOT]
_CustomerReturn,
@ObjectModel.association.type: [#TO_COMPOSITION_PARENT]
_CustomerReturnItem,
_ScheduleLineCategory,
_ScheduleLineConfStatus,
SalesDocumentScheduleLine._TransactionCurrency,
_OrderID,
_OrderQuantityUnit,
_BaseUnit,
_DelivBlockReasonForSchedLine,
_GoodsMovementType
}
where
SalesDocumentBasic.SDDocumentCategory = 'H';
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_SALESDOCUMENTBASIC",
"I_SALESDOCUMENTSCHEDULELINE"
],
"ASSOCIATED":
[
"I_CURRENCY",
"I_CUSTOMERRETURN",
"I_CUSTOMERRETURNITEM",
"I_DELIVERYBLOCKREASON",
"I_GOODSMOVEMENTTYPE",
"I_MFGORDER",
"I_SCHEDULELINECATEGORY",
"I_SCHEDULELINECONFSTATUS",
"I_UNITOFMEASURE"
],
"BASE":
[
"I_SALESDOCUMENTSCHEDULELINE"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
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