SAP TEST-INJECTION ABAP Statements



Get Example source ABAP code based on a different SAP table
  


ID TEST-INJECTION
• TEST-INJECTION ABAP Statement

TEST-INJECTION
Short Reference

ABAP_SYNTAX
TEST-INJECTION seam.
$[statement_block$]
END-TEST-INJECTION.

What does it do?
The statement TEST-INJECTION introduces an injection for a test seam seam, which is closed using END-TEST-INJECTION. The test seam seam must be defined in the production code of the current program using the statement TEST-SEAM. When a unit test is performed, the statement block statement_block of the injection replaces the statement block of the test seam seam in production code.
An injection can only be defined in the methods of test classes created