C_MM_LegalTransactionVH

DDL: C_MM_LEGALTRANSACTIONVH SQL: CMMLEGALTRVH Type: view CONSUMPTION

Procurement Legal Transaction Value Help

C_MM_LegalTransactionVH is a Consumption CDS View that provides data about "Procurement Legal Transaction Value Help" in SAP S/4HANA. It reads from 1 data source (I_LegalTransaction) and exposes 25 fields with key field LegalTransactionUUID. It has 5 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_LegalTransaction LegalTransaction from

Associations (5)

CardinalityTargetAliasCondition
[1..1] I_LegalTransactionAggr _LegalTransactionAggrgn $projection.LegalTransactionUUID = _LegalTransactionAggrgn.LegalTransactionUUID
[0..1] C_LegalTransactionEntityMain _LegalTransactionEntityMain $projection.LegalTransactionUUID = _LegalTransactionEntityMain.LegalTransactionUUID
[0..1] I_LcmContext _LCMContext $projection.LglCntntMContextUUID = _LCMContext.LglCntntMContextUUID
[0..1] I_LCMUserContactCard _CreatedByContactCard _CreatedByContactCard.ContactCardType = 'User' and _CreatedByContactCard.ContactCardID = $projection.LglCntntMCreatedByUser and _CreatedByContactCard.ContactCardRole = 'Creator'
[0..1] I_LegalTransactionHealthText _LegalTransactionHealthText $projection.LegalTransactionHealth = _LegalTransactionHealthText.LegalTransactionHealth and Language = $session.system_language

Annotations (13)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.sqlViewName CMMLEGALTRVH view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
VDM.viewType #CONSUMPTION view
AccessControl.personalData.blocking #REQUIRED view
EndUserText.label Procurement Legal Transaction Value Help view
ObjectModel.semanticKey LegalTransaction view
ObjectModel.representativeKey LegalTransactionUUID view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
Search.searchable true view

Fields (25)

KeyFieldSource TableSource FieldDescription
KEY LegalTransactionUUID I_LegalTransaction LegalTransactionUUID
LegalTransaction I_LegalTransaction LegalTransaction
LegalTransactionHealth I_LegalTransaction LegalTransactionHealth Status
LegalTransactionHealthName _LegalTransactionHealthText LegalTransactionHealthName
LglTransHealthCriticality _LegalTransactionAggrgn LglTransHealthCriticality
LglCntntMContextUUID I_LegalTransaction LglCntntMContextUUID
LglCntntMContext _LCMContext LglCntntMContext
LglCntntMEntity _LegalTransactionEntityMain LglCntntMEntity
LglCntntMEntityName _LegalTransactionEntityMain LglCntntMEntityName
LglCntntMCreatedByUser I_LegalTransaction LglCntntMCreatedByUser
LglCntntMCreatedUTCDateTime I_LegalTransaction LglCntntMCreatedUTCDateTime
FullName _CreatedByContactCard FullName
FirstName _CreatedByContactCard FirstName
LastName _CreatedByContactCard LastName
LglCntntMChangedByUser I_LegalTransaction LglCntntMChangedByUser
LglCntntMChangedUTCDateTime I_LegalTransaction LglCntntMChangedUTCDateTime
LegalTransactionTitle I_LegalTransaction LegalTransactionTitle
LglCntntMContextTitle _LCMContext LglCntntMContextTitle
IsEndOfPurposeBlocked I_LegalTransaction IsEndOfPurposeBlocked
LglCntntMProfile I_LegalTransaction LglCntntMProfile
LglTransAccessLvl LglTransAccessLvl
LglCntntMMainOrgCoCode LglCntntMMainOrgCoCode
LglCntntMMainOrgSalesOrg LglCntntMMainOrgSalesOrg
LglCntntMMainOrgPurOrg LglCntntMMainOrgPurOrg
_LegalTransactionHealthText _LegalTransactionHealthText
@ClientHandling.algorithm: #SESSION_VARIABLE
@AbapCatalog.sqlViewName: 'CMMLEGALTRVH'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@VDM.viewType: #CONSUMPTION
@AccessControl.personalData.blocking: #REQUIRED
@EndUserText.label: 'Procurement Legal Transaction Value Help'
@ObjectModel: { semanticKey: 'LegalTransaction',
                representativeKey: 'LegalTransactionUUID',

                usageType.dataClass: #TRANSACTIONAL,
                usageType.serviceQuality:  #C,
                usageType.sizeCategory: #XL  }

@Search.searchable: true

define view C_MM_LegalTransactionVH
  as select from I_LegalTransaction as LegalTransaction

  association [1..1] to I_LegalTransactionAggr       as _LegalTransactionAggrgn     on  $projection.LegalTransactionUUID = _LegalTransactionAggrgn.LegalTransactionUUID
  association [0..1] to C_LegalTransactionEntityMain as _LegalTransactionEntityMain on  $projection.LegalTransactionUUID = _LegalTransactionEntityMain.LegalTransactionUUID
  association [0..1] to I_LcmContext                 as _LCMContext                 on  $projection.LglCntntMContextUUID = _LCMContext.LglCntntMContextUUID
  association [0..1] to I_LCMUserContactCard         as _CreatedByContactCard       on  _CreatedByContactCard.ContactCardType = 'User'
                                                                                    and _CreatedByContactCard.ContactCardID   = $projection.LglCntntMCreatedByUser
                                                                                    and _CreatedByContactCard.ContactCardRole = 'Creator'
  association [0..1] to I_LegalTransactionHealthText   as _LegalTransactionHealthText   on  $projection.LegalTransactionHealth = _LegalTransactionHealthText.LegalTransactionHealth
                                                                                        and Language                           = $session.system_language
  //association [0..1] to C_LegalTransactionHealthVH     as _LegalTransactionHealthVH     on  $projection.LegalTransactionHealth = _LegalTransactionHealthVH.LegalTransactionHealth                                                                                    


{
      @UI.hidden: true
  key LegalTransaction.LegalTransactionUUID,

      @UI.lineItem: { position: 10, importance: #HIGH, label:'Legal Transaction' }
      @UI.selectionField.position: 10
      @Consumption.semanticObject: 'LegalTransaction'
      @ObjectModel.text.element:  [ 'LegalTransactionTitle' ]
      @Search: { defaultSearchElement: true, fuzzinessThreshold: 0.7, ranking: #HIGH }
      LegalTransaction.LegalTransaction,

      @UI.lineItem: { position: 15, importance: #HIGH , 
                      criticality: 'LglTransHealthCriticality', criticalityRepresentation: #WITHOUT_ICON 
                      }
      @UI.textArrangement: #TEXT_ONLY
      @ObjectModel: { text.element: ['LegalTransactionHealthName'] }
      @EndUserText.label: 'Status' // 'Health'     

      //@Consumption.valueHelp: '_LegalTransactionHealthVH'

      @Consumption.filter.hidden: true
      LegalTransaction.LegalTransactionHealth as LegalTransactionHealth,
      
      @Consumption.filter.hidden: true
      @UI.hidden: true
      _LegalTransactionHealthText.LegalTransactionHealthName as LegalTransactionHealthName,

      _LegalTransactionAggrgn.LglTransHealthCriticality,

      @UI.hidden: true
      LegalTransaction.LglCntntMContextUUID,

      @UI.lineItem: { position: 20, importance: #HIGH, label: 'Context' }
      @UI.selectionField.position: 20
      @ObjectModel.text.element:  [ 'LglCntntMContextTitle' ]
      _LCMContext.LglCntntMContext,

      @UI.lineItem: { position: 30, importance: #HIGH, label: 'Main Entity' }
      @UI.selectionField.position: 30
      @ObjectModel.text.element:  [ 'LglCntntMEntityName' ]
      _LegalTransactionEntityMain.LglCntntMEntity,

      @UI.hidden: true
      @Semantics.text: true
      @ObjectModel.readOnly: true
      //no search due to case statement

      _LegalTransactionEntityMain.LglCntntMEntityName,


      @UI.lineItem: { position: 40, importance: #HIGH }
      @UI.textArrangement: #TEXT_ONLY
      @Consumption.filter.hidden: true
      @ObjectModel.text.element:  [ 'FullName' ]
      LegalTransaction.LglCntntMCreatedByUser,

      @UI.lineItem: { position: 50, importance: #HIGH }
      @Consumption.filter.hidden: true
      @Semantics.systemDate.createdAt: true
      LegalTransaction.LglCntntMCreatedUTCDateTime,

      @UI.hidden: true
      _CreatedByContactCard.FullName,
      @UI.hidden: true
      @Search: { defaultSearchElement: true, fuzzinessThreshold: 0.7, ranking: #HIGH }
      _CreatedByContactCard.FirstName,
      @UI.hidden: true
      @Search: { defaultSearchElement: true, fuzzinessThreshold: 0.7, ranking: #HIGH }
      _CreatedByContactCard.LastName,

      @UI.hidden: true
      LegalTransaction.LglCntntMChangedByUser,

      @UI.hidden: true
      @Semantics.systemDate.lastChangedAt: true
      LegalTransaction.LglCntntMChangedUTCDateTime,

      @UI.hidden: true
      @Semantics.text: true
      @Search: { defaultSearchElement: true, fuzzinessThreshold: 0.7, ranking: #HIGH }
      LegalTransaction.LegalTransactionTitle,

      @UI.hidden: true
      @Semantics.text: true
      @Search: { defaultSearchElement: true, fuzzinessThreshold: 0.7, ranking: #HIGH }
      _LCMContext.LglCntntMContextTitle,

      @UI.hidden: true
      @ObjectModel.readOnly: true
      LegalTransaction.IsEndOfPurposeBlocked,

      @UI.hidden: true
      LegalTransaction.LglCntntMProfile,

      @UI.hidden: true
      LglTransAccessLvl,

      @UI.hidden: true
      LglCntntMMainOrgCoCode,

      @UI.hidden: true
      LglCntntMMainOrgSalesOrg,

      @UI.hidden: true
      LglCntntMMainOrgPurOrg,
      
      _LegalTransactionHealthText /*,
      
      @Consumption.filter.hidden: true
      _LegalTransactionHealthVH   */

}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"C_LEGALTRANSACTIONENTITYMAIN",
"I_LCMCONTEXT",
"I_LCMUSERCONTACTCARD",
"I_LEGALTRANSACTION",
"I_LEGALTRANSACTIONAGGR",
"I_LEGALTRANSACTIONHEALTHTEXT"
],
"ASSOCIATED":
[
"C_LEGALTRANSACTIONENTITYMAIN",
"I_LCMCONTEXT",
"I_LCMUSERCONTACTCARD",
"I_LEGALTRANSACTIONAGGR",
"I_LEGALTRANSACTIONHEALTHTEXT"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/