P_CustMgmtActivityText

DDL: P_CUSTMGMTACTIVITYTEXT SQL: PCUSTMGMTACTTEXT Type: view COMPOSITE

P_CustMgmtActivityText is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_CustMgmtActivityEnhcd) and exposes 4 fields. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
I_CustMgmtActivityEnhcd I_CustMgmtActivityEnhcd from

Associations (1)

CardinalityTargetAliasCondition
[0..*] I_TextObjectPlainLongText _Text _Text.TextObjectKey <= $projection.TextObjectKeyTimeStamp and _Text.TextObjectKey >= I_CustMgmtActivityEnhcd.TextObjectKey and _Text.TextObjectCategory = 'CRM_ORDERH' and ( _Text.TextObjectType = 'A002' or _Text.TextObjectType = 'A003' or _Text.TextObjectType = 'A004' or _Text.TextObjectType = 'A005' or _Text.TextObjectType = 'A006' or _Text.TextObjectType = 'A001' ) and _Text.Language = $session.system_language

Annotations (7)

NameValueLevelField
ClientHandling.type #CLIENT_DEPENDENT view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #COMPOSITE view
VDM.private true view
AbapCatalog.sqlViewName PCUSTMGMTACTTEXT view
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view

Fields (4)

KeyFieldSource TableSource FieldDescription
CustMgmtActivity CustMgmtActivity
TextObjectKey TextObjectKey
TextObjectKeyTimeStamp
_Text _Text
@ClientHandling.type: #CLIENT_DEPENDENT
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM.viewType: #COMPOSITE
@VDM.private: true
@AbapCatalog.sqlViewName: 'PCUSTMGMTACTTEXT'
@AbapCatalog.preserveKey: true
@AbapCatalog.compiler.compareFilter: true
@AccessControl.privilegedAssociations: ['_Text']


define view P_CustMgmtActivityText
  as select from I_CustMgmtActivityEnhcd

  association [0..*] to I_TextObjectPlainLongText as _Text on _Text.TextObjectKey <= $projection.TextObjectKeyTimeStamp 
                                                          and _Text.TextObjectKey >= I_CustMgmtActivityEnhcd.TextObjectKey
                                                          and _Text.TextObjectCategory = 'CRM_ORDERH'
                                                          and ( _Text.TextObjectType     = 'A002' or _Text.TextObjectType = 'A003' or
                                                                _Text.TextObjectType     = 'A004' or _Text.TextObjectType = 'A005' or 
                                                                _Text.TextObjectType     = 'A006' or _Text.TextObjectType = 'A001' )
                                                          and _Text.Language           = $session.system_language
                                                        
{

  CustMgmtActivity,
  TextObjectKey,
  concat(TextObjectKey,'                     ZZZZZZZZZZZZZZZZZ') as  TextObjectKeyTimeStamp,
  _Text 
  
  

}

/* define view P_CustMgmtActivityText
  as select from I_CustMgmtActivityEnhcd
  association [0..*] to P_CustMgmtTextUUID as _CustMgmtText on I_CustMgmtActivityEnhcd.CustMgmtActivityUUID = _CustMgmtText.TextObjectKeyUUID
                                                            and(
                                                              _CustMgmtText.TextObjectType                  = 'A002'
                                                              or _CustMgmtText.TextObjectType               = 'A003'
                                                              or _CustMgmtText.TextObjectType               = 'A004'
                                                              or _CustMgmtText.TextObjectType               = 'A005'
                                                            )
{

  key CustMgmtActivity,
      CustMgmtActivityUUID,
      _CustMgmtText.TextObjectKey,
      _CustMgmtText.TextObjectType
}
*/
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_CUSTMGMTACTIVITYENHCD"
],
"ASSOCIATED":
[
"I_TEXTOBJECTPLAINLONGTEXT"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/