P_PurchasingInfoRecMassUpdate
Union of General and Org. Data
P_PurchasingInfoRecMassUpdate is a Consumption CDS View that provides data about "Union of General and Org. Data" in SAP S/4HANA. It reads from 2 data sources (I_PurchasingInfoRecord, I_PurgInfoRecordWithOrgData) and exposes 152 fields with key field FormattedInfoRec.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_PurchasingInfoRecord | I_PurchasingInfoRecord | from |
| I_PurgInfoRecordWithOrgData | I_PurgInfoRecordWithOrgData | union |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PPURINFRECMASS | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #PRIVILEGED_ONLY | view | |
| EndUserText.label | Union of General and Org. Data | view | |
| VDM.viewType | #CONSUMPTION | view | |
| VDM.private | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (152)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | FormattedInfoRec | |||
| ParentNode | ||||
| PurchasingInfoRecord | PurchasingInfoRecord | |||
| HierarchyNodeLevel | ||||
| Supplier | ||||
| Material | Material | |||
| SupplierSubrange | SupplierSubrange | |||
| MaterialGroup | MaterialGroup | |||
| IsDeleted | IsDeleted | |||
| PurchasingInfoRecordDesc | PurchasingInfoRecordDesc | |||
| SupplierMaterialNumber | SupplierMaterialNumber | |||
| SupplierRespSalesPersonName | SupplierRespSalesPersonName | |||
| SupplierPhoneNumber | SupplierPhoneNumber | |||
| SupplierMaterialGroup | SupplierMaterialGroup | |||
| PriorSupplier | PriorSupplier | |||
| VarblPurOrdUnitIsActive | VarblPurOrdUnitIsActive | |||
| Manufacturer | Manufacturer | |||
| IsRegularSupplier | IsRegularSupplier | |||
| NoDaysReminder1 | NoDaysReminder1 | |||
| NoDaysReminder2 | NoDaysReminder2 | |||
| NoDaysReminder3 | NoDaysReminder3 | |||
| ProductPurchasePointsQty | ProductPurchasePointsQty | |||
| ProductPurchasePointsQtyUnit | ProductPurchasePointsQtyUnit | |||
| ReturnAgreement | ReturnAgreement | |||
| SupplierCertOriginCat | SupplierCertOriginCat | |||
| SupplierCertOriginNumber | SupplierCertOriginNumber | |||
| SupplierCertOriginCountry | SupplierCertOriginCountry | |||
| SupplierCertOriginRegion | SupplierCertOriginRegion | |||
| SuplrCertOriginClassfctnNumber | SuplrCertOriginClassfctnNumber | |||
| SupplierSubrangeSortNumber | SupplierSubrangeSortNumber | |||
| PurchasingOrganization | ||||
| PurchasingInfoRecordCategory | ||||
| Plant | ||||
| PurchasingGroup | ||||
| MaterialConditionGroup | ||||
| IsMarkedForDeletion | ||||
| Currency | ||||
| MinimumPurchaseOrderQuantity | ||||
| StandardPurchaseOrderQuantity | ||||
| MaterialPlannedDeliveryDurn | ||||
| OverdelivTolrtdLmtRatioInPct | ||||
| UnderdelivTolrtdLmtRatioInPct | ||||
| UnlimitedOverdeliveryIsAllowed | ||||
| NetPriceAmount | ||||
| MaterialPriceUnitQty | ||||
| PurchaseOrderPriceUnit | ||||
| PriceValidityEndDate | ||||
| InvoiceIsGoodsReceiptBased | ||||
| TaxCode | ||||
| IncotermsClassification | ||||
| IncotermsTransferLocation | ||||
| IncotermsLocation1 | ||||
| IncotermsLocation2 | ||||
| MaximumOrderQuantity | ||||
| IsRelevantForAutomSrcg | ||||
| IncotermsVersion | ||||
| MinRemainingShelfLife | ||||
| ShippingInstruction | ||||
| IsEvaluatedRcptSettlmtAllowed | ||||
| IsPurOrderAllwdForInbDeliv | ||||
| IsOrderAcknRqd | ||||
| SupplierConfirmationControlKey | ||||
| MaterialRoundingProfile | ||||
| MaterialStagingTime | ||||
| ProductUnitGroup | ||||
| IsRetMatlAuthznRqdBySupplier | ||||
| IsCashDiscountGranted | ||||
| PricingDateControl | ||||
| NumberOfItems | ||||
| SupplierName | _Supplier | SupplierName | ||
| MaterialName | ||||
| PurchasingGroupName | ||||
| PlantName | ||||
| MaterialGroupName | ||||
| char22asFormattedInfoRec | ||||
| ParentNode | PurchasingInfoRecord | |||
| PurchasingInfoRecord | PurchasingInfoRecord | |||
| HierarchyNodeLevel | ||||
| Supplier | Supplier | |||
| Material | Material | |||
| SupplierSubrange | SupplierSubrange | |||
| MaterialGroup | MaterialGroup | |||
| CreationDate | CreationDate | |||
| IsDeleted | ||||
| PurchasingInfoRecordDesc | PurchasingInfoRecordDesc | |||
| SupplierMaterialNumber | ||||
| SupplierRespSalesPersonName | ||||
| SupplierPhoneNumber | ||||
| SupplierMaterialGroup | ||||
| PriorSupplier | PriorSupplier | |||
| AvailabilityStartDate | ||||
| AvailabilityEndDate | ||||
| VarblPurOrdUnitIsActive | VarblPurOrdUnitIsActive | |||
| Manufacturer | Manufacturer | |||
| IsRegularSupplier | ||||
| NoDaysReminder1 | ||||
| NoDaysReminder2 | ||||
| NoDaysReminder3 | ||||
| ProductPurchasePointsQty | ||||
| ProductPurchasePointsQtyUnit | ||||
| ReturnAgreement | ReturnAgreement | |||
| SupplierCertOriginCat | ||||
| SupplierCertOriginNumber | ||||
| SupplierCertValidityEndDate | ||||
| SupplierCertOriginCountry | ||||
| SupplierCertOriginRegion | ||||
| SuplrCertOriginClassfctnNumber | ||||
| SupplierSubrangeSortNumber | ||||
| PurchasingOrganization | PurchasingOrganization | |||
| PurchasingInfoRecordCategory | ||||
| Plant | Plant | |||
| PurchasingGroup | PurchasingGroup | |||
| MaterialConditionGroup | MaterialConditionGroup | |||
| IsMarkedForDeletion | IsMarkedForDeletion | |||
| Currency | Currency | |||
| MinimumPurchaseOrderQuantity | MinimumPurchaseOrderQuantity | |||
| StandardPurchaseOrderQuantity | StandardPurchaseOrderQuantity | |||
| MaterialPlannedDeliveryDurn | MaterialPlannedDeliveryDurn | |||
| OverdelivTolrtdLmtRatioInPct | OverdelivTolrtdLmtRatioInPct | |||
| UnderdelivTolrtdLmtRatioInPct | UnderdelivTolrtdLmtRatioInPct | |||
| UnlimitedOverdeliveryIsAllowed | UnlimitedOverdeliveryIsAllowed | |||
| NetPriceAmount | NetPriceAmount | |||
| MaterialPriceUnitQty | MaterialPriceUnitQty | |||
| PurchaseOrderPriceUnit | PurchaseOrderPriceUnit | |||
| InvoiceIsGoodsReceiptBased | InvoiceIsGoodsReceiptBased | |||
| TaxCode | TaxCode | |||
| IncotermsClassification | IncotermsClassification | |||
| IncotermsTransferLocation | IncotermsTransferLocation | |||
| IncotermsLocation1 | IncotermsLocation1 | |||
| IncotermsLocation2 | IncotermsLocation2 | |||
| MaximumOrderQuantity | MaximumOrderQuantity | |||
| IsRelevantForAutomSrcg | IsRelevantForAutomSrcg | |||
| IncotermsVersion | IncotermsVersion | |||
| MinRemainingShelfLife | MinRemainingShelfLife | |||
| ShippingInstruction | ShippingInstruction | |||
| IsEvaluatedRcptSettlmtAllowed | IsEvaluatedRcptSettlmtAllowed | |||
| IsPurOrderAllwdForInbDeliv | IsPurOrderAllwdForInbDeliv | |||
| IsOrderAcknRqd | IsOrderAcknRqd | |||
| SupplierConfirmationControlKey | SupplierConfirmationControlKey | |||
| MaterialRoundingProfile | MaterialRoundingProfile | |||
| MaterialStagingTime | MaterialStagingTime | |||
| ProductUnitGroup | ProductUnitGroup | |||
| IsRetMatlAuthznRqdBySupplier | IsRetMatlAuthznRqdBySupplier | |||
| IsCashDiscountGranted | IsCashDiscountGranted | |||
| PricingDateControl | PricingDateControl | |||
| NumberOfItems | ||||
| SupplierName | ||||
| MaterialName | ||||
| PurchasingGroupName | _PurchasingGroup | PurchasingGroupName | ||
| PlantName | _Plant | PlantName | ||
| MaterialGroupName | ||||
| PurchasingOrganizationName | _PurchasingOrganization | PurchasingOrganizationName |
@AbapCatalog.sqlViewName: 'PPURINFRECMASS'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #PRIVILEGED_ONLY
@EndUserText.label: 'Union of General and Org. Data'
@VDM.viewType: #CONSUMPTION
@VDM.private: true
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.sizeCategory: #XL
@ObjectModel.usageType.dataClass: #TRANSACTIONAL
@Metadata.ignorePropagatedAnnotations: true
define view P_PurchasingInfoRecMassUpdate
as select from I_PurchasingInfoRecord
{
key cast (PurchasingInfoRecord as abap.char(22)) as FormattedInfoRec,
cast (' ' as abap.char(16)) as ParentNode,
PurchasingInfoRecord,
cast ('0' as abap.char(1)) as HierarchyNodeLevel,
//---------------------------------------------------------------------------------
// General Data
//---------------------------------------------------------------------------------
cast (Supplier as vdm_lifnr) as Supplier,
Material,
SupplierSubrange,
MaterialGroup,
case CreationDate
when (' ') then '00000000'
else CreationDate
end as CreationDate,
//---------------------------------------------------------------------------------
IsDeleted,
PurchasingInfoRecordDesc,
SupplierMaterialNumber,
SupplierRespSalesPersonName,
SupplierPhoneNumber,
SupplierMaterialGroup,
PriorSupplier,
case AvailabilityStartDate
when (' ') then '00000000'
else AvailabilityStartDate
end as AvailabilityStartDate,
case AvailabilityEndDate
when (' ') then '00000000'
else AvailabilityEndDate
end as AvailabilityEndDate,
VarblPurOrdUnitIsActive,
Manufacturer,
IsRegularSupplier,
NoDaysReminder1,
NoDaysReminder2,
NoDaysReminder3,
ProductPurchasePointsQty,
ProductPurchasePointsQtyUnit,
ReturnAgreement,
SupplierCertOriginCat,
SupplierCertOriginNumber,
case SupplierCertValidityEndDate
when (' ') then '00000000'
else SupplierCertValidityEndDate
end as SupplierCertValidityEndDate,
SupplierCertOriginCountry,
SupplierCertOriginRegion,
SuplrCertOriginClassfctnNumber,
SupplierSubrangeSortNumber,
//---------------------------------------------------------------------------------
// Cast all Organizational Data
//---------------------------------------------------------------------------------
cast ('' as ekorg) as PurchasingOrganization,
cast ('' as /sapapo/cif_esokz) as PurchasingInfoRecordCategory,
cast ('' as ewerk) as Plant,
cast ('' as bkgrp) as PurchasingGroup,
cast ('' as ekkog) as MaterialConditionGroup,
//---------------------------------------------------------------------------------
cast ('' as iloee) as IsMarkedForDeletion,
cast ('' as waers) as Currency,
cast ('0' as minbm) as MinimumPurchaseOrderQuantity,
cast ('0' as norbm) as StandardPurchaseOrderQuantity,
cast ('0' as plifz) as MaterialPlannedDeliveryDurn,
cast ('0' as uebto) as OverdelivTolrtdLmtRatioInPct,
cast ('0' as untto) as UnderdelivTolrtdLmtRatioInPct,
cast ('' as uebtk) as UnlimitedOverdeliveryIsAllowed,
cast ('0' as iprei) as NetPriceAmount,
cast ('0' as epein) as MaterialPriceUnitQty,
cast ('' as bbprm) as PurchaseOrderPriceUnit,
cast ('00000000' as prgbi) as PriceValidityEndDate,
cast ('' as webre) as InvoiceIsGoodsReceiptBased,
cast ('' as mwskz) as TaxCode,
cast ('' as inco1) as IncotermsClassification,
cast ('' as inco2) as IncotermsTransferLocation,
cast ('' as inco2_l) as IncotermsLocation1,
cast ('' as inco3_l) as IncotermsLocation2,
cast ('0' as maxbm) as MaximumOrderQuantity,
cast ('' as aut_source) as IsRelevantForAutomSrcg,
cast ('' as incov) as IncotermsVersion,
cast ('0' as mhdrz) as MinRemainingShelfLife,
cast ('' as evers) as ShippingInstruction,
cast ('' as xersn) as IsEvaluatedRcptSettlmtAllowed,
cast ('' as /spe/cre_ref_doc) as IsPurOrderAllwdForInbDeliv,
cast ('' as kzabs) as IsOrderAcknRqd,
cast ('' as bstae) as SupplierConfirmationControlKey,
cast ('' as rdprf) as MaterialRoundingProfile,
cast ('0' as wrf_pscd_mst) as MaterialStagingTime,
cast ('' as megru) as ProductUnitGroup,
cast ('' as msr_vrma_req_eine) as IsRetMatlAuthznRqdBySupplier,
cast ('' as esktof ) as IsCashDiscountGranted,
cast ('' as meprf) as PricingDateControl,
//cast ('' as dattp) as ShelfLifeExpirationDatePeriod,
@DefaultAggregation: #SUM
cast(0 as abap.int4 ) as NumberOfItems,
//---------------------------------------------------------------------------------
// Text Fields
//---------------------------------------------------------------------------------
_Supplier.SupplierName,
_Material._Text[1: Language = $session.system_language].MaterialName,
cast ('' as mm_a_purg_grp_name) as PurchasingGroupName,
cast ('' as werks_name) as PlantName,
_MaterialGroup._Text[1: Language = $session.system_language].MaterialGroupName,
cast ('' as mm_a_purg_org_name) as PurchasingOrganizationName
}
where
IsDeleted = ''
union select from I_PurgInfoRecordWithOrgData
{
//---------------------------------------------------------------------------------
// Key Fields and Filter Fields
//---------------------------------------------------------------------------------
key cast (concat(concat(concat(concat(concat(concat(PurchasingInfoRecord, '/'),
PurchasingOrganization),'/'),
PurchasingInfoRecordCategory),'/'),
Plant)
as abap.char(22)) as FormattedInfoRec,
PurchasingInfoRecord as ParentNode,
PurchasingInfoRecord,
cast ('1' as abap.char(1)) as HierarchyNodeLevel,
//---------------------------------------------------------------------------------
// Cast all General Data
//---------------------------------------------------------------------------------
Supplier,
Material,
SupplierSubrange,
MaterialGroup,
CreationDate,
//---------------------------------------------------------------------------------
cast ('' as iloea) as IsDeleted,
PurchasingInfoRecordDesc,
cast ('' as idnlf) as SupplierMaterialNumber,
cast ('' as verkf) as SupplierRespSalesPersonName,
cast ('' as telf0) as SupplierPhoneNumber,
cast ('' as wglif) as SupplierMaterialGroup,
PriorSupplier,
cast ('00000000' as lifab) as AvailabilityStartDate,
cast ('00000000' as lifbi) as AvailabilityEndDate,
VarblPurOrdUnitIsActive,
Manufacturer,
cast ('' as relif) as IsRegularSupplier,
cast ('0' as mahn1) as NoDaysReminder1,
cast ('0' as mahn2) as NoDaysReminder2,
cast ('0' as mahn3) as NoDaysReminder3,
cast ('0' as anzpu) as ProductPurchasePointsQty,
cast ('' as punei) as ProductPurchasePointsQtyUnit,
ReturnAgreement,
cast ('' as urztp) as SupplierCertOriginCat,
cast ('' as urznr) as SupplierCertOriginNumber,
cast ('00000000' as urzdt) as SupplierCertValidityEndDate,
cast ('' as uland) as SupplierCertOriginCountry,
cast ('' as regio) as SupplierCertOriginRegion,
cast ('' as urzzt) as SuplrCertOriginClassfctnNumber,
cast ('00000' as urznr) as SupplierSubrangeSortNumber,
//---------------------------------------------------------------------------------
// Organizational Data
//---------------------------------------------------------------------------------
PurchasingOrganization,
cast (PurchasingInfoRecordCategory as /sapapo/cif_esokz ) as PurchasingInfoRecordCategory,
Plant,
PurchasingGroup,
MaterialConditionGroup,
//---------------------------------------------------------------------------------
IsMarkedForDeletion,
Currency,
MinimumPurchaseOrderQuantity,
StandardPurchaseOrderQuantity,
MaterialPlannedDeliveryDurn,
OverdelivTolrtdLmtRatioInPct,
UnderdelivTolrtdLmtRatioInPct,
UnlimitedOverdeliveryIsAllowed,
NetPriceAmount,
MaterialPriceUnitQty,
PurchaseOrderPriceUnit,
case PriceValidityEndDate
when (' ') then '00000000'
else PriceValidityEndDate
end as PriceValidityEndDate,
InvoiceIsGoodsReceiptBased,
TaxCode,
IncotermsClassification,
IncotermsTransferLocation,
IncotermsLocation1,
IncotermsLocation2,
MaximumOrderQuantity,
IsRelevantForAutomSrcg,
IncotermsVersion,
MinRemainingShelfLife,
ShippingInstruction,
IsEvaluatedRcptSettlmtAllowed,
IsPurOrderAllwdForInbDeliv,
IsOrderAcknRqd,
SupplierConfirmationControlKey,
MaterialRoundingProfile,
MaterialStagingTime,
ProductUnitGroup,
IsRetMatlAuthznRqdBySupplier,
IsCashDiscountGranted,
PricingDateControl,
//ShelfLifeExpirationDatePeriod,
@DefaultAggregation: #SUM
cast(0 as abap.int4 ) as NumberOfItems,
//---------------------------------------------------------------------------------
// Text Fields
//---------------------------------------------------------------------------------
cast ('' as md_supplier_name) as SupplierName,
cast ('' as maktx) as MaterialName,
_PurchasingGroup.PurchasingGroupName,
_Plant.PlantName,
cast ('' as wgbez) as MaterialGroupName,
_PurchasingOrganization.PurchasingOrganizationName
}
where
IsMarkedForDeletion = ''
and IsDeleted = ''
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA