view_po_lts

DDL: CDS_PO_LTS SQL: CDS_PO_LTS Type: view

Supplier Subrange of a Purchase Order Item

view_po_lts is a CDS View that provides data about "Supplier Subrange of a Purchase Order Item" in SAP S/4HANA. It reads from 2 data sources (ekko, ekpo) and exposes 6 fields with key fields ebeln, ebelp. It has 2 associations to related views.

Data Sources (2)

SourceAliasJoin Type
ekko po_head inner
ekpo po_items from

Associations (2)

CardinalityTargetAliasCondition
[0..1] wyt1 VendorSubrange $projection.lifnr = VendorSubrange.lifnr and $projection.ltsnr = VendorSubrange.ltsnr
[0..*] wyt1t VendorSubrangeTexts $projection.lifnr = VendorSubrangeTexts.lifnr and $projection.ltsnr = VendorSubrangeTexts.ltsnr

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName CDS_PO_LTS view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
EndUserText.label Supplier Subrange of a Purchase Order Item view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.sizeCategory #XL view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.type #INHERITED view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY ebeln ekpo ebeln Source PurchDoc
KEY ebelp ekpo ebelp Item pur. doc.
lifnr ekko lifnr Vendor no.
ltsnr ekpo ltsnr Suppl. Subrange
VendorSubrange VendorSubrange
VendorSubrangeTexts VendorSubrangeTexts

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 view_po_lts.
-- 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: CDS_PO_LTS

CREATE VIEW view_po_lts AS
SELECT
  po_items.ebeln AS ebeln,
  po_items.ebelp AS ebelp,
  po_head.lifnr AS lifnr,
  po_items.ltsnr AS ltsnr,
  VendorSubrange,
  VendorSubrangeTexts
FROM ekpo AS po_items
INNER JOIN ekko AS po_head ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN wyt1 AS VendorSubrange ON lifnr = VendorSubrange.lifnr AND ltsnr = VendorSubrange.ltsnr  -- association [0..1]
LEFT OUTER JOIN wyt1t AS VendorSubrangeTexts ON lifnr = VendorSubrangeTexts.lifnr AND ltsnr = VendorSubrangeTexts.ltsnr  -- association [0..*]
;