I_SalesOrganizationUnit
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
| Category | Common CDS Views for Service |
|---|---|
| Data Category | Dimension |
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.
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.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| t77s0 | systemtable | inner |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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..*]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA