I_SalesOfficeOrgUnitIDVH
Sales Office in Service
I_SalesOfficeOrgUnitIDVH is a Basic CDS View that provides data about "Sales Office in Service" in SAP S/4HANA. It reads from 2 data sources (crmd_orgman_temp, I_SlsOffcOrgUnitSlsOffcAssgmt) and exposes 8 fields with key field SalesOffice. It has 1 association to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| crmd_orgman_temp | _crmd_orgman_temp | inner |
| I_SlsOffcOrgUnitSlsOffcAssgmt | SlsOffcOrgUnitSlsOffcAssgmt | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_SalesOrganizationUnitText | _SalesOrganizationUnitText | SlsOffcOrgUnitSlsOffcAssgmt.OrganizationalUnit = _SalesOrganizationUnitText.OrganizationalUnit and _SalesOrganizationUnitText.StartDate <= $session.system_date and _SalesOrganizationUnitText.EndDate >= $session.system_date and _SalesOrganizationUnitText.Language = $session.system_language |
Annotations (15)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Sales Office in Service | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| VDM.viewType | #BASIC | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.representativeKey | SalesOffice | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.usageType.dataClass | #CUSTOMIZING | view | |
| ObjectModel.dataCategory | #VALUE_HELP | view | |
| Search.searchable | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.sqlViewName | ISLSOFFORGUNITVH | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view |
Fields (8)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SalesOffice | I_SlsOffcOrgUnitSlsOffcAssgmt | SalesOffice | Sales Office |
| SalesOfficeOrgUnitID | ||||
| SalesOfficeOrgUnitName | ||||
| SalesOrganizationOrgUnitID | ||||
| DistributionChannel | crmd_orgman_temp | dis_channel | Distribution Channel | |
| OrganizationDivision | crmd_orgman_temp | division | Internal Division ID | |
| OrganizationalUnit | I_SlsOffcOrgUnitSlsOffcAssgmt | OrganizationalUnit | Org. Unit ID | |
| _SalesOrganizationUnitText | _SalesOrganizationUnitText |
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_SalesOfficeOrgUnitIDVH.
-- 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_SalesOfficeOrgUnitIDVH AS
SELECT
SlsOffcOrgUnitSlsOffcAssgmt.SalesOffice AS SalesOffice,
cast(_crmd_orgman_temp.sales_office as crmt_sales_office_lbl preserving type ) AS SalesOfficeOrgUnitID,
cast(_SalesOrganizationUnitText.OrganizationalUnitName as crmt_sales_office_name_lbl preserving type ) AS SalesOfficeOrgUnitName,
cast(_crmd_orgman_temp.sales_org as crmt_sales_org preserving type ) AS SalesOrganizationOrgUnitID,
_crmd_orgman_temp.dis_channel AS DistributionChannel,
_crmd_orgman_temp.division AS OrganizationDivision,
SlsOffcOrgUnitSlsOffcAssgmt.OrganizationalUnit AS OrganizationalUnit
FROM I_SlsOffcOrgUnitSlsOffcAssgmt AS SlsOffcOrgUnitSlsOffcAssgmt
INNER JOIN crmd_orgman_temp AS _crmd_orgman_temp ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_SalesOrganizationUnitText AS _SalesOrganizationUnitText ON SlsOffcOrgUnitSlsOffcAssgmt.OrganizationalUnit = _SalesOrganizationUnitText.OrganizationalUnit AND _SalesOrganizationUnitText.StartDate <= $session.system_date AND _SalesOrganizationUnitText.EndDate >= $session.system_date AND _SalesOrganizationUnitText.Language = $session.system_language -- association [0..1]
;
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