P_Prchinforecords_FS

DDL: P_PRCHINFORECORDS_FS SQL: PPRCHINFORECORDS Type: view BASIC

P_Prchinforecords_FS is a Basic CDS View in SAP S/4HANA. It reads from 8 data sources and exposes 33 fields with key field PurchasingInfoRecord.

Data Sources (8)

SourceAliasJoin Type
P_Prchinforecordslang_Fs Language left_outer
lfa1 Manufacturer left_outer
I_Product Material left_outer
I_MaterialGroupText MaterialGroupText left_outer
eina PrchinInfoRecords from
lfa1 PriorSupplier left_outer
I_ProductDescription ProductDescription left_outer
P_Usercontactcard_Fs UserName left_outer

Annotations (4)

NameValueLevelField
AbapCatalog.sqlViewName PPRCHINFORECORDS view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #BASIC view
VDM.private true view

Fields (33)

KeyFieldSource TableSource FieldDescription
KEY PurchasingInfoRecord infnr Info Record
PersonFullName P_Usercontactcard_Fs PersonFullName Full Name
ManufacturerName
MaterialGroupName I_MaterialGroupText MaterialGroupName prod Grp Desc.
ProductDescription I_ProductDescription ProductDescription Description
PriorSupplierName lfa1 name1 PA text
Supplier eina lifnr Vendor no.
MaterialGroup I_Product ProductGroup Product Sold Group
Material eina matnr Vehicle Model
CreationDate eina erdat Entered On
IsDeleted loekz Status
PurchasingInfoRecordDesc txz01 Text
PurgDocOrderQuantityUnit eina meins Valuation Unit
OrderItemQtyToBaseQtyNmrtr umrez Numerator
OrderItemQtyToBaseQtyDnmntr umren Denominator
SupplierMaterialNumber idnlf Vendor Material
SupplierRespSalesPersonName verkf Salesperson
SupplierPhoneNumber eina telf1 Telephone no.
BaseUnit lmein Base Unit
SupplierMaterialGroup wglif Suppl. Mat. Grp
PriorSupplier kolif Prior Supplier
AvailibilityStartDate lifab Available from
AvailibilityEndDate lifbi Available to
VarblPurOrdUnitStatus eina vabme Var. Order Unit
Manufacturer eina mfrnr Manufacturer
IsRegularSupplier relif Reg. Supplier
CreatedByUser eina ernam User Name
ProductPurchasePointsQty anzpu Points
ProductPurchasePointsQtyUnit punei Points Unit
SupplierSubrange ltsnr Suppl. Subrange
Language P_Prchinforecordslang_Fs Language Report Text Language
PreferredSupplierName
AuthorizationGroup I_Product AuthorizationGroup AuthorizGroup

Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.

-- Derived SQL interpretation of CDS view P_Prchinforecords_FS.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- SQL view name: PPRCHINFORECORDS

CREATE VIEW P_Prchinforecords_FS AS
SELECT
  infnr AS PurchasingInfoRecord,
  UserName.PersonFullName AS PersonFullName,
  cast(Manufacturer.name1 as migo_mfrname preserving type) AS ManufacturerName,
  MaterialGroupText.MaterialGroupName AS MaterialGroupName,
  ProductDescription.ProductDescription AS ProductDescription,
  PriorSupplier.name1 AS PriorSupplierName,
  PrchinInfoRecords.lifnr AS Supplier,
  Material.ProductGroup AS MaterialGroup,
  PrchinInfoRecords.matnr AS Material,
  PrchinInfoRecords.erdat AS CreationDate,
  loekz AS IsDeleted,
  txz01 AS PurchasingInfoRecordDesc,
  PrchinInfoRecords.meins AS PurgDocOrderQuantityUnit,
  umrez AS OrderItemQtyToBaseQtyNmrtr,
  umren AS OrderItemQtyToBaseQtyDnmntr,
  idnlf AS SupplierMaterialNumber,
  verkf AS SupplierRespSalesPersonName,
  PrchinInfoRecords.telf1 AS SupplierPhoneNumber,
  lmein AS BaseUnit,
  wglif AS SupplierMaterialGroup,
  kolif AS PriorSupplier,
  lifab AS AvailibilityStartDate,
  lifbi AS AvailibilityEndDate,
  PrchinInfoRecords.vabme AS VarblPurOrdUnitStatus,
  PrchinInfoRecords.mfrnr AS Manufacturer,
  relif AS IsRegularSupplier,
  PrchinInfoRecords.ernam AS CreatedByUser,
  anzpu AS ProductPurchasePointsQty,
  punei AS ProductPurchasePointsQtyUnit,
  ltsnr AS SupplierSubrange,
  Language.Language AS Language,
  Concat(concat(concat_with_space(Language.SupplierName , '(', 1),ltrim(Supplier, '0')),')') AS PreferredSupplierName,
  Material.AuthorizationGroup AS AuthorizationGroup
FROM eina AS PrchinInfoRecords
LEFT OUTER JOIN I_Product AS Material ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN P_Usercontactcard_Fs AS UserName ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN lfa1 AS PriorSupplier ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN lfa1 AS Manufacturer ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN P_Prchinforecordslang_Fs AS Language ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_ProductDescription AS ProductDescription ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_MaterialGroupText AS MaterialGroupText ON /* join condition not captured in parsed metadata */
;