In CHMI 5.1, can be generate pop up screen and selection of date and time for report generation.
I believe this is possible (but exactly how and best practice might not be one of my strengths though...)
But please begin by reading the IM Data Access and Reports User's Guide; its available on the 800xA DVD kit(s) and also downloadable from ABB Library / SolutionsBank (user account required).
DataDirect is a plugin to Excel with which you can read any OPC DA, HDA and AE data from the Compact HMI system.
If you need to pass arguments to the report you could write them to a General Property aspect which you subsequently read from your DataDirect macro code before starting with the data retrieval process.
ABBGetOPCDA("[Functional Structure]Root/Reports/ShiftReport:General Properties:START_TIME")
ABBGetOPCDA("[Functional Structure]Root/Reports/ShiftReport:General Properties:END_TIME")