C_APSOrdDetsByWorkAreaDEX

DDL: C_APSORDDETSBYWORKAREADEX Type: view_entity CONSUMPTION

DEX for Order Details by Work Area

C_APSOrdDetsByWorkAreaDEX (Consumption)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.

Sourcing & Procurement

C_APSOrdDetsByWorkAreaDEX is a Consumption CDS View that provides data about "DEX for Order Details by Work Area" in SAP S/4HANA. It reads from 1 data source (P_APSOrdDetsByWrkArea) and exposes 79 fields with key fields AdvncdPlngPlanningVersion, SimulationSessionUUID, PlanningModel, AdvncdPlngOrderInternalNumber, AdvncdPlngScheduleLineItmNmbr. It has 11 associations to related views.

SAP Help Documentation

CategoryCDS Views for Data Extraction
Purpose
This CDS view is a data extraction view that gets the order details such as the status, duration, quantity, date, and time. These order details depend on the Advanced Planning products and resources defined in the Work Area/Customizing ID passed to the CDS view. The CDS view selects only those orders that (at least) lie partially between the Start Date and End Date passed to the CDS view. This CDS view can be used as a source of data extraction by the SAP Business Information or SAP Business Warehouse systems.

Prerequisites
Authorizations Ensure that the following authorization objects are assigned to your user: C_APO_VERS (APO: Planning Version, Planning Model) C_APO_MOD (APO: Planning Model) C_APO_PROD (APO: Advanced Planning Product Name, Advanced Planning Source Location) C_APO_LOC (APO: Advanced Planning Source Location) C_APO_LOC (APO: Advanced Planning Destination Location) C_APO_PPL (APO: Production Planner)

Structure
Parameters The parameters of the CDS view are as follows: P_PlanningVersionExternal : This parameter is used to specify the Planning Version to be used for evaluating the order details. P_AdvancedPlanningWorkArea : This parameter is used to specify the Work Area. The resources, products, and orders defined in the work area are used for evaluating the order details. P_AdvncdPlngOptPrflCustID : This parameter is used to specify the Customizing ID. If you are working with user-specific profiles, you must enter the Customizing ID of the profile. If you are working with general profiles, you must pass a blank space. P_StartDate : This parameter is used to specify the Start Date for evaluating the order details (the Start Date is included in the evaluation). P_EndDate : This parameter is used to specify the End Date for evaluating the order details (the End Date is included in the evaluation). Important Fields Important fields in this view include the following: Field Name Description AdvncdPlngLeadTmeDurn Lead Time AdvncdPlngSetupTmeDurn Setup Time AdvncdPlngProdnTmeDurn Processing Time AdvncdPlngWaitTmeDurn Wait Time AdvncdPlngQueueTmeDurn Queue Time AdvncdPlngWIPTmeDurn WIP Duration AdvancedPlanningOrderDelay Order Delay AdvncdPlngOriglQty Original Quantity AdvncdPlngTotQty Total Quantity AdvncdPlngRealQty Receipt Quantity AdvncdPlngScrapQty Scrap Quantity AdvncdPlngConfdQty Confirmed Quantity (ATP)

Data Extraction
Data Extraction Type Full (physical deletions are possible in source tables)

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessSourcing & Procurement
Application ComponentSCM-APO-PPS-ANA
CapabilitiesData Source for Data Extraction
PackageSourcing & Procurement for SAP S/4HANA Cloud Private Edition
Description <p>This CDS view is a data extraction view that gets the order details such as the status, duration, quantity, date, and time. These order details depend on the Advanced Planning products and resources defined in the Work Area/Customizing ID passed to the CDS view. The CDS view selects only those orders that (at least) lie partially between the Start Date and End Date passed to the CDS view. This CDS view can be used as a source of data extraction by the SAP Business Information or SAP Business Warehouse systems.</p>

Documentation

Data Sources (1)

SourceAliasJoin Type
P_APSOrdDetsByWrkArea P_APSOrdDetsByWrkArea from

Parameters (2)

NameTypeDefault
P_StartDate vdm_v_start_date
P_EndDate vdm_v_end_date

Associations (11)

CardinalityTargetAliasCondition
[0..1] I_APSPlanVersion _PlanningVersion $projection.AdvncdPlngPlanningVersion = _PlanningVersion.AdvncdPlngPlanningVersion
[0..1] I_APSSimulationSession _SimulationSession $projection.SimulationSessionUUID = _SimulationSession.SimulationSessionUUID
[0..1] I_LocationBasic _SourceLocation $projection.AdvncdPlngFrmLocID = _SourceLocation.LocationUUID
[0..1] I_LocationBasic _DestinationLocation $projection.AdvncdPlngToLocID = _DestinationLocation.LocationUUID
[0..1] I_SCMPlanner _SCMPlanner $projection.ProductionPlanner = _SCMPlanner.Planner
[0..*] I_APSPlanningModelText _PlanningModelText $projection.PlanningModel = _PlanningModelText.PlanningModel
[0..*] I_AdvncdPlngATPCategoryText _ATPCategoryText $projection.AdvncdPlngOrderATPCategory = _ATPCategoryText.AdvncdPlngOrderATPCategory
[0..*] I_ProductText _ProductText $projection.AdvancedPlanningProductName = _ProductText.Product
[0..*] I_ProductGroupText_2 _ProductGroupText $projection.AdvancedPlanningMaterialGroup = _ProductGroupText.ProductGroup
[0..*] I_UnitOfMeasureText _ProductUnitText $projection.ProductBaseUnit = _ProductUnitText.UnitOfMeasure
[0..*] I_UnitOfMeasureText _OrdTimeUnitText $projection.AdvncdPlngRsceUtilznCapUnit = _OrdTimeUnitText.UnitOfMeasure

Annotations (10)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #NOT_REQUIRED view
EndUserText.label DEX for Order Details by Work Area view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.modelingPattern #NONE view
VDM.viewType #CONSUMPTION view
Analytics.dataExtraction.enabled true view

Fields (79)

KeyFieldSource TableSource FieldDescription
KEY AdvncdPlngPlanningVersion orders AdvncdPlngPlanningVersion Name of Planning Version
KEY SimulationSessionUUID orders SimulationSessionUUID GUID for Identifying Transactional Simulation Session
KEY PlanningModel orders PlanningModel Model Name in Supply Chain Network
KEY AdvncdPlngOrderInternalNumber orders AdvncdPlngOrderInternalNumber Order Number
KEY AdvncdPlngScheduleLineItmNmbr orders AdvncdPlngScheduleLineItmNmbr Item Number for Identification of an Input/Output Node
KEY AdvncdPlngScheduleLineNumber orders AdvncdPlngScheduleLineNumber Schedule Line Number for Identification of an I/O Node
PlanningVersionExternal orders PlanningVersionExternal Planning Version
AdvncdPlngOrderID orders AdvncdPlngOrderID Internal Number (UID) for an Order in APO
AdvncdPlngOrderATPCategory orders AdvncdPlngOrderATPCategory Category of Stock/Receipt/Requirement/Forecast
AdvncdPlngOrderType orders AdvncdPlngOrderType Category of Order Object in LC
AdvancedPlanningOrderStatus orders AdvancedPlanningOrderStatus Current Status
AdvncdPlngOrderObjectType orders AdvncdPlngOrderObjectType OLTP Object Type
AdvncdPlngProductID orders AdvncdPlngProductID Internal Number (UID) for Product
AdvancedPlanningProductName orders AdvancedPlanningProductName Product Number
ProductBaseUnit orders ProductBaseUnit Base Unit of Measure
AdvancedPlanningMaterialGroup orders AdvancedPlanningMaterialGroup Material Group
ProductionPlanner orders ProductionPlanner Production Planner
ProductionPlannerName _SCMPlanner PlannerName Production Planner Name
AdvncdPlngFrmLocID Internal Location Number (Customer, Supplier, or Plant)
AdvancedPlanningSourceLocation Source Location
SourceLocationType _SourceLocation LocationType Source Location Type
AdvncdPlngToLocID Internal Location Number (Customer, Supplier, or Plant)
AdvancedPlanningDestLocation Destination Location
AdvncdPlngDestLocType _DestinationLocation LocationType Destination Location Type
AdvancedPlanningSpclStkType orders AdvancedPlanningSpclStkType Special Stock Indicator
AdvncdPlngSpclStkSgmtKeyVal orders AdvncdPlngSpclStkSgmtKeyVal Key for Special Stock Segment
SubcontractingFlag orders SubcontractingFlag Indicator: Subcontracting (0,1)
ConsignmentFlag orders ConsignmentFlag Indicator: Consignment (0,1)
AdvncdPlngSupNameSrce orders AdvncdPlngSupNameSrce Name of Source of Supply
AdvncdPlngMeansOfTransport orders AdvncdPlngMeansOfTransport Means of Transport
AdvncdPlngCrtnDte orders AdvncdPlngCrtnDte Creation Date of an Order
CreationTime orders CreationTime Time of Change
AdvncdPlngEffctvStrtDte orders AdvncdPlngEffctvStrtDte Validity Start Date of an Order
AdvncdPlngEffctvStrtTme orders AdvncdPlngEffctvStrtTme Start of Validity Period of an Order
AdvncdPlngEffctvEndDte orders AdvncdPlngEffctvEndDte Validity End Date of an Order
AdvncdPlngEffctvEndTme orders AdvncdPlngEffctvEndTme End of Validity of an Order
AdvncdPlngOrderStartDate orders AdvncdPlngOrderStartDate Start Date of First Order Activity
AdvncdPlngOrderStartTime orders AdvncdPlngOrderStartTime Start Time of First Order Activity
AdvncdPlngOrdEndDte orders AdvncdPlngOrdEndDte End Date of Last Order Activity
AdvncdPlngOrdEndTme orders AdvncdPlngOrdEndTme End Time of Last Order Activity
AdvancedPlanningOutpStartDate orders AdvancedPlanningOutpStartDate Start Date of an I/O Node
AdvancedPlanningOutpStartTime orders AdvancedPlanningOutpStartTime Start Time of an I/O Node
AdvancedPlanningOutputEndDate orders AdvancedPlanningOutputEndDate End Date of an I/O Node
AdvancedPlanningOutputEndTime orders AdvancedPlanningOutputEndTime End Time of an I/O Node
AdvncdPlngRsceUtilznCapUnit orders AdvncdPlngRsceUtilznCapUnit Unit of Measurement for Time Dimension
AdvncdPlngLeadTmeDurn orders AdvncdPlngLeadTmeDurn Order Lead Time
AdvncdPlngSetupTmeDurn orders AdvncdPlngSetupTmeDurn Order Setup Time
AdvncdPlngProdnTmeDurn orders AdvncdPlngProdnTmeDurn Order Processing Time
AdvncdPlngWaitTmeDurn orders AdvncdPlngWaitTmeDurn Order Wait Time
AdvncdPlngQueueTmeDurn orders AdvncdPlngQueueTmeDurn Order Queue Time
AdvncdPlngWIPTmeDurn orders AdvncdPlngWIPTmeDurn APO-BW: WIP Duration of Order
AdvancedPlanningOrderDelay orders AdvancedPlanningOrderDelay SAP APO BW: Order Delay
AdvncdPlngOriglQty orders AdvncdPlngOriglQty Original Quantity
AdvncdPlngTotQty orders AdvncdPlngTotQty Total Quantity
AdvncdPlngRealQty orders AdvncdPlngRealQty Receipt Quantity or Requirements Quantity
AdvncdPlngScrapQty orders AdvncdPlngScrapQty Order Scrap Quantity
AdvncdPlngConfdQty orders AdvncdPlngConfdQty Confirmed Quantity (ATP)
MasterFlag orders MasterFlag Main Input/Output Nodes
AdvncdPlngOrderIsOutputFirmed Output Firmed
AdvncdPlngOrderIsInputFirmed Input Firmed
AdvncdPlngOrderIsFixed Checkbox
AdvncdPlngOrderIsReleased Released
AdvncdPlngOrderIsStarted Checkbox
AdvncdPlngOrderIsPrtlyConfirm Partially Confirmed
AdvncdPlngOrderIsConfirmed Final Confirmation
AdvncdPlngOrdIsPrtlyDlvrd Partially Delivered
AdvncdPlngOrderIsFinalDelivery Final Delivery
AdvncdPlngOrderIsConvertible orders AdvncdPlngOrderIsConvertible Convertible Order
_PlanningVersion _PlanningVersion
_SourceLocation _SourceLocation
_DestinationLocation _DestinationLocation
_SimulationSession _SimulationSession
_SCMPlanner _SCMPlanner
_PlanningModelText _PlanningModelText
_ATPCategoryText _ATPCategoryText
_ProductGroupText _ProductGroupText
_ProductUnitText _ProductUnitText
_OrdTimeUnitText _OrdTimeUnitText
_ProductText _ProductText

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 C_APSOrdDetsByWorkAreaDEX.
-- 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.
-- Parameters: P_StartDate : vdm_v_start_date, P_EndDate : vdm_v_end_date

CREATE VIEW C_APSOrdDetsByWorkAreaDEX AS
SELECT
  orders.AdvncdPlngPlanningVersion AS AdvncdPlngPlanningVersion,
  orders.SimulationSessionUUID AS SimulationSessionUUID,
  orders.PlanningModel AS PlanningModel,
  orders.AdvncdPlngOrderInternalNumber AS AdvncdPlngOrderInternalNumber,
  orders.AdvncdPlngScheduleLineItmNmbr AS AdvncdPlngScheduleLineItmNmbr,
  orders.AdvncdPlngScheduleLineNumber AS AdvncdPlngScheduleLineNumber,
  orders.PlanningVersionExternal AS PlanningVersionExternal,
  orders.AdvncdPlngOrderID AS AdvncdPlngOrderID,
  orders.AdvncdPlngOrderATPCategory AS AdvncdPlngOrderATPCategory,
  orders.AdvncdPlngOrderType AS AdvncdPlngOrderType,
  orders.AdvancedPlanningOrderStatus AS AdvancedPlanningOrderStatus,
  orders.AdvncdPlngOrderObjectType AS AdvncdPlngOrderObjectType,
  orders.AdvncdPlngProductID AS AdvncdPlngProductID,
  orders.AdvancedPlanningProductName AS AdvancedPlanningProductName,
  orders.ProductBaseUnit AS ProductBaseUnit,
  orders.AdvancedPlanningMaterialGroup AS AdvancedPlanningMaterialGroup,
  orders.ProductionPlanner AS ProductionPlanner,
  _SCMPlanner.PlannerName AS ProductionPlannerName,
  cast( orders.AdvncdPlngFrmLocID as /sapapo/location_id preserving type ) AS AdvncdPlngFrmLocID,
  cast( _SourceLocation.Location as /sapapo/locno preserving type ) AS AdvancedPlanningSourceLocation,
  _SourceLocation.LocationType AS SourceLocationType,
  cast( orders.AdvncdPlngToLocID as /sapapo/location_id preserving type ) AS AdvncdPlngToLocID,
  cast(_DestinationLocation.Location as /sapapo/locno preserving type ) AS AdvancedPlanningDestLocation,
  _DestinationLocation.LocationType AS AdvncdPlngDestLocType,
  orders.AdvancedPlanningSpclStkType AS AdvancedPlanningSpclStkType,
  orders.AdvncdPlngSpclStkSgmtKeyVal AS AdvncdPlngSpclStkSgmtKeyVal,
  orders.SubcontractingFlag AS SubcontractingFlag,
  orders.ConsignmentFlag AS ConsignmentFlag,
  orders.AdvncdPlngSupNameSrce AS AdvncdPlngSupNameSrce,
  orders.AdvncdPlngMeansOfTransport AS AdvncdPlngMeansOfTransport,
  orders.AdvncdPlngCrtnDte AS AdvncdPlngCrtnDte,
  orders.CreationTime AS CreationTime,
  orders.AdvncdPlngEffctvStrtDte AS AdvncdPlngEffctvStrtDte,
  orders.AdvncdPlngEffctvStrtTme AS AdvncdPlngEffctvStrtTme,
  orders.AdvncdPlngEffctvEndDte AS AdvncdPlngEffctvEndDte,
  orders.AdvncdPlngEffctvEndTme AS AdvncdPlngEffctvEndTme,
  orders.AdvncdPlngOrderStartDate AS AdvncdPlngOrderStartDate,
  orders.AdvncdPlngOrderStartTime AS AdvncdPlngOrderStartTime,
  orders.AdvncdPlngOrdEndDte AS AdvncdPlngOrdEndDte,
  orders.AdvncdPlngOrdEndTme AS AdvncdPlngOrdEndTme,
  orders.AdvancedPlanningOutpStartDate AS AdvancedPlanningOutpStartDate,
  orders.AdvancedPlanningOutpStartTime AS AdvancedPlanningOutpStartTime,
  orders.AdvancedPlanningOutputEndDate AS AdvancedPlanningOutputEndDate,
  orders.AdvancedPlanningOutputEndTime AS AdvancedPlanningOutputEndTime,
  orders.AdvncdPlngRsceUtilznCapUnit AS AdvncdPlngRsceUtilznCapUnit,
  orders.AdvncdPlngLeadTmeDurn AS AdvncdPlngLeadTmeDurn,
  orders.AdvncdPlngSetupTmeDurn AS AdvncdPlngSetupTmeDurn,
  orders.AdvncdPlngProdnTmeDurn AS AdvncdPlngProdnTmeDurn,
  orders.AdvncdPlngWaitTmeDurn AS AdvncdPlngWaitTmeDurn,
  orders.AdvncdPlngQueueTmeDurn AS AdvncdPlngQueueTmeDurn,
  orders.AdvncdPlngWIPTmeDurn AS AdvncdPlngWIPTmeDurn,
  orders.AdvancedPlanningOrderDelay AS AdvancedPlanningOrderDelay,
  orders.AdvncdPlngOriglQty AS AdvncdPlngOriglQty,
  orders.AdvncdPlngTotQty AS AdvncdPlngTotQty,
  orders.AdvncdPlngRealQty AS AdvncdPlngRealQty,
  orders.AdvncdPlngScrapQty AS AdvncdPlngScrapQty,
  orders.AdvncdPlngConfdQty AS AdvncdPlngConfdQty,
  orders.MasterFlag AS MasterFlag,
  cast( orders.AdvncdPlngOrderIsOutputFirmed as xfeld preserving type ) AS AdvncdPlngOrderIsOutputFirmed,
  cast( orders.AdvncdPlngOrderIsInputFirmed as xfeld preserving type ) AS AdvncdPlngOrderIsInputFirmed,
  cast( orders.AdvncdPlngOrderIsFixed as xfeld preserving type ) AS AdvncdPlngOrderIsFixed,
  cast( orders.AdvncdPlngOrderIsReleased as xfeld preserving type ) AS AdvncdPlngOrderIsReleased,
  cast( orders.AdvncdPlngOrderIsStarted as xfeld preserving type ) AS AdvncdPlngOrderIsStarted,
  cast( orders.AdvncdPlngOrderIsPrtlyConfirm as xfeld preserving type ) AS AdvncdPlngOrderIsPrtlyConfirm,
  cast( orders.AdvncdPlngOrderIsConfirmed as xfeld preserving type ) AS AdvncdPlngOrderIsConfirmed,
  cast( orders.AdvncdPlngOrdIsPrtlyDlvrd as xfeld preserving type ) AS AdvncdPlngOrdIsPrtlyDlvrd,
  cast( orders.AdvncdPlngOrderIsFinalDelivery as xfeld preserving type ) AS AdvncdPlngOrderIsFinalDelivery,
  orders.AdvncdPlngOrderIsConvertible AS AdvncdPlngOrderIsConvertible
FROM P_APSOrdDetsByWrkArea
LEFT OUTER JOIN I_APSPlanVersion AS _PlanningVersion ON AdvncdPlngPlanningVersion = _PlanningVersion.AdvncdPlngPlanningVersion  -- association [0..1]
LEFT OUTER JOIN I_APSSimulationSession AS _SimulationSession ON SimulationSessionUUID = _SimulationSession.SimulationSessionUUID  -- association [0..1]
LEFT OUTER JOIN I_LocationBasic AS _SourceLocation ON AdvncdPlngFrmLocID = _SourceLocation.LocationUUID  -- association [0..1]
LEFT OUTER JOIN I_LocationBasic AS _DestinationLocation ON AdvncdPlngToLocID = _DestinationLocation.LocationUUID  -- association [0..1]
LEFT OUTER JOIN I_SCMPlanner AS _SCMPlanner ON ProductionPlanner = _SCMPlanner.Planner  -- association [0..1]
LEFT OUTER JOIN I_APSPlanningModelText AS _PlanningModelText ON PlanningModel = _PlanningModelText.PlanningModel  -- association [0..*]
LEFT OUTER JOIN I_AdvncdPlngATPCategoryText AS _ATPCategoryText ON AdvncdPlngOrderATPCategory = _ATPCategoryText.AdvncdPlngOrderATPCategory  -- association [0..*]
LEFT OUTER JOIN I_ProductText AS _ProductText ON AdvancedPlanningProductName = _ProductText.Product  -- association [0..*]
LEFT OUTER JOIN I_ProductGroupText_2 AS _ProductGroupText ON AdvancedPlanningMaterialGroup = _ProductGroupText.ProductGroup  -- association [0..*]
LEFT OUTER JOIN I_UnitOfMeasureText AS _ProductUnitText ON ProductBaseUnit = _ProductUnitText.UnitOfMeasure  -- association [0..*]
LEFT OUTER JOIN I_UnitOfMeasureText AS _OrdTimeUnitText ON AdvncdPlngRsceUtilznCapUnit = _OrdTimeUnitText.UnitOfMeasure  -- association [0..*]
;