07-19-2018 7:41 AM
Hi, I'm trying to write a ABAP Unit test class for a report program which will take data from database tables such as BSEG, BKPF etc, Internal tables and read from it. I had read n a blog, that it is not advisable to write ABAP Unit tests for Report programs. Could you let me know in what all scenarios can we use ABAP testing. Please share if there is any report program is available to achieve similar functionality.
07-19-2018 10:22 AM
There is no reason not to use unit testing in a report. Can you point us to the blog you're referring to?
The only thing to bear in mind is that not all code is suitable for unit testing, in particular UI interactions, ALV behaviour and the likes. But if your report separates those in a sensible manner then it's perfectly testable.