Show TOC

Background documentationSelection Object Locate this document in the navigation structure

 

In the Coverage API, a selection object specifies the set of entities for which code coverage is to be calculated.

The selection may contain application components from the SAP hierarchy, packages, and/or individual programs. You can explicitly include or exclude such entities from a selection. You can also define ranges of entities as part of the selection.

You access a selection with methods of the IF_SCV_SELECTION interface.

If you are working with a standalone measurement, you can use a selection object with the IF_SCV_MEASUREMENT-BUILD_SELECTION_RESULT method to build a single result for your selection.

In measurement series, you can save a selection object as the default selection. The series automatically passes the selection to the BUILD_SELECTION_RESULT method, if you call this method with measurements of the series. (You can of course override the default by specifying a different selection object.)

See also Using Object Selections.