Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to create ABAP Unit test class for Report program

0 Kudos

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.

1 REPLY 1

pokrakam
Active Contributor

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.