Now that you know about the anatomy of an Analytical List Page and when to use it, Let us get the basic Analytical List Page working with the bare minimum required to create the app, and then move on to add further details. SAP Web IDE supports creation of Analytical List Pages, details of the same can be found here.
For this you need the following:
The service metadata to be used for the app
Basic Annotations as described below
Default SelectionPresentationVariant(SPV) i.e it has no qualifier: SPV will in-turn include the following annotations
SelectionVariant - used to filter the incoming data with further selection ranges
PresentationVariant - used for visualising the data in terms of sort order, grouping, chart visualisation and lineItem visualisation
In case the default SPV is not present the other possible options are detailed in the documentation link
A sample SelectionVariant will be as follows for the sample ALP App created based on the steps detailed in this blog.
With just this, you will get the basic app working but let us also get the filter to have some meaningful attributes. For this we need to add a valueList annotation to the Currency Property as shown below, you may also give it a default value as shown here: