I_SalesOfficeOrgUnit

DDL: I_SALESOFFICEORGUNIT SQL: ISLSOFFORGUNT Type: view BASIC Package: CRMS4_ANALYTICS_COMMON

Sales Office Organization Unit

I_SalesOfficeOrgUnit is a Basic CDS View that provides data about "Sales Office Organization Unit" in SAP S/4HANA. It reads from 1 data source (hrp1001) and exposes 5 fields with key fields OrganizationalUnit, SalesOfficeOrgUnitID. It has 1 association to related views. Part of development package CRMS4_ANALYTICS_COMMON.

Data Sources (1)

SourceAliasJoin Type
hrp1001 _hrp1001 inner

Associations (1)

CardinalityTargetAliasCondition
[0..*] I_SalesOrganizationUnitText _Text $projection.SalesOfficeOrgUnitID = _Text.OrganizationalUnit

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName ISLSOFFORGUNT view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #CHECK view
VDM.viewType #BASIC view
ObjectModel.usageType.dataClass #ORGANIZATIONAL view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #S view
EndUserText.label Sales Office Organization Unit view

Fields (5)

KeyFieldSource TableSource FieldDescription
KEY OrganizationalUnit hrp1001 sobid
KEY SalesOfficeOrgUnitID _hrp1000 objid
StartDate _hrp1000 begda
EndDate _hrp1000 endda
_Text _Text
@AbapCatalog.sqlViewName: 'ISLSOFFORGUNT'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@ClientHandling.algorithm: #SESSION_VARIABLE
@AccessControl.authorizationCheck: #CHECK
@VDM.viewType: #BASIC
@ObjectModel.usageType.dataClass: #ORGANIZATIONAL
@ObjectModel.usageType.serviceQuality: #B
@ObjectModel.usageType.sizeCategory: #S
@EndUserText.label: 'Sales Office Organization Unit'

define view I_SalesOfficeOrgUnit
  as select distinct from hrp1000 as _hrp1000

    inner join            hrp1001 as _hrp1001 on  _hrp1000.objid = _hrp1001.objid
                                              and _hrp1000.otype = _hrp1001.otype
                                              and _hrp1000.istat = _hrp1001.istat

  association        to hrv1222a                    as _hrv1222a on  _hrp1000.objid = _hrv1222a.objid
                                                                 and _hrp1000.otype = _hrv1222a.otype
                                                                 and _hrp1000.istat = _hrv1222a.istat

  association [0..*] to I_SalesOrganizationUnitText as _Text     on  $projection.SalesOfficeOrgUnitID = _Text.OrganizationalUnit
{
  key _hrp1001.sobid         as OrganizationalUnit,
      @ObjectModel.text.association: '_Text'
  key _hrp1000.objid         as SalesOfficeOrgUnitID,
      _hrp1000.begda         as StartDate,
      _hrp1000.endda         as EndDate,

      _Text
}
where
      _hrp1000.otype   = 'O'
  and _hrp1000.istat   = '1'
  and _hrv1222a.attrib = 'IS_SA_OFF'
  and _hrv1222a.low    = 'X'