Testing and troubleshooting
This section is dedicated to all those moments when, despite quality checks and the developer's best efforts, a bug has arisen. The two techniques presented in this section will allow you to more easily solve some of the most frequently encountered problems.
ABAP Memory Inspector
ABAP Memory Inspector is another tool in the developer's toolkit. Its main purpose, as you may guess, is related to memory. Finding memory leaks and predicting memory consumption on the production system may be crucial if you have a system with an enormous amount of data. For this example, we need to create a new ZMSA_R_CHAPTER12_2
report with the following code:
REPORT zmsa_r_chapter12_2. TABLES sscrfields. DATA: gt_usr TYPE TABLE OF usr02. SELECTION-SCREEN: PUSHBUTTON 2(10) but1 USER-COMMAND load. INITIALIZATION. but1 = 'Load Data'. AT SELECTION-SCREEN. CASE sscrfields. WHEN 'LOAD'. SELECT * FROM usr02 APPENDING CORRESPONDING FIELDS OF TABLE gt_usr. ENDCASE. START...