C_POMntnDocumentTypeValueHelp
Value Help for Order Types in "Manage Purchase Orders"
C_POMntnDocumentTypeValueHelp is a Consumption CDS View that provides data about "Value Help for Order Types in "Manage Purchase Orders"" in SAP S/4HANA. It reads from 1 data source (I_PurchasingDocumentType) and exposes 3 fields with key field PurchaseOrderType. It has 1 association to related views. Part of development package ODATA_MM_PUR_PO_MAINTAIN_V2.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_PurchasingDocumentType | I_PurchasingDocumentType | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_PurchasingDocumentTypeText | _PurchaseOrderTypeText | _PurchaseOrderTypeText.PurchasingDocumentCategory = 'F' and _PurchaseOrderTypeText.PurchasingDocumentType = $projection.PurchaseOrderType and Language = $session.system_language |
Annotations (14)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CPOMAINTDOCTY_VH | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Value Help for Order Types in "Manage Purchase Orders" | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.dataCategory | #VALUE_HELP | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| Search.searchable | true | view | |
| ObjectModel.representativeKey | PurchaseOrderType | view | |
| ObjectModel.resultSet.sizeCategory | #XS | view |
Fields (3)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PurchaseOrderType | |||
| PurchasingDocumentTypeName | _PurchaseOrderTypeText | PurchasingDocumentTypeName | ||
| _PurchaseOrderTypeText | _PurchaseOrderTypeText |
@AbapCatalog.sqlViewName: 'CPOMAINTDOCTY_VH'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Value Help for Order Types in "Manage Purchase Orders"'
@VDM.viewType: #CONSUMPTION
@ClientHandling.algorithm:#SESSION_VARIABLE
@ObjectModel.dataCategory:#VALUE_HELP
@ObjectModel.usageType.dataClass: #MASTER
@ObjectModel.usageType.serviceQuality: #B
@ObjectModel.usageType.sizeCategory: #M
@ObjectModel.semanticKey: ['PurchaseOrderType']
@Search.searchable: true
@ObjectModel.representativeKey: 'PurchaseOrderType'
@ObjectModel.resultSet.sizeCategory: #XS
//----------------------------------------------------------------------------------------------
// This is the F4 help CDS view for document types in "Manage Purchase Orders" app:
//
// -> the CDS view itself returns ALL PO document types from table T161
// -> the check if a PO document type is supported in "Manage Purchase Orders" is done in
// class "CL_MM_PUR_PO_MAINT_V2_DPC_EXT" in the re-defined methods
// "C_POMNTNDOCUMENT_GET_ENTITYSET" and "C_POMNTNDOCUMENT_GET_ENTITY"
//
//----------------------------------------------------------------------------------------------
define view C_POMntnDocumentTypeValueHelp
as select from I_PurchasingDocumentType
association [0..1] to I_PurchasingDocumentTypeText as _PurchaseOrderTypeText on _PurchaseOrderTypeText.PurchasingDocumentCategory = 'F'
and _PurchaseOrderTypeText.PurchasingDocumentType = $projection.PurchaseOrderType
and Language = $session.system_language
{
@Search: { defaultSearchElement: true, ranking: #HIGH }
@ObjectModel.text.association: '_PurchaseOrderTypeText'
key cast (PurchasingDocumentType as mm_purchaseordertype preserving type ) as PurchaseOrderType,
@Consumption.filter.hidden: true
_PurchaseOrderTypeText.PurchasingDocumentTypeName,
_PurchaseOrderTypeText
}
where
PurchasingDocumentCategory = 'F'
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