Is there a way to tell the instance of CL_OSQL_TEST_ENVIRONMENT to create views from mocked tables?

233 Views Asked by At

Is there a way to tell the instance of CL_OSQL_TEST_ENVIRONMENT to create views from mocked tables?

For example I mock the following tables from the ERP system: BSEG and BKPF.

cl_osql_test_environment=>create(
  VALUE #(
    'BSEG'
    'BKPF'
  )
).

But this won't build me the BSID view in the OSQL test environment instead the calls to the view go directly to the contents of the underlying database. I would have to do the join by myself and then to mock the view BSID which I would want to avoid.

Is such a thing even supported, or maybe planned to be supported in the future?

0

There are 0 best solutions below