I_CntrlPurContrClassification

DDL: I_CNTRLPURCONTRCLASSIFICATION SQL: ICCTRCLASSFCTN Type: view BASIC

Central Purchase Contract Classification

I_CntrlPurContrClassification is a Basic CDS View that provides data about "Central Purchase Contract Classification" in SAP S/4HANA. It reads from 1 data source (I_PurchasingDocumentType) and exposes 2 fields with key field PurchasingDocumentType.

Data Sources (1)

SourceAliasJoin Type
I_PurchasingDocumentType _PurchasingDocumentType from

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName ICCTRCLASSFCTN view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Central Purchase Contract Classification view
VDM.viewType #BASIC view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #CUSTOMIZING view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view

Fields (2)

KeyFieldSource TableSource FieldDescription
KEY PurchasingDocumentType PurchasingDocumentType
PurgDocFieldSelControlKey PurgDocFieldSelControlKey
@AbapCatalog.sqlViewName: 'ICCTRCLASSFCTN'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Central Purchase Contract Classification'
@VDM.viewType: #BASIC

@ObjectModel.usageType.serviceQuality: #B
@ObjectModel.usageType.sizeCategory: #L
@ObjectModel.usageType.dataClass: #CUSTOMIZING

@ClientHandling.algorithm: #SESSION_VARIABLE
@AccessControl.personalData.blocking: #BLOCKED_DATA_EXCLUDED

define view I_CntrlPurContrClassification as select from I_PurchasingDocumentType as _PurchasingDocumentType
left outer to one join t162 
    on _PurchasingDocumentType.PurgDocFieldSelControlKey = t162.flref
{
  /* keys */
    key  PurchasingDocumentType,
     PurgDocFieldSelControlKey,
    
    cast(case substring(faus1,15,1)     //Amount Type(WK)

        when '+' then '0'
        else case substring(faus1,51,1)     //Quantity Type(MK)

                when '+' then '1'
                else '2' 
             end 
    end as contracttype_d ) as PurchaseContractClassification
 
}

where PurchasingDocumentCategory = 'C'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_PURCHASINGDOCUMENTTYPE",
"T162"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/