
In addition to ABAP developer authorizations for programming with the API, you must fulfill these prerequisites to use the Code Coverage API:
Code Coverage authorizations: A user who runs an instrumented program must have an authorization for authorization object S_COV_ADM with ACTVT 03. Otherwise the API raises an exception.
Activated Coverage Analyzer: The main switch of the Coverage Analyzer in transaction SCOV must be on.
In addition, the Coverage Analyzer ( SCOV) must be activated on the ABAP application servers on which the measurements are made.
The Coverage API checks that these conditions are met when you create a measurement. It raises an exception if the Coverage Analyzer is not correctly activated.
Test group: Users in measurements:
May not be registered in a test group in the Coverage Analyzer ( SCOV)
May not be registered in another measurement that is currently running ( IF_SCV_MEASUREMENT->START method has been called).
The Coverage API raises an exception if these conditions are not fulfilled.