I_GenericPriority

DDL: I_GENERICPRIORITY Type: view BASIC

Generic Priority

I_GenericPriority (Basic)

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

Asset Management

I_GenericPriority is a Basic CDS View that provides data about "Generic Priority" in SAP S/4HANA. It reads from 1 data source (t356) and exposes 14 fields with key fields GenericPriorityType, PriorityCode. It has 5 associations to related views.

SAP Help Documentation

CategoryCDS Views for Maintenance Management
Purpose
This CDS view is designed to provide a structured representation of priority-related data within a system. It captures various attributes associated with generic priorities, such as priority codes, types, shift factors, and unit measures, which are essential for customizing and managing priority settings in business processes. To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .

Structure
Important Fields Important fields in this view include the following: Field Name Description PRIORITYCODE Priority GENERICPRIORITYTYPE Priority Type GENERICENDDATESHIFTFACTOR Relative End Date LTSTACCEPTABLECOMPLTNDTEFACTOR Duration for final Due Date GENERICSTARTDATESHIFTFACTOR Relative Start Date for Task/Notification in Days GENERICPRIORITYCOLORCODE Priority Color Code GENERICENDDATESHIFTFACTORUNIT Relative End Date Unit LTSTACCEPTABLECOMPLTNDTEUOM Unit of Measure for Final Due Date GENERICSTRTDATESHIFTFACTORUNIT Relative Start Date Unit

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessAsset Management
Application ComponentPM-WOC-MN
CapabilitiesData Source for Defining CDS Entities
PackageAsset Management for SAP S/4HANA Cloud Private Edition

Documentation

Data Sources (1)

SourceAliasJoin Type
t356 t356 from

Associations (5)

CardinalityTargetAliasCondition
[0..1] I_GenericPriorityType _GenericPriorityType _GenericPriorityType.GenericPriorityType = $projection.GenericPriorityType
[0..*] I_GenericPriorityText _GenericPriorityText _GenericPriorityText.PriorityCode = $projection.PriorityCode and _GenericPriorityText.GenericPriorityType = $projection.GenericPriorityType
[0..1] I_UnitOfMeasure _GenericStrtDateShiftFctrUnit _GenericStrtDateShiftFctrUnit.UnitOfMeasure = $projection.GenericStrtDateShiftFactorUnit
[0..1] I_UnitOfMeasure _GenericEndDateShiftFactorUnit _GenericEndDateShiftFactorUnit.UnitOfMeasure = $projection.GenericEndDateShiftFactorUnit
[0..1] I_UnitOfMeasure _LtstAcceptableCompltnDteUoM _LtstAcceptableCompltnDteUoM.UnitOfMeasure = $projection.LtstAcceptableCompltnDteUoM

Annotations (11)

NameValueLevelField
AbapCatalog.compiler.compareFilter true view
AbapCatalog.sqlViewName IGENERICPRIORITY view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Generic Priority view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
ObjectModel.representativeKey PriorityCode view
ObjectModel.usageType.dataClass #CUSTOMIZING view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #S view

Fields (14)

KeyFieldSource TableSource FieldDescription
KEY GenericPriorityType t356 artpr Priority Type
KEY PriorityCode t356 priok Priority
GenericStartDateShiftFactor t356 tagbn Relative Start Date for Task/Notification in Days
GenericStrtDateShiftFactorUnit t356 ehtbg Relative Start Date Unit
GenericEndDateShiftFactor t356 tagen Relative End Date for Task/Notification in Days
GenericEndDateShiftFactorUnit t356 ehten Relative End Date Unit
GenericPriorityColorCode t356 priocc Priority Color Code
LtstAcceptableCompltnDteFactor t356 lacd_unit Duration for Final Due Date
LtstAcceptableCompltnDteUoM t356 lacd_uom Unit of Measure for Final Due Date
_GenericPriorityType _GenericPriorityType
_GenericPriorityText _GenericPriorityText
_GenericStrtDateShiftFctrUnit _GenericStrtDateShiftFctrUnit
_GenericEndDateShiftFactorUnit _GenericEndDateShiftFactorUnit
_LtstAcceptableCompltnDteUoM _LtstAcceptableCompltnDteUoM

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 I_GenericPriority.
-- 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 I_GenericPriority AS
SELECT
  t356.artpr AS GenericPriorityType,
  t356.priok AS PriorityCode,
  t356.tagbn AS GenericStartDateShiftFactor,
  t356.ehtbg AS GenericStrtDateShiftFactorUnit,
  t356.tagen AS GenericEndDateShiftFactor,
  t356.ehten AS GenericEndDateShiftFactorUnit,
  t356.priocc AS GenericPriorityColorCode,
  t356.lacd_unit AS LtstAcceptableCompltnDteFactor,
  t356.lacd_uom AS LtstAcceptableCompltnDteUoM
FROM t356
LEFT OUTER JOIN I_GenericPriorityType AS _GenericPriorityType ON _GenericPriorityType.GenericPriorityType = GenericPriorityType  -- association [0..1]
LEFT OUTER JOIN I_GenericPriorityText AS _GenericPriorityText ON _GenericPriorityText.PriorityCode = PriorityCode AND _GenericPriorityText.GenericPriorityType = GenericPriorityType  -- association [0..*]
LEFT OUTER JOIN I_UnitOfMeasure AS _GenericStrtDateShiftFctrUnit ON _GenericStrtDateShiftFctrUnit.UnitOfMeasure = GenericStrtDateShiftFactorUnit  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _GenericEndDateShiftFactorUnit ON _GenericEndDateShiftFactorUnit.UnitOfMeasure = GenericEndDateShiftFactorUnit  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _LtstAcceptableCompltnDteUoM ON _LtstAcceptableCompltnDteUoM.UnitOfMeasure = LtstAcceptableCompltnDteUoM  -- association [0..1]
;