I_SalesOrganizationUnit

DDL: I_SALESORGANIZATIONUNIT Type: view BASIC

Sales Organizational Unit

I_SalesOrganizationUnit is a Basic CDS View (Dimension) that provides data about "Sales Organizational Unit" in SAP S/4HANA. It reads from 1 data source (t77s0) and exposes 5 fields with key field OrganizationalUnit. It has 2 associations to related views.

SAP Help Documentation

CategoryCommon CDS Views for Service
Data CategoryDimension
Purpose
This CDS view displays the organizational units, specifically the traditional CRM units, in the format 'O 50000077.' To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .

Prerequisites
Authorizations Users who want to use this CDS view don't need any special authorization. Configuration The units are set up as part of the table HRP1000: Infotypes.

Structure
Important Fields Important fields in this view include the following: Field Name Description OrganizationalUnit Key Object ID OrgUnitTypeIDConcatenated Obj.type/object ID StartDate Start Date EndDate End Date

Constraints
The system returns only the organization units valid on the date of reading the system data. Additionally, the entities must be in the logon language.

View on SAP Help Portal →

Data Sources (1)

SourceAliasJoin Type
t77s0 systemtable inner

Associations (2)

CardinalityTargetAliasCondition
[0..*] I_SalesOrganizationUnitText _Text $projection.OrganizationalUnit = _Text.OrganizationalUnit
[0..*] I_SalesOrganizationUnitText _TextCurrent $projection.OrganizationalUnit = _TextCurrent.OrganizationalUnit and $projection.StartDate = _TextCurrent.StartDate and $projection.EndDate = _TextCurrent.EndDate

Annotations (16)

NameValueLevelField
EndUserText.label Sales Organizational Unit view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.sqlViewName ISALESORGUNIT view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.representativeKey OrganizationalUnit view
ObjectModel.usageType.dataClass #CUSTOMIZING view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
Search.searchable true view
Metadata.allowExtensions true view
Metadata.ignorePropagatedAnnotations true view
Analytics.dataCategory #DIMENSION view

Fields (5)

KeyFieldSource TableSource FieldDescription
KEY OrganizationalUnit objid Work Center
StartDate begda Valid From
EndDate endda Valid To
_Text _Text
_TextCurrent _TextCurrent

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_SalesOrganizationUnit.
-- 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_SalesOrganizationUnit AS
SELECT
  objid AS OrganizationalUnit,
  begda AS StartDate,
  endda AS EndDate
INNER JOIN t77s0 AS systemtable ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_SalesOrganizationUnitText AS _Text ON OrganizationalUnit = _Text.OrganizationalUnit  -- association [0..*]
LEFT OUTER JOIN I_SalesOrganizationUnitText AS _TextCurrent ON OrganizationalUnit = _TextCurrent.OrganizationalUnit AND StartDate = _TextCurrent.StartDate AND EndDate = _TextCurrent.EndDate  -- association [0..*]
;