VDM Viewtype #Consumption
VDM Viewtype #Consumption
sqlViewName: 'ZCSAPFARHDR'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@VDM: {
viewType: #CONSUMPTION
}
@UI.headerInfo: {
typeName: 'Fiori Automated Run',
typeNamePlural: 'Fiori Automated Runs'
}
@UI.presentationVariant:{
sortOrder: [
{ by: 'CreatedOnDateTime', direction: #DESC } ]
}
@EndUserText.label: 'Consumption view for FAR Header'
@UI.facet: [
{
label: 'General Info',
id: 'GeneralInformation',
type: #FIELDGROUP_REFERENCE,
position: 10,
// purpose:#STANDARD,
targetQualifier: 'GeneralInfo'
},
{
label: 'App Details',
id: 'Details',
type: #LINEITEM_REFERENCE,
position: 20,
// purpose:#STANDARD,
targetElement: '_FioriAppRptDetails'
},
// {
// label: 'Users',
// id: 'Users',
// type: #LINEITEM_REFERENCE,
// position: 30,
// targetElement: '_FioriAppRptUser'
// },
// {
// label: 'User Roles',
// id: 'UserRoles',
// type: #LINEITEM_REFERENCE,
// position: 40,
// targetElement: '_FioriAppRptUserRole'
// },
{
label: 'Run Logs',
id: 'RunLogs',
type: #COLLECTION,
position: 50
},
{
label: 'UI5',
parentId: 'RunLogs',
id: 'Ui5LogCollection',
type: #COLLECTION,
position: 10
},
{
label: 'UI5',
parentId: 'Ui5LogCollection',
id: 'Ui5Logs',
type: #LINEITEM_REFERENCE,
position: 10,
targetElement: '_FioriAppRptUILog'
},
{
label: 'OData',
parentId: 'RunLogs',
id: 'ODataLogCollection',
type: #COLLECTION,
position: 20
},
{
label: 'OData',
parentId: 'ODataLogCollection',
id: 'ODataLogs',
type: #LINEITEM_REFERENCE,
position: 20,
targetElement: '_FioriAppRptODataLog'
},
{
label: 'Catalog Creation',
parentId: 'RunLogs',
id: 'CatalogCreateLogCollection',
type: #COLLECTION,
position: 30
},
{
label: 'Catalog Creation',
parentId: 'CatalogCreateLogCollection',
id: 'CatalogCreationLogs',
type: #LINEITEM_REFERENCE,
position: 30,
targetElement: '_FioriAppRptCatalogLog'
},
{
label: 'Catalog Target Mapping',
parentId: 'RunLogs',
id: 'CatalogMappingLogCollection',
type: #COLLECTION,
position: 40
},
{
label: 'Catalog Target Mapping',
parentId: 'CatalogMappingLogCollection',
id: 'CatalogMappingLogs',
type: #LINEITEM_REFERENCE,
position: 40,
targetElement: '_FioriAppRptCatalogTM'
},
{
label: 'Catalog Tile Creation',
parentId: 'RunLogs',
id: 'CatalogTileLogCollection',
type: #COLLECTION,
position: 50
},
{
label: 'Catalog Tile Creation',
parentId: 'CatalogTileLogCollection',
id: 'CatalogTileLogs',
type: #LINEITEM_REFERENCE,
position: 50,
targetElement: '_FioriAppRptCatalogTC'
},
{
label: 'Group Creation',
parentId: 'RunLogs',
id: 'GroupCreationLogCollection',
type: #COLLECTION,
position: 60
},
{
label: 'Group Creation',
parentId: 'GroupCreationLogCollection',
id: 'GroupCreationLogs',
type: #LINEITEM_REFERENCE,
position: 60,
targetElement: '_FioriAppRptGroupCr'
},
{
label: 'Group Tile Assignment',
parentId: 'RunLogs',
id: 'GroupTileAssignmntLogCollection',
type: #COLLECTION,
position: 70
},
{
label: 'Group Tile Assignment',
parentId: 'GroupTileAssignmntLogCollection',
id: 'GroupTileAssignmntLogs',
type: #LINEITEM_REFERENCE,
position: 70,
targetElement: '_FioriAppRptGroupTileAssignmnt'
},
// {
// label: 'Group Fiori App Linking',
// parentId: 'RunLogs',
// id: 'GroupFioriAppLinkLogCollection',
// type: #COLLECTION,
// position: 80
// },
// {
// label: 'Group Fiori App Linking',
// parentId: 'GroupFioriAppLinkLogCollection',
// id: 'GroupFioriAppLinkLogs',
// type: #LINEITEM_REFERENCE,
// position: 80,
// targetElement: '_FioriAppRptGroupFioriLink'
// },
{
label: 'Role Creation',
parentId: 'RunLogs',
id: 'RoleCreationLogCollection',
type: #COLLECTION,
position: 90
},
{
label: 'Role Creation',
parentId: 'RoleCreationLogCollection',
id: 'RoleCreationLogs',
type: #LINEITEM_REFERENCE,
position: 90,
targetElement: '_FioriAppRptRoleCreation'
}
// {
// label: 'Role Catalog/Group Assignment',
// parentId: 'RunLogs',
// id: 'RoleAssignmntLogCollection',
// type: #COLLECTION,
// position: 100
// },
// {
// label: 'Role Catalog/Group Assignment',
// parentId: 'RoleAssignmntLogCollection',
// id: 'RoleAssignmntLogs',
// type: #LINEITEM_REFERENCE,
// position: 100,
// targetElement: '_FioriAppRptRoleAssignmnt'
// }
// {
// label: 'User Creation',
// parentId: 'RunLogs',
// id: 'UserCreationLogCollection',
// type: #COLLECTION,
// position: 110
// },
// {
// label: 'User Creation',
// parentId: 'UserCreationLogCollection',
// id: 'UserCreationLogs',
// type: #LINEITEM_REFERENCE,
// position: 110,
// targetElement: '_FioriAppRptUserCreation'
// },
// {
// label: 'User Role Mapping',
// parentId: 'RunLogs',
// id: 'UserRoleLogCollection',
// type: #COLLECTION,
// position: 120
// },
// {
// label: 'User Role Mapping',
// parentId: 'UserRoleLogCollection',
// id: 'UserRoleLogs',
// type: #LINEITEM_REFERENCE,
// position: 120,
// targetElement: '_FioriAppRptRoleMapping'
// }
]
@UI.hidden: true
key Guid,
@UI.lineItem.position:10
@UI.selectionField.position:10
@UI.fieldGroup:[{qualifier:'GeneralInfo',position:10, importance: #HIGH}]
@EndUserText.label: 'Run Description'
@UI.dataPoint: { title: 'Run Description' }
Description,
@UI.lineItem.position:20
@UI.selectionField.position:20
@UI.fieldGroup:[{qualifier:'GeneralInfo',position:20, importance: #HIGH}]
@EndUserText.label: 'File Name'
FileName,
//@UI.lineItem.position:30
//@UI.hidden: true
@ObjectModel.text.element: ['StatusName']
@UI.selectionField.position:30
@EndUserText.label: 'Status'
@UI.lineItem:{ position:30, criticality:
'StatusCriticality',criticalityRepresentation: #WITHOUT_ICON}
@UI:{
dataPoint:{description:'Status',title: 'Status',criticality:
'StatusCriticality', targetValueElement: 'Status'}
}
@Consumption.valueHelpDefinition: [{entity: {name: 'ZB_SAP_HEADERSTATUS',
element: 'Status' }}]
@UI.textArrangement: #TEXT_ONLY
Status,
@UI.hidden: true
case Status
when 'B' then 2
when 'I' then 2
when 'S' then 3
when 'E' then 1
else 3
end as StatusCriticality,
/*@UI.selectionField.position:30
@EndUserText.label: 'Status'
@UI.lineItem:{ position:30, criticality:
'StatusNameCriticality',criticalityRepresentation: #WITHOUT_ICON}
@UI:{
dataPoint:{description:'Status',title: 'Status',criticality:
'StatusNameCriticality', targetValueElement: 'Status'}
}*/
@UI.hidden: true
StatusName,
/*case StatusName
when 'B' then 2
when 'I' then 2
when 'S' then 3
when 'E' then 1
else 3
end as StatusNameCriticality,*/
@UI.lineItem.position:40
@UI.selectionField.position:40
@EndUserText.label: 'Created By'
@UI.dataPoint: { title: 'Created By' }
CreatedBy,
@UI.lineItem.position:50
@UI.selectionField.position:50
@EndUserText.label: 'Created On'
@UI.dataPoint: { title: 'Created On' }
cast(substring( cast(CreatedOnDateTime as abap.char(30)) , 1 , 8)
as abap.dats(8)) as CreatedOn,
@UI.hidden: true
CreatedOnDateTime,
@UI.hidden: true
TransactionID,
@UI.lineItem.position:60
@EndUserText.label: 'Duration (in seconds)'
@UI.dataPoint: { title: 'Run Duration (in seconds)' }
Duration,
//Associations
_FioriAppRptDetails,
_FioriAppRptUser,
_FioriAppRptUserRole,
_FioriAppRptUILog,
_FioriAppRptODataLog,
_FioriAppRptCatalogLog,
_FioriAppRptCatalogTM,
_FioriAppRptCatalogTC,
_FioriAppRptGroupCr,
_FioriAppRptGroupTileAssignmnt,
_FioriAppRptGroupFioriLink,
_FioriAppRptRoleCreation,
_FioriAppRptRoleAssignmnt,
_FioriAppRptUserCreation,
_FioriAppRptRoleMapping,
_HeaderStatus
}