I_PhysInvtryCustomerVH

DDL: I_PHYSINVTRYCUSTOMERVH Type: view_entity COMPOSITE

Customers in Physical Inventory

I_PhysInvtryCustomerVH is a Composite CDS View that provides data about "Customers in Physical Inventory" in SAP S/4HANA. It reads from 1 data source (I_Customer_VH) and exposes 22 fields with key fields Customer, Plant, StorageLocation, Material, Batch. It has 3 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_Customer_VH _customer inner

Associations (3)

CardinalityTargetAliasCondition
[1..1] I_Plant _Plant $projection.Plant = _Plant.Plant
[1..1] I_StorageLocation _StorageLocation $projection.Plant = _StorageLocation.Plant and $projection.StorageLocation = _StorageLocation.StorageLocation
[1..1] I_Product _Product $projection.Material = _Product.Product

Annotations (12)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
EndUserText.label Customers in Physical Inventory view
Metadata.ignorePropagatedAnnotations true view
Search.searchable true view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.dataCategory #VALUE_HELP view
ObjectModel.representativeKey Customer view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #NONE view
Consumption.ranked true view

Fields (22)

KeyFieldSource TableSource FieldDescription
KEY Customer I_Customer_VH Customer Sold-to Party
KEY Plant _matdoc Plant Valuation Area
KEY StorageLocation _matdoc StockIdfgStorageLocation
KEY Material _matdoc StockIdentifyingMaterial
KEY Batch _matdoc StockIdentifyingBatch
KEY InventorySpecialStockType _matdoc InventorySpecialStockType Special Stock Type
OrganizationBPName1 I_Customer_VH OrganizationBPName1 Name 1
OrganizationBPName2 I_Customer_VH OrganizationBPName2 Name 2
Country I_Customer_VH Country Country/Region
CityName I_Customer_VH CityName City
StreetName I_Customer_VH StreetName Street
PostalCode I_Customer_VH PostalCode Postal Code
CustomerName I_Customer_VH CustomerName Customer Name
CustomerAccountGroup I_Customer_VH CustomerAccountGroup Account group
AuthorizationGroup I_Customer_VH AuthorizationGroup AuthorizGroup
IsBusinessPurposeCompleted I_Customer_VH IsBusinessPurposeCompleted Purpose Complete Flag
IsCompetitor I_Customer_VH IsCompetitor Competitors
BusinessPartner I_Customer_VH BusinessPartner Business Partner
BusinessPartnerType I_Customer_VH BusinessPartnerType Business Partner Type
_Plant _Plant
_StorageLocation _StorageLocation
_Product _Product

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 I_PhysInvtryCustomerVH.
-- 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.

CREATE VIEW I_PhysInvtryCustomerVH AS
SELECT
  _customer.Customer AS Customer,
  _matdoc.Plant AS Plant,
  _matdoc.StockIdfgStorageLocation AS StorageLocation,
  _matdoc.StockIdentifyingMaterial AS Material,
  _matdoc.StockIdentifyingBatch AS Batch,
  _matdoc.InventorySpecialStockType AS InventorySpecialStockType,
  _customer.OrganizationBPName1 AS OrganizationBPName1,
  _customer.OrganizationBPName2 AS OrganizationBPName2,
  _customer.Country AS Country,
  _customer.CityName AS CityName,
  _customer.StreetName AS StreetName,
  _customer.PostalCode AS PostalCode,
  _customer.CustomerName AS CustomerName,
  _customer.CustomerAccountGroup AS CustomerAccountGroup,
  _customer.AuthorizationGroup AS AuthorizationGroup,
  _customer.IsBusinessPurposeCompleted AS IsBusinessPurposeCompleted,
  _customer.IsCompetitor AS IsCompetitor,
  _customer.BusinessPartner AS BusinessPartner,
  _customer.BusinessPartnerType AS BusinessPartnerType
INNER JOIN I_Customer_VH AS _customer ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant  -- association [1..1]
LEFT OUTER JOIN I_StorageLocation AS _StorageLocation ON Plant = _StorageLocation.Plant AND StorageLocation = _StorageLocation.StorageLocation  -- association [1..1]
LEFT OUTER JOIN I_Product AS _Product ON Material = _Product.Product  -- association [1..1]
;