I_PURGINFORECDORGPLANTDATA

CDS View

Info Record Purch. Org. and Plant Data

I_PURGINFORECDORGPLANTDATA is a CDS View in S/4HANA. Info Record Purch. Org. and Plant Data. It contains 56 fields. 21 CDS views read from this table.

CDS Views using this table (21)

ViewTypeJoinVDMDescription
A_PurgInfoRecdOrgPlantData view from BASIC Purchasing Info Record Purch. Org. Data
C_MassUpdtPurgInfoRecdVH view left_outer CONSUMPTION
C_MMPurchasingInfoRecordHelp view left_outer CONSUMPTION
C_PurgInfoRecordOrgLevels view from CONSUMPTION Organization Level
C_PurOrdRefDocIR view from CONSUMPTION Reference Documents for PO Creation - Inforecord Items
CIC_PURCHASING_INFO_RECORD view_entity inner Source of Supply Type B: Purchasing Info Record
I_MRPPurchaseOrder view left_outer COMPOSITE MRP Purchase Order
I_MRPPurchaseRequisition view left_outer COMPOSITE MRP Purchase Requisition
I_PurchaseOrderQuickView view left_outer COMPOSITE Purchase Order Data
I_PurgInfoRecdOrgPlntDataApi01 view from BASIC Org Plant Data for Purch Info Record
I_PurgInfoRecordWithOrgData view left_outer BASIC Info Record with Org Plant Data
I_PurInfCndHelpr view inner BASIC Helper View For CDS
I_PurInfoRecdMaterialPrcgCndn view inner BASIC Purch Info Record Material Cond
I_PurInfoRecdNonStkItmPrcgCndn view inner BASIC Purch Info Record Non Stock Item Cond
I_PurInfoRecdOrderUnitPrcgCndn view inner BASIC Purch Info Record Order Unit Cond
I_PurReqnQuickView view left_outer COMPOSITE Purchase Requisition Details
P_InfoRecordLeadTime view inner COMPOSITE
P_InfoRecordPriceVariance view inner CONSUMPTION
P_PurgOrgLvlInfoRecdMassUpdt view from CONSUMPTION Mass Changes to Purchasing Info Records
P_PurOrdMaintainRefDocumentAll view union_all CONSUMPTION
R_PurgInfoRecdOrgPlntDataTP view_entity from TRANSACTIONAL Purchasing Info Rec Org Plant Data

Fields (56)

KeyField CDS FieldsUsed in Views
KEY Plant Plant,ReceivingPlant 8
KEY PurchasingInfoRecord PurchasingDocument,PurchasingInfoRecord 6
KEY PurchasingInfoRecordCategory Category,PurchasingInfoRecordCategory 7
KEY PurchasingOrganization PurchasingOrganization 8
_Plant _Plant 1
_PurchasingGroup _PurchasingGroup 1
_PurchasingOrganization _PurchasingOrganization 1
CreatedByUser CreatedByUser 2
Currency Currency,OrderCurrency 5
IncotermsClassification IncotermsClassification 4
IncotermsLocation1 IncotermsLocation1 3
IncotermsLocation2 IncotermsLocation2 3
IncotermsSupChnDvtgLocAddlUUID IncotermsSupChnDvtgLocAddlUUID 1
IncotermsSupChnLoc1AddlUUID IncotermsSupChnLoc1AddlUUID 1
IncotermsSupChnLoc2AddlUUID IncotermsSupChnLoc2AddlUUID 1
IncotermsTransferLocation IncotermsTransferLocation,IncotermsTransferLocationName 4
IncotermsVersion IncotermsVersion 3
InvoiceIsGoodsReceiptBased InvoiceIsGoodsReceiptBased 4
IsCashDiscountGranted IsCashDiscountGranted 2
IsEvaluatedRcptSettlmtAllowed IsEvaluatedRcptSettlmtAllowed 2
IsMarkedForDeletion IsDeleted,IsMarkedForDeletion 4
IsOrderAcknRqd IsOrderAcknRqd 2
IsPurOrderAllwdForInbDeliv IsPurOrderAllwdForInbDeliv 2
IsRelevantForAutomSrcg IsRelevantForAutomSrcg 2
IsRetMatlAuthznRqdBySupplier IsRetMatlAuthznRqdBySupplier,SuplrRetMatlAuthznRqmtSts 2
LastReferencingPurchaseOrder LastReferencingPurchaseOrder 2
LastReferencingPurOrderItem LastReferencingPurOrderItem 2
MaterialConditionGroup MaterialConditionGroup 2
MaterialPlannedDeliveryDurn MaterialPlannedDeliveryDurn,PlannedDeliveryTimeDays 3
MaterialPriceUnitQty MaterialPriceUnitQty,NetPriceQuantity,PurchaseOrderNetPriceQuantity 5
MaterialRoundingProfile MaterialRoundingProfile,PurchaseOrderRoundingProfile 3
MaterialStagingTime MaterialStagingTime 4
MaximumOrderQuantity MaximumOrderQuantity 4
MinimumPurchaseOrderQuantity MinimumOrderQuantity,MinimumPurchaseOrderQuantity 5
MinRemainingShelfLife MinRemainingShelfLife 2
NetPriceAmount IRNetPriceAmount,NetPriceAmount,PurchaseOrderNetPriceAmount 6
OrderPriceUnitToOrderUnitNmrtr OrderPriceUnitToOrderUnitNmrtr 4
OrdPriceUnitToOrderUnitDnmntr OrdPriceUnitToOrderUnitDnmntr 4
OverdelivTolrtdLmtRatioInPct OverdelivTolrtdLmtRatioInPct 4
PriceValidityEndDate PriceValidityEndDate,ValidityEndDate 4
PricingDateControl PricingDateControl 2
ProductUnitGroup ProductUnitGroup 2
PurchaseOrderPriceUnit NetPriceUnit,PurchaseOrderPriceUnit 5
PurchasingDocumentDate PurchasingDocumentDate 2
PurchasingGroup PurchasingGroup 7
ShelfLifeExpirationDatePeriod ShelfLifeExpirationDatePeriod 2
ShippingInstruction ShippingInstruction 2
StandardPurchaseOrderQuantity PurchaseOrderQty,StandardPurchaseOrderQuantity 6
SupplierConfirmationControlKey SupplierConfirmationControlKey 2
SupplierQuotation SupplierQuotation 2
SupplierQuotationDate SupplierQuotationDate 2
TaxCode TaxCode 3
TaxCountry TaxCountry 1
TimeDependentTaxValidFromDate TimeDependentTaxValidFromDate 1
UnderdelivTolrtdLmtRatioInPct UnderdelivTolrtdLmtRatioInPct 4
UnlimitedOverdeliveryIsAllowed UnlimitedOverdeliveryIsAllowed 4
@AbapCatalog.sqlViewName: 'IINFORECORGDATA'
@EndUserText.label: 'Info Record Purch. Org. and Plant Data'
@VDM.viewType : #BASIC
@AccessControl.authorizationCheck: #CHECK
@ObjectModel.usageType.dataClass: #MASTER
@ObjectModel.usageType.serviceQuality: #A
@ObjectModel.usageType.sizeCategory: #L
@ClientHandling.algorithm: #SESSION_VARIABLE
@AccessControl.personalData.blocking: #BLOCKED_DATA_EXCLUDED
@VDM.lifecycle.contract.type: #SAP_INTERNAL_API

define view I_PurgInfoRecdOrgPlantData
  as select from eine

  association [0..1] to I_PurchasingOrganization  as _PurchasingOrganization  on $projection.PurchasingOrganization = _PurchasingOrganization.PurchasingOrganization

  association [0..1] to I_Plant                   as _Plant                   on $projection.Plant = _Plant.Plant

  association [0..1] to I_UnitOfMeasure           as _PurchaseOrderPriceUnit  on $projection.PurchaseOrderPriceUnit = _PurchaseOrderPriceUnit.UnitOfMeasure

  association [0..1] to I_Currency                as _Currency                on $projection.Currency = _Currency.Currency

  association [0..1] to I_PurchasingGroup         as _PurchasingGroup         on $projection.PurchasingGroup = _PurchasingGroup.PurchasingGroup

  association [0..*] to I_TaxCode                 as _TaxCode                 on $projection.TaxCode = _TaxCode.TaxCode

  association [0..1] to I_IncotermsClassification as _IncotermsClassification on $projection.IncotermsClassification = _IncotermsClassification.IncotermsClassification

  association [0..1] to I_User                    as _CreatedByUser           on $projection.CreatedByUser = _CreatedByUser.UserID
  
  association [0..1] to I_Country                 as _Country                 on $projection.TaxCountry = _Country.Country
{

  key eine.infnr                                                     as PurchasingInfoRecord,

      @ObjectModel.foreignKey.association: '_PurchasingOrganization'
  key eine.ekorg                                                     as PurchasingOrganization,

  key eine.esokz                                                     as PurchasingInfoRecordCategory,

      @ObjectModel.foreignKey.association: '_Plant'
  key eine.werks                                                     as Plant,

      //    @ObjectModel.foreignKey.association: '_CreatedByUser'

      eine.ernam                                                     as CreatedByUser,

      eine.loekz                                                     as IsMarkedForDeletion,

      @ObjectModel.foreignKey.association: '_PurchasingGroup'
      eine.ekgrp                                                     as PurchasingGroup,

      @Semantics.currencyCode:true
      @ObjectModel.foreignKey.association: '_Currency'
      eine.waers                                                     as Currency,

      @Semantics.quantity.unitOfMeasure: 'PurchaseOrderPriceUnit'
//      @DefaultAggregation: #NONE 

      eine.minbm                                                     as MinimumPurchaseOrderQuantity,

      @Semantics.quantity.unitOfMeasure: 'PurchaseOrderPriceUnit'
//      @DefaultAggregation: #NONE

      eine.norbm                                                     as StandardPurchaseOrderQuantity,

      eine.aplfz                                                     as MaterialPlannedDeliveryDurn,

      eine.uebto                                                     as OverdelivTolrtdLmtRatioInPct,

      eine.untto                                                     as UnderdelivTolrtdLmtRatioInPct,

      eine.uebtk                                                     as UnlimitedOverdeliveryIsAllowed,

      eine.ebeln                                                     as LastReferencingPurchaseOrder,

      eine.ebelp                                                     as LastReferencingPurOrderItem,

      @Semantics.amount.currencyCode: 'Currency'
//      @DefaultAggregation: #NONE

      eine.netpr                                                     as NetPriceAmount,

      @Semantics.quantity.unitOfMeasure: 'PurchaseOrderPriceUnit'
//      @DefaultAggregation: #NONE

      eine.peinh                                                     as MaterialPriceUnitQty,

      @Semantics.unitOfMeasure: true
      @ObjectModel.foreignKey.association: '_PurchaseOrderPriceUnit'
      eine.bprme                                                     as PurchaseOrderPriceUnit,

      @Semantics.businessDate.to
      eine.prdat                                                     as PriceValidityEndDate,

      eine.bpumz                                                     as OrderPriceUnitToOrderUnitNmrtr,

      eine.bpumn                                                     as OrdPriceUnitToOrderUnitDnmntr,

      eine.webre                                                     as InvoiceIsGoodsReceiptBased,

//      @ObjectModel.foreignKey.association: '_TaxCode'

      eine.mwskz                                                     as TaxCode,
      
      eine.txdat_from                                                as TimeDependentTaxValidFromDate,
      
      @ObjectModel.foreignKey.association: '_Country'
      eine.tax_country                                               as TaxCountry,

      @ObjectModel.foreignKey.association: '_IncotermsClassification'
      eine.inco1                                                     as IncotermsClassification,

      eine.inco2                                                     as IncotermsTransferLocation,

      eine.inco2_l                                                   as IncotermsLocation1,
      
      cast( eine.inco2_key as /scmtms/inc_loc_1_key_nc  preserving type )  as IncotermsSupChnLoc1AddlUUID , 
      
      eine.inco3_l                                                   as IncotermsLocation2,
      
      cast( eine.inco3_key as /scmtms/inc_loc_2_key_nc preserving type ) as IncotermsSupChnLoc2AddlUUID,
      
      cast( eine.inco4_key as /scmtms/inc_dv_plce_dst_key_nc preserving type ) as IncotermsSupChnDvtgLocAddlUUID,
      
      @Semantics.quantity.unitOfMeasure: 'PurchaseOrderPriceUnit'
//      @DefaultAggregation: #NONE

      eine.bstma                                                     as MaximumOrderQuantity,

      eine.aut_source                                                as IsRelevantForAutomSrcg,

      eine.incov                                                     as IncotermsVersion,

      eine.angnr                                                     as SupplierQuotation,

      eine.angdt                                                     as SupplierQuotationDate,

      eine.mhdrz                                                     as MinRemainingShelfLife,

      eine.evers                                                     as ShippingInstruction,

      eine.xersn                                                     as IsEvaluatedRcptSettlmtAllowed,

      eine.spe_cre_ref_doc                                           as IsPurOrderAllwdForInbDeliv,

      eine.kzabs                                                     as IsOrderAcknRqd,

      eine.bstae                                                     as SupplierConfirmationControlKey,

      eine.rdprf                                                     as MaterialRoundingProfile,

      eine.staging_time                                              as MaterialStagingTime,

      eine.megru                                                     as ProductUnitGroup,

      eine.vendor_rma_req                                            as IsRetMatlAuthznRqdBySupplier,

      eine.sktof                                                     as IsCashDiscountGranted,

      eine.ekkol                                                     as MaterialConditionGroup,

      eine.meprf                                                     as PricingDateControl,

      eine.datlb                                                     as PurchasingDocumentDate,

      eine.iprkz                                                     as ShelfLifeExpirationDatePeriod,

      eine.iseopblocked                                              as IsEndOfPurposeBlocked,
//      2308 Addition: NoMText in Purchasing Info Record       

      eine.mtxno                                                     as MatlMstrTxtIsNotRlvtForPOItm,
      

      _PurchasingOrganization,
      _Plant,
      _PurchaseOrderPriceUnit,
      _Currency,
      _PurchasingGroup,
      _TaxCode,
      _IncotermsClassification,
      _CreatedByUser,
      _Country

}
where
     iseopblocked <> 'X'
     or iseopblocked = ''
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"EINE"
],
"ASSOCIATED":
[
"I_COUNTRY",
"I_CURRENCY",
"I_INCOTERMSCLASSIFICATION",
"I_PLANT",
"I_PURCHASINGGROUP",
"I_PURCHASINGORGANIZATION",
"I_TAXCODE",
"I_UNITOFMEASURE",
"I_USER"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/