I_JITCallHeaderBasic

DDL: I_JITCALLHEADERBASIC Type: view_entity BASIC

JIT Call Header

I_JITCallHeaderBasic is a Basic CDS View that provides data about "JIT Call Header" in SAP S/4HANA. It reads from 1 data source (njit_call_d_hdr) and exposes 39 fields with key fields JITHeaderUUID, InternalJITCallNumber. It has 13 associations to related views.

Data Sources (1)

SourceAliasJoin Type
njit_call_d_hdr njit_call_d_hdr from

Associations (13)

CardinalityTargetAliasCondition
[1..1] I_Customer_to_BusinessPartner _CustomerToBusinessPartner $projection.ShipToParty = _CustomerToBusinessPartner.Customer
[0..1] I_JITLifecycleStatus _JITLifecycleStatus $projection.JITLifecycleStatus = _JITLifecycleStatus.JITLifecycleStatus
[0..1] I_JITCallType _JITCallType $projection.JITCallType = _JITCallType.JITCallType
[1..1] I_JITCustomer _JITCustomer $projection.ShipToParty = _JITCustomer.ShipToParty and $projection.CustomerUUID = _JITCustomer.CustomerUUID
[0..1] I_MatlUsageIndicator _MatlUsageIndicator $projection.MatlUsageIndicator = _MatlUsageIndicator.MatlUsageIndicator
[0..1] I_UserContactCard _CreatedByUser $projection.CreatedByUser = _CreatedByUser.ContactCardID
[0..1] I_UserContactCard _LastChangedByUser $projection.LastChangedByUser = _LastChangedByUser.ContactCardID
[0..1] I_Customer _Customer $projection.ShipToParty = _Customer.Customer
[0..1] I_SalesOrganization _SalesOrganization $projection.SalesOrganization = _SalesOrganization.SalesOrganization
[0..1] I_DistributionChannel _DistributionChannel $projection.DistributionChannel = _DistributionChannel.DistributionChannel
[0..1] I_Division _Division $projection.Division = _Division.Division
[0..1] I_JITComponentIsReordered _JITComponentIsReordered $projection.JITComponentIsReordered = _JITComponentIsReordered.JITComponentIsReordered
[0..*] I_JITCallCompGroupBasic _JITCallCompGroupBasic $projection.JITHeaderUUID = _JITCallCompGroupBasic.JITHeaderUUID

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
EndUserText.label JIT Call Header view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XXL view
VDM.viewType #BASIC view

Fields (39)

KeyFieldSource TableSource FieldDescription
KEY JITHeaderUUID db_key
KEY InternalJITCallNumber int_call_num
ExternalJITCallNumber ext_call_num
ApplLogHighestMessageSeverity log_severity
JITScenario njit_scenario
CustomerUUID customeruuid
ShipToParty kunnr
SoldToParty kunag
JITLifecycleStatus lifecycle_stat
JITCallType call_type
VehicleIdentificationNumber vhvin
VehicleModel vhcle_model
SalesOrganization vkorg
DistributionChannel vtweg
Division spart
UnloadingPointName ablad
CustomerPartnerDescription knref
MatlUsageIndicator abrvw
ActiveSupplier
JITCallProcessingLogID
JITExtSequenceNumber ext_sequence_num
CreationDateTime crea_date_time
CreatedByUser crea_uname
LastChangeDateTime lchg_date_time
LastChangedByUser lchg_uname
JITComponentIsReordered jitcomponentisreordered
_CustomerToBusinessPartner _CustomerToBusinessPartner
_JITLifecycleStatus _JITLifecycleStatus
_JITCallType _JITCallType
_JITCustomer _JITCustomer
_MatlUsageIndicator _MatlUsageIndicator
_CreatedByUser _CreatedByUser
_LastChangedByUser _LastChangedByUser
_Customer _Customer
_SalesOrganization _SalesOrganization
_Division _Division
_DistributionChannel _DistributionChannel
_JITComponentIsReordered _JITComponentIsReordered
_JITCallCompGroupBasic _JITCallCompGroupBasic
@AccessControl: {
  authorizationCheck: #CHECK,
  personalData.blocking: #REQUIRED,
  privilegedAssociations: ['_CreatedByUser','_LastChangedByUser' ]
}
@EndUserText.label: 'JIT Call Header'
@ObjectModel: {
  usageType.dataClass: #TRANSACTIONAL,
  usageType.serviceQuality: #C,
  usageType.sizeCategory: #XXL
}
@VDM.viewType: #BASIC

define view entity I_JITCallHeaderBasic
  as select from njit_call_d_hdr

  association [1..1] to I_Customer_to_BusinessPartner as _CustomerToBusinessPartner on  $projection.ShipToParty = _CustomerToBusinessPartner.Customer

  association [0..1] to I_JITLifecycleStatus          as _JITLifecycleStatus        on  $projection.JITLifecycleStatus = _JITLifecycleStatus.JITLifecycleStatus

  association [0..1] to I_JITCallType                 as _JITCallType               on  $projection.JITCallType = _JITCallType.JITCallType

  association [1..1] to I_JITCustomer                 as _JITCustomer               on  $projection.ShipToParty  = _JITCustomer.ShipToParty
                                                                                    and $projection.CustomerUUID = _JITCustomer.CustomerUUID

  association [0..1] to I_MatlUsageIndicator          as _MatlUsageIndicator        on  $projection.MatlUsageIndicator = _MatlUsageIndicator.MatlUsageIndicator

  association [0..1] to I_UserContactCard             as _CreatedByUser             on  $projection.CreatedByUser = _CreatedByUser.ContactCardID

  association [0..1] to I_UserContactCard             as _LastChangedByUser         on  $projection.LastChangedByUser = _LastChangedByUser.ContactCardID

  association [0..1] to I_Customer                    as _Customer                  on  $projection.ShipToParty = _Customer.Customer

  association [0..1] to I_SalesOrganization           as _SalesOrganization         on  $projection.SalesOrganization = _SalesOrganization.SalesOrganization

  association [0..1] to I_DistributionChannel         as _DistributionChannel       on  $projection.DistributionChannel = _DistributionChannel.DistributionChannel

  association [0..1] to I_Division                    as _Division                  on  $projection.Division = _Division.Division

  association [0..1] to I_JITComponentIsReordered     as _JITComponentIsReordered   on  $projection.JITComponentIsReordered = _JITComponentIsReordered.JITComponentIsReordered

  association [0..*] to I_JITCallCompGroupBasic       as _JITCallCompGroupBasic     on  $projection.JITHeaderUUID = _JITCallCompGroupBasic.JITHeaderUUID

{

  key db_key                           as JITHeaderUUID,
  key int_call_num                     as InternalJITCallNumber,
      ext_call_num                     as ExternalJITCallNumber,
      log_severity                     as ApplLogHighestMessageSeverity,
      njit_scenario                    as JITScenario,
      customeruuid                     as CustomerUUID,
      kunnr                            as ShipToParty,
      kunag                            as SoldToParty,
      lifecycle_stat                   as JITLifecycleStatus,
      call_type                        as JITCallType,
      vhvin                            as VehicleIdentificationNumber,
      vhcle_model                      as VehicleModel,
      vkorg                            as SalesOrganization,
      vtweg                            as DistributionChannel,
      spart                            as Division,
      ablad                            as UnloadingPointName,
      knref                            as CustomerPartnerDescription,
      abrvw                            as MatlUsageIndicator,
      cast( lifnr as abap.char( 10 ) ) as ActiveSupplier,
      concat(ext_call_num,kunnr)       as JITCallProcessingLogID,
      ext_sequence_num                 as JITExtSequenceNumber,

      // Administrative Data

      @Semantics.systemDateTime.createdAt: true
      crea_date_time                   as CreationDateTime,
      @Semantics.user.createdBy: true
      crea_uname                       as CreatedByUser,
      @Semantics.systemDateTime.lastChangedAt: true
      lchg_date_time                   as LastChangeDateTime,
      @Semantics.user.lastChangedBy:true
      lchg_uname                       as LastChangedByUser,

      jitcomponentisreordered          as JITComponentIsReordered,

      // Associations

      _CustomerToBusinessPartner,
      _JITLifecycleStatus,
      _JITCallType,
      _JITCustomer,
      _MatlUsageIndicator,
      _CreatedByUser,
      _LastChangedByUser,
      _Customer,
      _SalesOrganization,
      _Division,
      _DistributionChannel,
      _JITComponentIsReordered,
      _JITCallCompGroupBasic

}
where
  njit_scenario = '1' // Scenario: 1 = S2C