I_PURCHASEREQUISITIONITEMBASIC

CDS View

Purchase Requisition Item

I_PURCHASEREQUISITIONITEMBASIC is a CDS View in S/4HANA. Purchase Requisition Item. It contains 111 fields. 22 CDS views read from this table.

CDS Views using this table (22)

ViewTypeJoinVDMDescription
I_FldLogsDocFlwPurReqnWrkOrd view_entity from COMPOSITE Field Logistics Doc Flow WO to PR link
I_PPS_PurchaseReqnHeader view_entity from COMPOSITE Purchase Requisition Header
I_PPS_PurReqnNumberOfItem view_entity from COMPOSITE Purchase Requisition number of items
I_PurchaseReqn view from COMPOSITE Purchase Requisition Basic Header View
I_Purchaserequisitionitem view from COMPOSITE Purchase Requisition Item
I_Purreqnlastmodified view from COMPOSITE View to get the latest timestamp
I_Purreqnssp view from COMPOSITE Purchase Requisition Item
I_Purreqnsspitem view from COMPOSITE Purchase Requisition Item
P_PFMCarbonFootprintForPR view from CONSUMPTION
P_PurchaseReqnItms view from CONSUMPTION Fetching Purchase Requisition Items
P_PurchaseRequisitionItem view from CONSUMPTION
P_PurchaseRequisitionItem1 view from CONSUMPTION
P_PurReqnItemAdr view from CONSUMPTION Purchase Requisition Item Delivery Address
P_PurReqnItemNetAmt view from COMPOSITE
P_PurReqnItemViaExternalSource view from CONSUMPTION
P_PurReqnItmsForConf view from COMPOSITE
P_PurReqnPriceCalculation view from CONSUMPTION Purchase Requisition Price Calculation
P_RequisitionTypeAnalysis1 view from CONSUMPTION
P_RequisitionTypeAnalysis1 view union_all CONSUMPTION
P_RequisitionTypeAnalysis2 view from CONSUMPTION
P_RequisitionTypeAnalysis2 view union_all CONSUMPTION
P_SSPPurReqnItem view from COMPOSITE Purchase Requisition Header

Fields (111)

KeyField CDS FieldsUsed in Views
KEY Material Material 5
KEY Plant Plant 7
KEY PurchaseRequisition PurchaseRequisition 14
KEY PurchaseRequisitionItem PurchaseRequisitionItem 9
_PurchaseRequisition _PurchaseRequisition 2
AccountAssignmentCategory AccountAssignmentCategory 3
BaseUnit BaseUnit 1
Batch Batch 1
BudgetPeriod BudgetPeriod 1
CntrlReqnIsRpldBfrApprvl CntrlReqnIsRpldBfrApprvl 1
CommitmentItemShortID CommitmentItemShortID 1
ConsumptionPosting ConsumptionPosting 1
CostCenter CostCenter 1
CreatedByUser CreatedByUser 4
CreationDate CreationDate 2
DelivDateCategory DelivDateCategory 1
DeliveryDate DeliveryDate 1
EarmarkedFundsDocument EarmarkedFundsDocument 1
EarmarkedFundsDocumentItem EarmarkedFundsDocumentItem 1
ExpectedOverallLimitAmount ExpectedOverallLimitAmount 1
ExtCompanyCodeForPurg ExtCompanyCodeForPurg 1
ExtContractForPurg ExtContractForPurg 1
ExtContractItemForPurg ExtContractItemForPurg 1
ExtDesiredSupplierForPurg ExtDesiredSupplierForPurg 1
ExtFixedSupplierForPurg ExtFixedSupplierForPurg 1
ExtInfoRecordForPurg ExtInfoRecordForPurg 1
ExtMaterialForPurg ExtMaterialForPurg 1
ExtPlantForPurg ExtPlantForPurg 1
ExtPurchaseRequisitionType ExtPurchaseRequisitionType 1
ExtPurgOrgForPurg ExtPurgOrgForPurg 1
ExtSourceSystem ExtSourceSystem 1
FixedSupplier FixedSupplier 2
FunctionalArea FunctionalArea 1
Fund Fund 1
FundsCenter FundsCenter 1
GLAccount GLAccount 1
GoodsReceiptIsExpected GoodsReceiptIsExpected 1
GoodsReceiptIsNonValuated GoodsReceiptIsNonValuated 1
GrantID GrantID 1
InvoiceIsExpected InvoiceIsExpected 1
IsClosed IsClosed 1
IsDeleted IsDeleted 1
IsEndOfPurposeBlocked IsEndOfPurposeBlocked 1
IsOnBehalfCart IsOnBehalfCart 2
IsPurReqnBlocked IsPurReqnBlocked 1
IsPurReqnCmplt IsPurReqnCmplt 1
IsPurReqnOvrlRel IsPurReqnOvrlRel 2
ItemDeliveryAddressID ItemDeliveryAddressID 1
Language Language 1
ManualDeliveryAddressID ManualDeliveryAddressID 1
MaterialGoodsReceiptDuration MaterialGoodsReceiptDuration 1
MaterialGroup MaterialGroup 7
MaterialPlannedDeliveryDurn MaterialPlannedDeliveryDurn 1
MaterialRevisionLevel MaterialRevisionLevel 1
MinRemainingShelfLife MinRemainingShelfLife 1
MRPController MRPController 1
MultipleAcctAssgmtDistribution MultipleAcctAssgmtDistribution 3
OrderedQuantity OrderedQuantity 1
OverallLimitAmount OverallLimitAmount 1
PerformancePeriodEndDate PerformancePeriodEndDate 1
PerformancePeriodStartDate PerformancePeriodStartDate 1
ProcessingStatus ProcessingStatus 1
ProcmtHubStorageLocation ProcmtHubStorageLocation 1
ProcurementHubSourceSystem ProcurementHubSourceSystem 1
PurchaseContract PurchaseContract 1
PurchaseContractItem PurchaseContractItem 1
PurchaseOrderPriceType PurchaseOrderPriceType 1
PurchaseReqnItemUniqueID MaintOrdProcurementDocument,PurchaseReqnItemUniqueID 2
PurchaseRequisitionIsFixed PurchaseRequisitionIsFixed 1
PurchaseRequisitionItemText PurchaseRequisitionItemText 1
PurchaseRequisitionPrice PurchaseRequisitionPrice 1
PurchaseRequisitionReleaseDate PurchaseRequisitionReleaseDate 1
PurchaseRequisitionStatus PurchaseRequisitionStatus 3
PurchaseRequisitionType PurchaseRequisitionType 5
PurchasingDocument PurchasingDocument 1
PurchasingDocumentCategory PurchasingDocumentCategory 2
PurchasingDocumentItem PurchasingDocumentItem 1
PurchasingDocumentItemCategory PurchasingDocumentItemCategory 2
PurchasingDocumentSubtype PurchasingDocumentSubtype 2
PurchasingGroup PurchasingGroup 6
PurchasingInfoRecord PurchasingInfoRecord 1
PurchasingOrganization PurchasingOrganization 6
PurReqCreationDate PurReqCreationDate 1
PurReqnCmpltnsCat PurReqnCmpltnsCat 1
PurReqnDescription PurReqnDescription 3
PurReqnIsCreatedInExpertMode PurReqnIsCreatedInExpertMode 1
PurReqnIsValdInCntrlReqnProcg PurReqnIsValdInCntrlReqnProcg 1
PurReqnItemCurrency PurReqnItemCurrency 3
PurReqnOrigin PurReqnOrigin 2
PurReqnPriceQuantity PurReqnPriceQuantity 3
PurReqnReleaseStatus PurReqnReleaseStatus 2
PurReqnSourceOfSupplyType PurReqnSourceOfSupplyType 1
PurReqnSSPAuthor CreatedByUser,PurReqnSSPAuthor 4
PurReqnSSPCatalog PurReqnSSPCatalog 1
PurReqnSSPCatalogItem PurReqnSSPCatalogItem 1
PurReqnSSPCrossCatalogItem PurReqnSSPCrossCatalogItem 1
PurReqnSSPRequestor PurReqnSSPRequestor 3
ReleaseCode ReleaseCode 3
ReleaseIsNotCompleted ReleaseIsNotCompleted 1
ReleaseStrategy ReleaseStrategy 3
RequestedQuantity RequestedQuantity 3
RequirementTracking RequirementTracking 1
RequisitionerName RequisitionerName 1
Reservation Reservation 1
ServicePerformer ServicePerformer 1
SourceOfSupplyIsAssigned SourceOfSupplyIsAssigned 1
StorageLocation StorageLocation 1
Supplier Supplier 1
SupplierMaterialNumber SupplierMaterialNumber 1
SupplyingPlant SupplyingPlant 1
TaxCode TaxCode 1
@EndUserText.label: 'Purchase Requisition Item'
@VDM.viewType: #BASIC
@AbapCatalog.sqlViewName: 'IPRITEMBASIC'
@AbapCatalog.preserveKey:true
@AccessControl.authorizationCheck:#CHECK
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.representativeKey: 'PurchaseRequisitionItem'
@ObjectModel.usageType.serviceQuality: #A
@ObjectModel.usageType.sizeCategory: #L
@ObjectModel.usageType.dataClass: #TRANSACTIONAL
@AccessControl.personalData.blocking: #BLOCKED_DATA_EXCLUDED
@Consumption.semanticObject: 'PurchaseRequisition'
@AbapCatalog.compiler.compareFilter:true

define view I_PurchaseRequisitionItemBasic
  as select from eban
  association [1..1] to I_Purchaserequisition as _PurchaseRequisition on $projection.PurchaseRequisition = _PurchaseRequisition.PurchaseRequisition
  association [1..1] to I_UnitOfMeasure       as _UnitOfMeasure       on $projection.BaseUnit = _UnitOfMeasure.UnitOfMeasure
  association [0..1] to I_Currency            as _Currency            on $projection.PurReqnItemCurrency = _Currency.Currency

{
      @ObjectModel.foreignKey.association: '_PurchaseRequisition'
  key cast (banfn as vdm_purchaserequisition preserving type )     as PurchaseRequisition,

  key cast (bnfpo as vdm_purchaserequisitionitem preserving type ) as PurchaseRequisitionItem,

      purreqndescription                                           as PurReqnDescription,
      bsart                                                        as PurchaseRequisitionType,
      bstyp                                                        as PurchasingDocumentCategory,
      bsakz                                                        as PurchasingDocumentSubtype,
      loekz                                                        as IsDeleted,
      statu                                                        as ProcessingStatus,
      estkz                                                        as PurReqnOrigin,
      frgkz                                                        as ReleaseCode,
      frgzu                                                        as PurchaseRequisitionStatus,
      frgst                                                        as ReleaseStrategy,
      ekgrp                                                        as PurchasingGroup,
      ernam                                                        as CreatedByUser,
      erdat                                                        as LastChangedDate,
      afnam                                                        as RequisitionerName,
      txz01                                                        as PurchaseRequisitionItemText,
      matnr                                                        as Material,
      ematn                                                        as ManufacturerMaterial,
      werks                                                        as Plant,
      lgort                                                        as StorageLocation,
      bednr                                                        as RequirementTracking,
      matkl                                                        as MaterialGroup,
      reswk                                                        as SupplyingPlant,

      @Semantics.quantity.unitOfMeasure: 'BaseUnit'
      @DefaultAggregation: #NONE
      menge                                                        as RequestedQuantity,

      @ObjectModel.foreignKey.association: '_UnitOfMeasure'
      @Semantics.unitOfMeasure: true
      meins                                                        as BaseUnit,
      bumng                                                        as MaterialShortageQuantity,
      @Semantics.businessDate.at:true
      badat                                                        as CreationDate,
      creationtime                                                 as CreationTime,
      badat                                                        as PurReqCreationDate,
      lpein                                                        as DelivDateCategory,
      lfdat                                                        as DeliveryDate,

      @Semantics.businessDate.at:true
      frgdt                                                        as PurchaseRequisitionReleaseDate,
      webaz                                                        as MaterialGoodsReceiptDuration,
      @Semantics.amount.currencyCode: 'PurReqnItemCurrency'
      @DefaultAggregation: #NONE
      preis                                                        as PurchaseRequisitionPrice,

      @Semantics.quantity.unitOfMeasure: 'BaseUnit'
      @DefaultAggregation: #NONE
      peinh                                                        as PurReqnPriceQuantity,
      pstyp                                                        as PurchasingDocumentItemCategory,
      knttp                                                        as AccountAssignmentCategory,
      kzvbr                                                        as ConsumptionPosting,
      vrtkz                                                        as MultipleAcctAssgmtDistribution,
      twrkz                                                        as PartialInvoiceDistribution,
      wepos                                                        as GoodsReceiptIsExpected,
      weunb                                                        as GoodsReceiptIsNonValuated,
      repos                                                        as InvoiceIsExpected,
      lifnr                                                        as Supplier,
      flief                                                        as FixedSupplier,
      ekorg                                                        as PurchasingOrganization,
      vrtyp                                                        as PurReqnSourceOfSupplyType,
      konnr                                                        as PurchaseContract,
      ktpnr                                                        as PurchaseContractItem,
      infnr                                                        as PurchasingInfoRecord,
      zugba                                                        as SourceOfSupplyIsAssigned,
      dispo                                                        as MRPController,
      ebeln                                                        as PurchasingDocument,
      ebelp                                                        as PurchasingDocumentItem,
      bedat                                                        as PurchaseOrderDate,
      @Semantics.quantity.unitOfMeasure: 'BaseUnit'
      bsmng                                                        as OrderedQuantity,
      @Semantics.amount.currencyCode: 'PurReqnItemCurrency'
      limit_consumption_value                                      as PurReqnLimitConsumptionAmt,
      ebakz                                                        as IsClosed,
      rsnum                                                        as Reservation,
      sobkz                                                        as InventorySpecialStockType,
      fixkz                                                        as PurchaseRequisitionIsFixed,
      bmein                                                        as MaterialOrderUnit,
      cast( revlv as vdm_qm_revlv preserving type )                as MaterialRevisionLevel,
      bpueb                                                        as PurchaseOrderPriceType,
      frggr                                                        as ReleaseGroup,
      frgrl                                                        as ReleaseIsNotCompleted,
      charg                                                        as Batch,
      cast( fipos as fmis_ci_internalname preserving type )        as CommitmentItemShortID,
      fistl                                                        as FundsCenter,
      geber                                                        as Fund,
      adrnr                                                        as AddressID,
      adrnr                                                        as ManualDeliveryAddressID,
      adrn2                                                        as ItemDeliveryAddressID,
      kunnr                                                        as PurReqnReceivingCustomer,
      emlif                                                        as Subcontractor,
      @ObjectModel.foreignKey.association: '_Currency'
      @Semantics.currencyCode: true
      waers                                                        as PurReqnItemCurrency, //2846005

      idnlf                                                        as SupplierMaterialNumber,
      gsfrg                                                        as IsPurReqnOvrlRel,
      mprof                                                        as ManufacturerPartProfile,
      spras                                                        as Language,
      mfrpn                                                        as ManufacturerPartNmbr,
      plifz                                                        as MaterialPlannedDeliveryDurn,
      berid                                                        as MRPArea,
      mwskz                                                        as TaxCode,
      fkber                                                        as FunctionalArea,
      grant_nbr                                                    as GrantID,
      memory                                                       as IsPurReqnCmplt,
      banpr                                                        as PurReqnReleaseStatus,
      blckd                                                        as IsPurReqnBlocked,
      blckt                                                        as PurReqnItemBlockingReasonText,
      beswk                                                        as ProcuringPlant,
      eprofile                                                     as ExternalProcurementProfile,
      kblnr                                                        as EarmarkedFundsDocument,
      kblpos                                                       as EarmarkedFundsDocumentItem,
      memorytype                                                   as PurReqnCmpltnsCat,
      mhdrz                                                        as MinRemainingShelfLife,
      budget_pd                                                    as BudgetPeriod,
      expert_mode                                                  as PurReqnIsCreatedInExpertMode,
      central_purreqn_proc                                         as PurReqnIsValdInCntrlReqnProcg,
      producttype                                                  as ProductTypeCode,
      serviceperformer                                             as ServicePerformer,
      iseopblocked                                                 as IsEndOfPurposeBlocked,
      startdate                                                    as PerformancePeriodStartDate,
      enddate                                                      as PerformancePeriodEndDate,
      extmaterialforpurg                                           as ExtMaterialForPurg,
      extfixedsupplierforpurg                                      as ExtFixedSupplierForPurg,
      extdesiredsupplierforpurg                                    as ExtDesiredSupplierForPurg,
      extcontractforpurg                                           as ExtContractForPurg,
      extcontractitemforpurg                                       as ExtContractItemForPurg,
      extinforecordforpurg                                         as ExtInfoRecordForPurg,
      extplantforpurg                                              as ExtPlantForPurg,
      extstoragelocationforpurg                                    as ProcmtHubStorageLocation,
      extcompanycodeforpurg                                        as ExtCompanyCodeForPurg,
      extpurgorgforpurg                                            as ExtPurgOrgForPurg,
      cast(extsourcesystem  as mmpur_d_hub_logsys)                 as ExtSourceSystem, //deprecate this

      ext_be_source_sys                                            as ProcurementHubSourceSystem,
      ext_be_prchangeindicator                                     as ProcmtHubPurReqnItmIsChanged,
      extdoctypeforpurg                                            as ExtPurchaseRequisitionType,
      extapprovalstatus                                            as ExternalApprovalStatus,
      stagingfldextapprovalstatus                                  as ExtApprvlIntmdSts,
      purchasereqnitemuniqueid                                     as PurchaseReqnItemUniqueID,
      lastchangedatetime                                           as LastChangeDateTime,
      isonbehalfcart                                               as IsOnBehalfCart,
      sakto                                                        as GLAccount,
      kostl                                                        as CostCenter,
      @Semantics.amount.currencyCode: 'PurReqnItemCurrency'
      expected_value                                               as ExpectedOverallLimitAmount,

      @Semantics.amount.currencyCode: 'PurReqnItemCurrency'
      limit_amount                                                 as OverallLimitAmount,
      contract_for_limit                                           as PurContractForOverallLimit,
      
      cuobj                                                        as PurReqnIntObjNmbr,

      fsh_season_year                                              as ProductSeasonYear,
      fsh_season                                                   as ProductSeason,
      fsh_collection                                               as ProductCollection,
      fsh_theme                                                    as ProductTheme,
      sc_sr_item_key                                               as PurReqnSSPCrossCatalogItem,
      sc_catalogid                                                 as PurReqnSSPCatalog,
      sc_catalogitem                                               as PurReqnSSPCatalogItem,
      sc_requestor                                                 as PurReqnSSPRequestor,
      sc_author                                                    as PurReqnSSPAuthor,
      sgt_scat                                                     as StockSegment,
      sgt_rcat                                                     as RequirementSegment,
      deliveryaddrtype                                             as PurchasingDeliveryAddressType,
      arsnr                                                        as SettlementReservation,
      arsps                                                        as SettlementReservationItem,
      pfmtransdatafootprintuuid                                    as PFMTransDataFootprintUUID,
      // Relevent for item Hierarchy

      isoutline                                                    as IsOutline,
      parent_item_no                                               as PurchasingParentItem,
      outline_type                                                 as PurReqnItemOutlineType,
      exlin                                                        as PurgConfigurableItemNumber,
      exsnr                                                        as PurgExternalSortNumber,
      iscrreplicationbeforeapproval                                as CntrlReqnIsRpldBfrApprvl,
      mmpur_pr_cen_reqn_app_rpld_pr                                as CntrlReqnApprvlStsInRpldReqn,
      //Added for Central approval

      indelegateapproval                                           as PurReqnHasDelegateApproval,
      _PurchaseRequisition,
      _UnitOfMeasure,
      _Currency
}
where
  iseopblocked = ''
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"EBAN"
],
"ASSOCIATED":
[
"I_CURRENCY",
"I_PURCHASEREQUISITION",
"I_UNITOFMEASURE"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/