Category: ABAP

Useful ABAP code snippets that can be used in real life projects.

How to debug BEx (Query designer)

To be able to debug external application, which uses RFC functions, you have to use external degugging. Sometime, this external breakpoint does not work. If so, firstly start RSRTRACE transaction, and now the breakpoint will work. QD uses class CL_RSZA_QUERY and its methods.Method that loads the query -> LOAD_QUERY (FM that loads the query element...

Exception condition “INCONSISTENCY” raised.

 I have encountered this error after saving Query using ABAP FM (usually you do this using Query Designer) The case is usually that in database tables are still stored some referencies for elements (RSZELTXREF), that are not present in element table (RSZELTDIR) To find out, where is the problem, run ANALYZE_RSZ_TABLES program through SE80 or SE38....