I_JITSlsSchedgAgrmt

DDL: I_JITSLSSCHEDGAGRMT SQL: IJITSSDGAGR Type: view BASIC

JIT Sales Scheduling Agreement

I_JITSlsSchedgAgrmt is a Basic CDS View that provides data about "JIT Sales Scheduling Agreement" in SAP S/4HANA. It reads from 2 data sources (I_SalesDocumentType, vlpkm) and exposes 20 fields with key fields MaterialByCustomer, SoldToParty, CustomerPartnerDescription, abladendasUnloadingPointName, MatlUsageIndicator. It has 2 associations to related views.

Data Sources (2)

SourceAliasJoin Type
I_SalesDocumentType I_SalesDocumentType from
vlpkm vlpkm inner

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_SalesDocumentItem _SalesDocumentItem $projection.SalesSchedulingAgreement = _SalesDocumentItem.SalesDocument and $projection.SalesSchedulingAgreementItem = _SalesDocumentItem.SalesDocumentItem
[0..1] I_Customer _Customer $projection.SoldToParty = _Customer.Customer

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName IJITSSDGAGR view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label JIT Sales Scheduling Agreement view
VDM.viewType #BASIC view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #S view
ClientHandling.type #INHERITED view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (20)

KeyFieldSource TableSource FieldDescription
KEY MaterialByCustomer vlpkm kdmat Customer Mat.
KEY SoldToParty vlpkm kunnr Stock customer
KEY CustomerPartnerDescription vlpkm knref Partner Desc.
KEY abladendasUnloadingPointName
KEY MatlUsageIndicator vlpkm abrvw Usage
KEY SalesOrganization vlpkm vkorg SD Sales Org.
KEY DistributionChannel vlpkm vtweg RefDistCh-Cust/Mat.
KEY Division _SalesDocumentItem Division Internal Division ID
KEY SalesDocumentType SalesDocumentType Sales Doc. Type
KEY SalesSchedulingAgreement
KEY SalesSchedulingAgreementItem
Material _SalesDocumentItem Material Vehicle Model
MaterialName
ShippingPoint _SalesDocumentItem ShippingPoint Shipping Point
ShippingPointName
Plant _SalesDocumentItem Plant Valuation Area
StorageLocation _SalesDocumentItem StorageLocation StorageLocation
OrderQuantityUnit _SalesDocumentItem OrderQuantityUnit Sales Unit
_SalesDocumentItem _SalesDocumentItem
_Customer _Customer

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_JITSlsSchedgAgrmt.
-- 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: IJITSSDGAGR

CREATE VIEW I_JITSlsSchedgAgrmt AS
SELECT
  vlpkm.kdmat AS MaterialByCustomer,
  vlpkm.kunnr AS SoldToParty,
  vlpkm.knref AS CustomerPartnerDescription,
  case when vbpa_i.ablad is not null then vbpa_i.ablad else vbpa_h.ablad end as UnloadingPointName AS abladendasUnloadingPointName,
  vlpkm.abrvw AS MatlUsageIndicator,
  vlpkm.vkorg AS SalesOrganization,
  vlpkm.vtweg AS DistributionChannel,
  _SalesDocumentItem.Division AS Division,
  SalesDocumentType,
  cast(vlpkm.vbeln as vdm_sales_schedg_agrmt preserving type) AS SalesSchedulingAgreement,
  cast(vlpkm.posnr as vdm_sales_schedg_agrmt_item preserving type) AS SalesSchedulingAgreementItem,
  _SalesDocumentItem.Material AS Material,
  _SalesDocumentItem._Material._Text[1: Language=$session.system_language].MaterialName AS MaterialName,
  _SalesDocumentItem.ShippingPoint AS ShippingPoint,
  _SalesDocumentItem._ShippingPoint._Text[1: Language=$session.system_language].ShippingPointName AS ShippingPointName,
  _SalesDocumentItem.Plant AS Plant,
  _SalesDocumentItem.StorageLocation AS StorageLocation,
  _SalesDocumentItem.OrderQuantityUnit AS OrderQuantityUnit
FROM I_SalesDocumentType
INNER JOIN vlpkm ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_SalesDocumentItem AS _SalesDocumentItem ON SalesSchedulingAgreement = _SalesDocumentItem.SalesDocument AND SalesSchedulingAgreementItem = _SalesDocumentItem.SalesDocumentItem  -- association [0..1]
LEFT OUTER JOIN I_Customer AS _Customer ON SoldToParty = _Customer.Customer  -- association [0..1]
;