
Test Date-Dependent ABAP Code with an Injected Clock
Code that reads sy-datum gives a different result every day, so a test that passes today may fail tomorrow. Put the date behind a small interface…

Code that reads sy-datum gives a different result every day, so a test that passes today may fail tomorrow. Put the date behind a small interface…

CL_OSQL_TEST_ENVIRONMENT redirects ABAP SQL in your test session from a real table to an empty test double. You insert the rows you need, run the code…