C_MM_SubcontractingOrderVH

DDL: C_MM_SUBCONTRACTINGORDERVH SQL: CSUBORDVH Type: view CONSUMPTION Package: ODATA_MM_PUR_SUBCONTRGORD_MNTR

Subcontracting Document Value Help

C_MM_SubcontractingOrderVH is a Consumption CDS View that provides data about "Subcontracting Document Value Help" in SAP S/4HANA. It reads from 1 data source (I_PurchasingDocument) and exposes 8 fields with key fields PurchasingDocument, PurchasingDocumentItem. It has 1 association to related views. Part of development package ODATA_MM_PUR_SUBCONTRGORD_MNTR.

Data Sources (1)

SourceAliasJoin Type
I_PurchasingDocument I_PurchasingDocument from

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_PurchasingDocumentItem _PurchasingDocumentItem $projection.PurchasingDocument = _PurchasingDocumentItem.PurchasingDocument

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName CSUBORDVH view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Subcontracting Document Value Help view
VDM.viewType #CONSUMPTION view
Search.searchable true view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.dataCategory #VALUE_HELP view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (8)

KeyFieldSource TableSource FieldDescription
KEY PurchasingDocument PurchasingDocument
KEY PurchasingDocumentItem _PurchasingDocumentItem PurchasingDocumentItem
PurchasingOrganization PurchasingOrganization
PurchasingGroup PurchasingGroup
CompanyCode CompanyCode
PurchasingDocumentCategory PurchasingDocumentCategory
PurchasingDocumentType PurchasingDocumentType
IsEndOfPurposeBlocked IsEndOfPurposeBlocked
@AbapCatalog.sqlViewName: 'CSUBORDVH'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #MANDATORY
@EndUserText.label: 'Subcontracting Document Value Help'
@VDM.viewType: #CONSUMPTION
@Search.searchable: true
@ObjectModel.usageType.dataClass: #MASTER
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.sizeCategory: #S
@ObjectModel.dataCategory:#VALUE_HELP

@ClientHandling.algorithm: #SESSION_VARIABLE

define view C_MM_SubcontractingOrderVH

  as select from I_PurchasingDocument

  association [0..1] to I_PurchasingDocumentItem as _PurchasingDocumentItem on $projection.PurchasingDocument = _PurchasingDocumentItem.PurchasingDocument

{

      @Search: { defaultSearchElement: true, ranking: #HIGH, fuzzinessThreshold: 0.8 }
  key PurchasingDocument,
  key _PurchasingDocumentItem.PurchasingDocumentItem,

      @Search: { defaultSearchElement: true, ranking: #HIGH, fuzzinessThreshold: 0.8 }
      PurchasingOrganization,

      @Search: { defaultSearchElement: true, ranking: #HIGH, fuzzinessThreshold: 0.8 }
      PurchasingGroup,

      @Search: { defaultSearchElement: true, ranking: #HIGH, fuzzinessThreshold: 0.8 }
      CompanyCode,

      @Search: { defaultSearchElement: true, ranking: #HIGH, fuzzinessThreshold: 0.8 }
      PurchasingDocumentCategory,

      @Search: { defaultSearchElement: true, ranking: #HIGH, fuzzinessThreshold: 0.8 }
      PurchasingDocumentType,

      @Consumption.hidden: true
      IsEndOfPurposeBlocked


}

where
  (
       _PurchasingDocumentItem.PurchasingDocumentItemCategory = '3'
    or _PurchasingDocumentItem.SupplierIsSubcontractor        = 'X'
  )

  and(
       PurchasingDocumentCategory                             = 'F'
    or PurchasingDocumentCategory                             = 'L'
  )