P_REQUISITIONTYPEANALYSIS

CDS View

P_REQUISITIONTYPEANALYSIS is a CDS View in S/4HANA. 2 CDS views read from this table.

CDS Views using this table (2)

ViewTypeJoinVDMDescription
C_PurReqnItemTypeAnalysis view from CONSUMPTION Purchase Requisition Item Type Analysis
C_RequisitionTypeAnalysis view from CONSUMPTION Purchase Requisition Type Analysis
@ClientHandling.algorithm: #SESSION_VARIABLE //Inserted by VDM CDS Suite Plugin

@AbapCatalog.sqlViewName: 'PMMREQTYPEANA'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@VDM.viewType: #CONSUMPTION
//@Analytics.dataCategory: #CUBE

@VDM.private : true
@AccessControl.personalData.blocking: #NOT_REQUIRED
//@EndUserText.label: 'P_RequisitionTypeAnalysis'

define view P_RequisitionTypeAnalysis
  with parameters
    P_StartDate : budat,
    P_EndDate   : budat

  as select from P_RequisitionTypeAnalysis2( P_StartDate:$parameters.P_StartDate , P_EndDate: $parameters.P_EndDate) as RequisitionItem

{

  key RequisitionItem.PurchaseRequisition,
  key RequisitionItem.PurchaseRequisitionItem,

      PurchasingGroup,

      PurchasingOrganization,
      FixedSupplier,
      //      cast(FixedSupplier as flief )                      as  FixedSupplier,

      RequisitionItem.MaterialGroup,

      Material,
      
      BaseUnit,
      RequestedQuantity,
      @Semantics.quantity.unitOfMeasure: 'BaseUnit'
      @DefaultAggregation: #NONE
      PurReqnPriceQuantity,
      PurReqnItemCurrency,
      @Semantics.amount.currencyCode: 'PurReqnItemCurrency'
      @DefaultAggregation: #NONE
      PurchaseRequisitionPrice,

      Plant,
      PurchaseRequisitionType,
      CreatedByUser,
      PurReqnOrigin,
      //_Supplier,                                                 //Association maintained at Top level CDS

      @Consumption.hidden: true
      CreationDate,
      PurReqnItemClassification,


      PurReqnItemClassfctnCount,

      NmbrOfFreeTxtItmCrtedFrmSSP,

      NmbrOfMaterialItmCrtedFrmSSP,

      NmbrOfCatalogItmCrtedFrmSSP,

      NmbrOfMaterialItmCrtedManually,

      NmbrOfFreeTxtItmCrtedManually,
      
      NmbrOfMatlItmCrtedFrmExtSrce

}
where
      CreationDate <= $parameters.P_EndDate
  and CreationDate >= $parameters.P_StartDate
union all select from P_RequisitionTypeAnalysis1( P_StartDate:$parameters.P_StartDate , P_EndDate: $parameters.P_EndDate) as RequisitionItem

{

  key RequisitionItem.PurchaseRequisition,
  key RequisitionItem.PurchaseRequisitionItem,

      PurchasingGroup,

      PurchasingOrganization,
      FixedSupplier,
      //      cast(FixedSupplier as flief )                      as  FixedSupplier,

      RequisitionItem.MaterialGroup,

      Material,
      
      BaseUnit,
      RequestedQuantity,
      @Semantics.quantity.unitOfMeasure: 'BaseUnit'
      @DefaultAggregation: #NONE
      PurReqnPriceQuantity,
      PurReqnItemCurrency,
      @Semantics.amount.currencyCode: 'PurReqnItemCurrency'
      @DefaultAggregation: #NONE
      PurchaseRequisitionPrice,

      Plant,
      PurchaseRequisitionType,
      CreatedByUser,
      PurReqnOrigin,
      //_Supplier,                                               //Association maintained at Top level CDS

      @Consumption.hidden: true
      CreationDate,
      PurReqnItemClassification,


      PurReqnItemClassfctnCount,


      NmbrOfFreeTxtItmCrtedFrmSSP,

      NmbrOfMaterialItmCrtedFrmSSP,

      NmbrOfCatalogItmCrtedFrmSSP,

      NmbrOfMaterialItmCrtedManually,

      NmbrOfFreeTxtItmCrtedManually,
      
      NmbrOfMatlItmCrtedFrmExtSrce

}
where
      CreationDate <= $parameters.P_EndDate
  and CreationDate >= $parameters.P_StartDate

union all select from P_PurReqnItemViaExternalSource ( P_StartDate:$parameters.P_StartDate , P_EndDate: $parameters.P_EndDate) as RequisitionItem

{

  key RequisitionItem.PurchaseRequisition,
  key RequisitionItem.PurchaseRequisitionItem,

      PurchasingGroup,

      PurchasingOrganization,
      FixedSupplier,
      RequisitionItem.MaterialGroup,

      Material,
      
      BaseUnit,
      RequestedQuantity,
      @Semantics.quantity.unitOfMeasure: 'BaseUnit'
      @DefaultAggregation: #NONE
      PurReqnPriceQuantity,
      PurReqnItemCurrency,
      @Semantics.amount.currencyCode: 'PurReqnItemCurrency'
      @DefaultAggregation: #NONE
      PurchaseRequisitionPrice,

      Plant,
      PurchaseRequisitionType,
      CreatedByUser,
      PurReqnOrigin,
      @Consumption.hidden: true
      CreationDate,
      PurReqnItemClassification,

      PurReqnItemClassfctnCount,

      NmbrOfFreeTxtItmCrtedFrmSSP,

      NmbrOfMaterialItmCrtedFrmSSP,

      NmbrOfCatalogItmCrtedFrmSSP,

      NmbrOfMaterialItmCrtedManually,

      NmbrOfFreeTxtItmCrtedManually,
      
      NmbrOfMatlItmCrtedFrmExtSrce

}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"P_PURREQNITEMVIAEXTERNALSOURCE",
"P_REQUISITIONTYPEANALYSIS1",
"P_REQUISITIONTYPEANALYSIS2"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/