R_PurchasingDocScheduleLine
Purchasing Document Schedule Line
R_PurchasingDocScheduleLine is a Basic CDS View that provides data about "Purchasing Document Schedule Line" in SAP S/4HANA. It reads from 1 data source (eket) and exposes 42 fields with key fields PurchasingDocument, PurchasingDocumentItem, ScheduleLine. It has 2 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| eket | eket | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_Purchaserequisitionitem | _PurchaseRequisitionItem | $projection.PurchaseRequisition = _PurchaseRequisitionItem.PurchaseRequisition and $projection.PurchaseRequisitionItem = _PurchaseRequisitionItem.PurchaseRequisitionItem |
| [1..1] | I_Purchaserequisition | _PurchaseRequisition | $projection.PurchaseRequisition = _PurchaseRequisition.PurchaseRequisition |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| EndUserText.label | Purchasing Document Schedule Line | view | |
| VDM.viewType | #BASIC | view | |
| AbapCatalog.sqlViewName | RMMPRGDOCSCHEDLN | view | |
| AccessControl.authorizationCheck | #PRIVILEGED_ONLY | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view |
Fields (42)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PurchasingDocument | eket | ebeln | |
| KEY | PurchasingDocumentItem | eket | ebelp | |
| KEY | ScheduleLine | etenr | ||
| DelivDateCategory | lpein | |||
| ScheduleLineDeliveryDate | eindt | |||
| SchedLineStscDeliveryDate | slfdt | |||
| PerformancePeriodStartDate | startdate | |||
| PerformancePeriodEndDate | enddate | |||
| ScheduleLineDeliveryTime | uzeit | |||
| ScheduleLineOrderQuantity | eket | menge | ||
| ScheduleLineOrderDate | bedat | |||
| RoughGoodsReceiptQty | wemng | |||
| SchedulingAgreementReleaseType | abart | |||
| CommittedDeliveryDate | dat01 | |||
| SchedLinePrevDelivDate | altdt | |||
| PurchaseRequisition | eket | banfn | ||
| PurchaseRequisitionItem | eket | bnfpo | ||
| SourceOfCreation | estkz | |||
| PrevDelivQtyOfScheduleLine | ameng | |||
| PurchasingSchdLnNrOfReminders | eket | mahnz | ||
| ScheduleLineIsFixed | fixkz | |||
| ScheduleLineCommittedQuantity | mng02 | |||
| Reservation | rsnum | |||
| ProductAvailabilityDate | mbdat | |||
| ProductAvailabilityTime | mbuhr | |||
| TransportationPlanningDate | tddat | |||
| TransportationPlanningTime | tduhr | |||
| LoadingDate | lddat | |||
| LoadingTime | lduhr | |||
| GoodsIssueDate | wadat | |||
| GoodsIssueTime | wauhr | |||
| STOLatestPossibleGRDate | eldat | |||
| STOLatestPossibleGRTime | eluhr | |||
| GoodsReceiptQuantity | wemng | |||
| StockTransferDeliveredQuantity | glmng | |||
| ScheduleLineIssuedQuantity | wamng | |||
| Batch | charg | |||
| BatchBySupplier | licha | |||
| RouteSchedule | aulwe | |||
| ScheduleLineUniqueID | eket | uniqueid | ||
| _PurchaseRequisition | _PurchaseRequisition | |||
| _PurchaseRequisitionItem | _PurchaseRequisitionItem |
@AbapCatalog.preserveKey: true
@AbapCatalog.compiler.compareFilter: true
@EndUserText.label: 'Purchasing Document Schedule Line'
@VDM.viewType: #BASIC
@AbapCatalog.sqlViewName: 'RMMPRGDOCSCHEDLN'
@AccessControl.authorizationCheck: #PRIVILEGED_ONLY
@ObjectModel.usageType.serviceQuality: #A
@ObjectModel.usageType.sizeCategory: #L
@ObjectModel.usageType.dataClass: #TRANSACTIONAL
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM.lifecycle.contract.type: #SAP_INTERNAL_API
define view R_PurchasingDocScheduleLine
as select from eket as eket
association [0..1] to I_Purchaserequisitionitem as _PurchaseRequisitionItem on $projection.PurchaseRequisition = _PurchaseRequisitionItem.PurchaseRequisition
and $projection.PurchaseRequisitionItem = _PurchaseRequisitionItem.PurchaseRequisitionItem
association [1..1] to I_Purchaserequisition as _PurchaseRequisition on $projection.PurchaseRequisition = _PurchaseRequisition.PurchaseRequisition
//association [1..1] to I_Deliverydatecategory as _DeliveryDateCategory on $projection.DelivDateCategory = _DeliveryDateCategory.DelivDateType
{
//@ObjectModel.foreignKey.association: '_PurchasingDocument'
key eket.ebeln as PurchasingDocument,
//@ObjectModel.foreignKey.association: '_PurchaseDocumentItem'
key eket.ebelp as PurchasingDocumentItem,
key etenr as ScheduleLine,
//_DeliveryDateCategory.Language,
//@ObjectModel: { foreignKey.association: '_Deliverydatecategtext'}
// @ObjectModel: { foreignKey.association: '_DeliveryDateCategory'}
lpein as DelivDateCategory,
eindt as ScheduleLineDeliveryDate,
slfdt as SchedLineStscDeliveryDate,
startdate as PerformancePeriodStartDate,
enddate as PerformancePeriodEndDate,
uzeit as ScheduleLineDeliveryTime,
eket.menge as ScheduleLineOrderQuantity,
bedat as ScheduleLineOrderDate,
wemng as RoughGoodsReceiptQty,
abart as SchedulingAgreementReleaseType,
dat01 as CommittedDeliveryDate,
altdt as SchedLinePrevDelivDate,
// _dataaging as SchedulingLineDataAgingFilter,
@ObjectModel.foreignKey.association: '_PurchaseRequisition'
eket.banfn as PurchaseRequisition,
@ObjectModel.foreignKey.association: '_PurchaseRequisitionItem'
eket.bnfpo as PurchaseRequisitionItem,
estkz as SourceOfCreation,
ameng as PrevDelivQtyOfScheduleLine,
eket.mahnz as PurchasingSchdLnNrOfReminders,
fixkz as ScheduleLineIsFixed,
mng02 as ScheduleLineCommittedQuantity,
rsnum as Reservation,
mbdat as ProductAvailabilityDate,
mbuhr as ProductAvailabilityTime,
tddat as TransportationPlanningDate,
tduhr as TransportationPlanningTime,
lddat as LoadingDate,
lduhr as LoadingTime,
wadat as GoodsIssueDate,
wauhr as GoodsIssueTime,
eldat as STOLatestPossibleGRDate,
eluhr as STOLatestPossibleGRTime,
wemng as GoodsReceiptQuantity,
glmng as StockTransferDeliveredQuantity,
wamng as ScheduleLineIssuedQuantity,
charg as Batch,
licha as BatchBySupplier,
// Fields added for R_*TP development, GFN need to be approved
aulwe as RouteSchedule,
// eldat as GoodsReceiptEndDate,
// eluhr as GoodsReceiptEndTime,
// dat01 as CommittedDate,
// handoverdate as HandoverDte,
// handovertime as HandoverTme,
// geo_route as GeographicalRoute,
// Fields doen't exist in DB Table, but exist in BAPIMEPOSCHEDULE
// PurchasingDocumentDeletionCode - DELETE_IND
// IsClosed - REQ_CLOSED
//Persistent Key Adoption
eket.uniqueid as ScheduleLineUniqueID,
case
when
eket.menge > wemng
then
(eket.menge - wemng )
else
0
end as ScheduleLineOpenQuantity,
_PurchaseRequisition,
_PurchaseRequisitionItem
// _DeliveryDateCategory
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"EKET"
],
"ASSOCIATED":
[
"I_PURCHASEREQUISITION",
"I_PURCHASEREQUISITIONITEM"
],
"BASE":
[],
"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