P_StatusInfluenceOnBusTran1

DDL: P_STATUSINFLUENCEONBUSTRAN1 SQL: PStatInfluOnBT1 Type: view BASIC

P_StatusInfluenceOnBusTran1 is a Basic CDS View in SAP S/4HANA. It reads from 2 data sources (jest, jest) and exposes 5 fields with key fields StatusObject, BusTransactionType, BusTransactionType.

Data Sources (2)

SourceAliasJoin Type
jest jest from
jest jest union_all

Annotations (4)

NameValueLevelField
AbapCatalog.sqlViewName PStatInfluOnBT1 view
VDM.viewType #BASIC view
VDM.private true view
AccessControl.authorizationCheck #NOT_REQUIRED view

Fields (5)

KeyFieldSource TableSource FieldDescription
KEY StatusObject jest objnr
KEY BusTransactionType tj07 vrgng
objnrasStatusObject
KEY BusTransactionType tj31 vrgng
BusTransacTypePermission
@AbapCatalog.sqlViewName: 'PStatInfluOnBT1'
//@EndUserText.label: 'P_StatusInfluenceOnBusTran1'

//@Analytics : { dataExtraction.enabled : true}

@VDM.viewType : #BASIC
@VDM.private : true
@AccessControl.authorizationCheck: #NOT_REQUIRED

define view P_StatusInfluenceOnBusTran1  as 
select from  jest
             join tj07 on tj07.obtyp = ' ' and
                          jest.stat  = tj07.istat  
  {
    key jest.objnr as StatusObject, 
    key tj07.vrgng as BusTransactionType,
    max(modkz)     as BusTransacTypePermission 
  } 
  where stat like 'I%' and inact = ' '  
  group by jest.objnr,
           tj07.vrgng
                      
  union all 
  
  select from jest 
              join jsto on jsto.objnr  = jest.objnr
              join tj31 on jsto.stsma  = tj31.stsma and  
                           jest.stat   = tj31.estat   
  {
    key jest.objnr as StatusObject,
    key tj31.vrgng as BusTransactionType,
    max(modkz)     as BusTransacTypePermission 
  }
  where stat like 'E%' and inact = ' ' 
  group by jest.objnr,
           tj31.vrgng
      
  
  
  
 /*+[internal] {
"BASEINFO":
{
"FROM":
[
"JEST",
"JSTO",
"TJ07",
"TJ31"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"VERSION":0
}
}*/