P_RU_SupplierOKTMO1

DDL: P_RU_SUPPLIEROKTMO1 SQL: PRUSUPPLOKTMO1 Type: view BASIC

P_RU_SupplierOKTMO1 is a Basic CDS View in SAP S/4HANA. It reads from 1 data source (j_3rvendoktmo) and exposes 4 fields with key fields Supplier, RU_TerritoryClassfctnOKTMO1, RU_TerritoryClassfctnOKTMO2, RU_TerritoryClassfctnOKTMO3.

Data Sources (1)

SourceAliasJoin Type
j_3rvendoktmo j_3rvendoktmo from

Annotations (8)

NameValueLevelField
AbapCatalog.sqlViewName PRUSUPPLOKTMO1 view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #A view
VDM.private true view
VDM.viewType #BASIC view

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY Supplier lifnr Vendor no.
KEY RU_TerritoryClassfctnOKTMO1
KEY RU_TerritoryClassfctnOKTMO2
KEY RU_TerritoryClassfctnOKTMO3

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_RU_SupplierOKTMO1.
-- 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: PRUSUPPLOKTMO1

CREATE VIEW P_RU_SupplierOKTMO1 AS
SELECT
  lifnr AS Supplier,
  lpad(oktmo1, 2, '0') AS RU_TerritoryClassfctnOKTMO1,
  lpad(oktmo2, 3, '0') AS RU_TerritoryClassfctnOKTMO2,
  lpad(oktmo3, 3, '0') AS RU_TerritoryClassfctnOKTMO3
FROM j_3rvendoktmo
;