0% found this document useful (0 votes)
163 views9 pages

Fiori Automated Run Consumption View

This document defines a consumption view for Fiori automated run headers that includes associations to related details, logs, and user/role entities. The view provides a UI configuration with facets for general info, details, and different types of run logs.

Uploaded by

appalaraju gompa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
163 views9 pages

Fiori Automated Run Consumption View

This document defines a consumption view for Fiori automated run headers that includes associations to related details, logs, and user/role entities. The view provides a UI configuration with facets for general info, details, and different types of run logs.

Uploaded by

appalaraju gompa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

@AbapCatalog.

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'

define view ZC_SAP_FioriAppRptHdr


as select from ZI_SAP_FIORIAPPRPTHDR

association [1..*] to ZC_SAP_FIORIAPPRPTDETAILS as _FioriAppRptDetails


on $projection.Guid = _FioriAppRptDetails.Guid
association [1..*] to ZC_SAP_FIORIAPPRPTUSER as _FioriAppRptUser
on $projection.Guid = _FioriAppRptUser.Guid
association [1..*] to ZC_SAP_FIORIAPPRPTUSERROLE as _FioriAppRptUserRole
on $projection.Guid = _FioriAppRptUserRole.Guid
//association [1..*] to ZC_SDC_FioriAppRptLog as _FioriAppRptLog on
$projection.Guid = _FioriAppRptLog.Guid
// and
_FioriAppRptUILog.LogType = 'UI5'

association [1..*] to ZC_SAP_FIORIAPPRPTLOG as _FioriAppRptUILog


on $projection.Guid = _FioriAppRptUILog.Guid

and _FioriAppRptUILog.LogType = 'UI5'


association [1..*] to ZC_SAP_FIORIAPPRPTLOG as _FioriAppRptODataLog
on $projection.Guid = _FioriAppRptODataLog.Guid

and _FioriAppRptODataLog.LogType = 'ODATA'

association [1..*] to ZC_SAP_FIORIAPPRPTLOG as _FioriAppRptCatalogLog


on $projection.Guid = _FioriAppRptCatalogLog.Guid

and _FioriAppRptCatalogLog.LogType = 'CATCR'

association [1..*] to ZC_SAP_FIORIAPPRPTLOG as _FioriAppRptCatalogTM


on $projection.Guid = _FioriAppRptCatalogTM.Guid

and _FioriAppRptCatalogTM.LogType = 'CATTM'

association [1..*] to ZC_SAP_FIORIAPPRPTLOG as _FioriAppRptCatalogTC


on $projection.Guid = _FioriAppRptCatalogTC.Guid

and _FioriAppRptCatalogTC.LogType = 'CATTC'


association [1..*] to ZC_SAP_FIORIAPPRPTLOG as _FioriAppRptGroupCr
on $projection.Guid = _FioriAppRptGroupCr.Guid

and _FioriAppRptGroupCr.LogType = 'GRPCR'

association [1..*] to ZC_SAP_FIORIAPPRPTLOG as _FioriAppRptGroupTileAssignmnt


on $projection.Guid = _FioriAppRptGroupTileAssignmnt.Guid

and _FioriAppRptGroupTileAssignmnt.LogType = 'GRPTA'

association [1..*] to ZC_SAP_FIORIAPPRPTLOG as _FioriAppRptGroupFioriLink


on $projection.Guid = _FioriAppRptGroupFioriLink.Guid

and _FioriAppRptGroupFioriLink.LogType = 'GRPMP'

association [1..*] to ZC_SAP_FIORIAPPRPTLOG as _FioriAppRptRoleCreation


on $projection.Guid = _FioriAppRptRoleCreation.Guid

and _FioriAppRptRoleCreation.LogType = 'ROLE'

association [1..*] to ZC_SAP_FIORIAPPRPTLOG as _FioriAppRptRoleAssignmnt


on $projection.Guid = _FioriAppRptRoleAssignmnt.Guid

and _FioriAppRptRoleAssignmnt.LogType = 'ROLAS'

association [1..*] to ZC_SAP_FIORIAPPRPTLOG as _FioriAppRptUserCreation


on $projection.Guid = _FioriAppRptUserCreation.Guid

and _FioriAppRptUserCreation.LogType = 'USER'

association [1..*] to ZC_SAP_FIORIAPPRPTLOG as _FioriAppRptRoleMapping


on $projection.Guid = _FioriAppRptRoleMapping.Guid

and _FioriAppRptRoleMapping.LogType = 'ROLUS'

@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,

// @UI.fieldGroup:[{qualifier:'GeneralInfo',position:30, importance: #HIGH}]


// WorkbenchTransport,

@UI.fieldGroup:[{qualifier:'GeneralInfo',position:40, importance: #HIGH}]


CustomizingTransport,

// @UI.fieldGroup:[{qualifier:'GeneralInfo',position:50, importance: #HIGH}]


// ProcessingMode,

// @UI.fieldGroup:[{qualifier:'GeneralInfo',position:60, importance: #HIGH}]


// CustomerPrefix,

// @UI.fieldGroup:[{qualifier:'GeneralInfo',position:70, importance: #HIGH}]


// DevPackage,

// @UI.fieldGroup:[{qualifier:'GeneralInfo',position:80, importance: #HIGH}]


// Recreate,

//Associations
_FioriAppRptDetails,
_FioriAppRptUser,
_FioriAppRptUserRole,
_FioriAppRptUILog,
_FioriAppRptODataLog,
_FioriAppRptCatalogLog,
_FioriAppRptCatalogTM,
_FioriAppRptCatalogTC,
_FioriAppRptGroupCr,
_FioriAppRptGroupTileAssignmnt,
_FioriAppRptGroupFioriLink,
_FioriAppRptRoleCreation,
_FioriAppRptRoleAssignmnt,
_FioriAppRptUserCreation,
_FioriAppRptRoleMapping,
_HeaderStatus
}

You might also like