
The customizing objects of the Coverage API - object selections and result configurations - let you control how the Coverage API calculates code coverage results:
A selection object (an object of type IF_SCV_SELECTION) lets you specify the group of entities - application components, packages, and programs - for which results are calculated from the raw data. A selection object works with the method IF_SCV_MEASUREMENT->BUILD_SELECTION_RESULT.
A configuration object (an object of type IF_SCV_RESULT_CONFIGURATION) lets you control what results are returned when the Coverage API calculates code coverage.
You can, for example, tell the API which set of the three values - procedure coverage, branch coverage, and statement coverage- you would like to have returned with coverage results.
You can set result configurations and object selections dynamically when you work with the IF_SCV_MEASUREMENT->BUILD...RESULT methods.
But result configurations and object selections are even more useful when you work with a measurement series. You can save the configuration and selection objects with the series as the default settings of the series. The series automatically provides the configuration and selection to IF_SCV_MEASUREMENT->BUILD_SELECTION_RESULT method calls that you make in the context of the series.
Here is more information: